|
139 | 139 | }
|
140 | 140 |
|
141 | 141 | pub struct sigaction {
|
| 142 | + // FIXME: this field is actually a union |
142 | 143 | pub sa_sigaction: ::sighandler_t,
|
143 | 144 | pub sa_mask: sigset_t,
|
144 | 145 | pub sa_flags: ::c_int,
|
@@ -2255,12 +2256,14 @@ pub const NOTE_NONE: ::uint32_t = 0x00000080;
|
2255 | 2256 | pub const NOTE_EXIT: ::uint32_t = 0x80000000;
|
2256 | 2257 | pub const NOTE_FORK: ::uint32_t = 0x40000000;
|
2257 | 2258 | pub const NOTE_EXEC: ::uint32_t = 0x20000000;
|
| 2259 | +#[deprecated(since="0.2.49", note="Deprecated since MacOSX 10.9")] |
2258 | 2260 | pub const NOTE_REAP: ::uint32_t = 0x10000000;
|
2259 | 2261 | pub const NOTE_SIGNAL: ::uint32_t = 0x08000000;
|
2260 | 2262 | pub const NOTE_EXITSTATUS: ::uint32_t = 0x04000000;
|
2261 | 2263 | pub const NOTE_EXIT_DETAIL: ::uint32_t = 0x02000000;
|
2262 | 2264 | pub const NOTE_PDATAMASK: ::uint32_t = 0x000fffff;
|
2263 | 2265 | pub const NOTE_PCTRLMASK: ::uint32_t = 0xfff00000;
|
| 2266 | +#[deprecated(since="0.2.49", note="Deprecated since MacOSX 10.9")] |
2264 | 2267 | pub const NOTE_EXIT_REPARENTED: ::uint32_t = 0x00080000;
|
2265 | 2268 | pub const NOTE_EXIT_DETAIL_MASK: ::uint32_t = 0x00070000;
|
2266 | 2269 | pub const NOTE_EXIT_DECRYPTFAIL: ::uint32_t = 0x00010000;
|
@@ -2466,7 +2469,9 @@ pub const KERN_KDSETRTCDEC: ::c_int = 15;
|
2466 | 2469 | pub const KERN_KDGETENTROPY: ::c_int = 16;
|
2467 | 2470 | pub const KERN_KDWRITETR: ::c_int = 17;
|
2468 | 2471 | pub const KERN_KDWRITEMAP: ::c_int = 18;
|
| 2472 | +#[deprecated(since = "0.2.49", note ="Removed in MacOSX 10.12")] |
2469 | 2473 | pub const KERN_KDENABLE_BG_TRACE: ::c_int = 19;
|
| 2474 | +#[deprecated(since = "0.2.49", note ="Removed in MacOSX 10.12")] |
2470 | 2475 | pub const KERN_KDDISABLE_BG_TRACE: ::c_int = 20;
|
2471 | 2476 | pub const KERN_KDREADCURTHRMAP: ::c_int = 21;
|
2472 | 2477 | pub const KERN_KDSET_TYPEFILTER: ::c_int = 22;
|
@@ -2846,6 +2851,16 @@ f! {
|
2846 | 2851 | }
|
2847 | 2852 |
|
2848 | 2853 | extern {
|
| 2854 | + #[deprecated(since="0.2.49", note="Deprecated in MacOSX 10.5")] |
| 2855 | + #[link_name = "daemon$1050"] |
| 2856 | + pub fn daemon(nochdir: ::c_int, noclose: ::c_int) -> ::c_int; |
| 2857 | + #[deprecated(since="0.2.49", note="Deprecated in MacOSX 10.10")] |
| 2858 | + pub fn sem_destroy(sem: *mut sem_t) -> ::c_int; |
| 2859 | + #[deprecated(since="0.2.49", note="Deprecated in MacOSX 10.10")] |
| 2860 | + pub fn sem_init(sem: *mut sem_t, |
| 2861 | + pshared: ::c_int, |
| 2862 | + value: ::c_uint) |
| 2863 | + -> ::c_int; |
2849 | 2864 | pub fn aio_read(aiocbp: *mut aiocb) -> ::c_int;
|
2850 | 2865 | pub fn aio_write(aiocbp: *mut aiocb) -> ::c_int;
|
2851 | 2866 | pub fn aio_fsync(op: ::c_int, aiocbp: *mut aiocb) -> ::c_int;
|
|
0 commit comments