Backported from upstream druntime 2.084
Reviewed-on: https://github.com/dlang/druntime/pull/2342
From-SVN: r268050
}
}
}
+else version (OSX)
+{
+ struct aiocb
+ {
+ int aio_filedes;
+ off_t aio_offset;
+ void* aio_buf; // volatile
+ size_t aio_nbytes;
+ int reqprio;
+ sigevent aio_sigevent;
+ int aio_lio_opcode;
+ }
+}
else version (FreeBSD)
{
struct __aiocb_private
AIO_ALLDONE
}
}
+else version (OSX)
+{
+ enum
+ {
+ AIO_ALLDONE = 0x1,
+ AIO_CANCELED = 0x2,
+ AIO_NOTCANCELED = 0x4,
+ }
+}
else version (Solaris)
{
enum
LIO_NOP
}
}
+else version (OSX)
+{
+ enum
+ {
+ LIO_NOP = 0x0,
+ LIO_READ = 0x1,
+ LIO_WRITE = 0x2,
+ }
+}
else version (Solaris)
{
enum
LIO_NOWAIT
}
}
+else version (OSX)
+{
+ enum
+ {
+ LIO_NOWAIT = 0x1,
+ LIO_WAIT = 0x2,
+ }
+}
else version (Solaris)
{
enum
}
else version (Darwin)
{
+ struct sigevent
+ {
+ int sigev_notify;
+ int sigev_signo;
+ sigval sigev_value;
+ void function(sigval) sigev_notify_function;
+ pthread_attr_t* sigev_notify_attributes;
+ }
}
else version (Solaris)
{