@@ -287,152 +287,115 @@ impl SysError {
287
287
#[ cfg( target_os = "linux" ) ]
288
288
EHWPOISON => "Memory page has hardware error" ,
289
289
290
- #[ cfg( target_os = "macos" ) ]
291
- #[ cfg( target_os = "ios" ) ]
290
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
292
291
ENOTSUP => "Operation not supported" ,
293
292
294
- #[ cfg( target_os = "macos" ) ]
295
- #[ cfg( target_os = "ios" ) ]
293
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
296
294
EPROCLIM => "Too many processes" ,
297
295
298
- #[ cfg( target_os = "macos" ) ]
299
- #[ cfg( target_os = "ios" ) ]
296
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
300
297
EUSERS => "Too many users" ,
301
298
302
- #[ cfg( target_os = "macos" ) ]
303
- #[ cfg( target_os = "ios" ) ]
299
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
304
300
EDQUOT => "Disc quota exceeded" ,
305
301
306
- #[ cfg( target_os = "macos" ) ]
307
- #[ cfg( target_os = "ios" ) ]
302
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
308
303
ESTALE => "Stale NFS file handle" ,
309
304
310
- #[ cfg( target_os = "macos" ) ]
311
- #[ cfg( target_os = "ios" ) ]
305
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
312
306
EREMOTE => "Stale NFS file handle" ,
313
307
314
- #[ cfg( target_os = "macos" ) ]
315
- #[ cfg( target_os = "ios" ) ]
308
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
316
309
EBADRPC => "RPC struct is bad" ,
317
310
318
- #[ cfg( target_os = "macos" ) ]
319
- #[ cfg( target_os = "ios" ) ]
311
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
320
312
ERPCMISMATCH => "RPC version wrong" ,
321
313
322
- #[ cfg( target_os = "macos" ) ]
323
- #[ cfg( target_os = "ios" ) ]
314
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
324
315
EPROGUNAVAIL => "RPC prog. not avail" ,
325
316
326
- #[ cfg( target_os = "macos" ) ]
327
- #[ cfg( target_os = "ios" ) ]
317
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
328
318
EPROGMISMATCH => "Program version wrong" ,
329
319
330
- #[ cfg( target_os = "macos" ) ]
331
- #[ cfg( target_os = "ios" ) ]
320
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
332
321
EPROCUNAVAIL => "Bad procedure for program" ,
333
322
334
- #[ cfg( target_os = "macos" ) ]
335
- #[ cfg( target_os = "ios" ) ]
323
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
336
324
EFTYPE => "Inappropriate file type or format" ,
337
325
338
- #[ cfg( target_os = "macos" ) ]
339
- #[ cfg( target_os = "ios" ) ]
326
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
340
327
EAUTH => "Authentication error" ,
341
328
342
- #[ cfg( target_os = "macos" ) ]
343
- #[ cfg( target_os = "ios" ) ]
329
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
344
330
ENEEDAUTH => "Need authenticator" ,
345
331
346
- #[ cfg( target_os = "macos" ) ]
347
- #[ cfg( target_os = "ios" ) ]
332
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
348
333
EPWROFF => "Device power is off" ,
349
334
350
- #[ cfg( target_os = "macos" ) ]
351
- #[ cfg( target_os = "ios" ) ]
335
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
352
336
EDEVERR => "Device error, e.g. paper out" ,
353
337
354
- #[ cfg( target_os = "macos" ) ]
355
- #[ cfg( target_os = "ios" ) ]
338
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
356
339
EOVERFLOW => "Value too large to be stored in data type" ,
357
340
358
- #[ cfg( target_os = "macos" ) ]
359
- #[ cfg( target_os = "ios" ) ]
341
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
360
342
EBADEXEC => "Bad executable" ,
361
343
362
- #[ cfg( target_os = "macos" ) ]
363
- #[ cfg( target_os = "ios" ) ]
344
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
364
345
EBADARCH => "Bad CPU type in executable" ,
365
346
366
- #[ cfg( target_os = "macos" ) ]
367
- #[ cfg( target_os = "ios" ) ]
347
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
368
348
ESHLIBVERS => "Shared library version mismatch" ,
369
349
370
- #[ cfg( target_os = "macos" ) ]
371
- #[ cfg( target_os = "ios" ) ]
350
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
372
351
EBADMACHO => "Malformed Macho file" ,
373
352
374
- #[ cfg( target_os = "macos" ) ]
375
- #[ cfg( target_os = "ios" ) ]
353
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
376
354
ECANCELED => "Operation canceled" ,
377
355
378
- #[ cfg( target_os = "macos" ) ]
379
- #[ cfg( target_os = "ios" ) ]
356
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
380
357
EILSEQ => "Illegal byte sequence" ,
381
358
382
- #[ cfg( target_os = "macos" ) ]
383
- #[ cfg( target_os = "ios" ) ]
359
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
384
360
ENOATTR => "Attribute not found" ,
385
361
386
- #[ cfg( target_os = "macos" ) ]
387
- #[ cfg( target_os = "ios" ) ]
362
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
388
363
EBADMSG => "Bad message" ,
389
364
390
- #[ cfg( target_os = "macos" ) ]
391
- #[ cfg( target_os = "ios" ) ]
365
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
392
366
EMULTIHOP => "Reserved" ,
393
367
394
- #[ cfg( target_os = "macos" ) ]
395
- #[ cfg( target_os = "ios" ) ]
368
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
396
369
ENODATA => "No message available on STREAM" ,
397
370
398
- #[ cfg( target_os = "macos" ) ]
399
- #[ cfg( target_os = "ios" ) ]
371
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
400
372
ENOLINK => "Reserved" ,
401
373
402
- #[ cfg( target_os = "macos" ) ]
403
- #[ cfg( target_os = "ios" ) ]
374
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
404
375
ENOSR => "No STREAM resources" ,
405
376
406
- #[ cfg( target_os = "macos" ) ]
407
- #[ cfg( target_os = "ios" ) ]
377
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
408
378
ENOSTR => "Not a STREAM" ,
409
379
410
- #[ cfg( target_os = "macos" ) ]
411
- #[ cfg( target_os = "ios" ) ]
380
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
412
381
EPROTO => "Protocol error" ,
413
382
414
- #[ cfg( target_os = "macos" ) ]
415
- #[ cfg( target_os = "ios" ) ]
383
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
416
384
ETIME => "STREAM ioctl timeout" ,
417
385
418
- #[ cfg( target_os = "macos" ) ]
419
- #[ cfg( target_os = "ios" ) ]
386
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
420
387
EOPNOTSUPP => "Operation not supported on socket" ,
421
388
422
- #[ cfg( target_os = "macos" ) ]
423
- #[ cfg( target_os = "ios" ) ]
389
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
424
390
ENOPOLICY => "No such policy registered" ,
425
391
426
- #[ cfg( target_os = "macos" ) ]
427
- #[ cfg( target_os = "ios" ) ]
392
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
428
393
ENOTRECOVERABLE => "State not recoverable" ,
429
394
430
- #[ cfg( target_os = "macos" ) ]
431
- #[ cfg( target_os = "ios" ) ]
395
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
432
396
EOWNERDEAD => "Previous owner died" ,
433
397
434
- #[ cfg( target_os = "macos" ) ]
435
- #[ cfg( target_os = "ios" ) ]
398
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
436
399
EQFULL => "Interface output queue is full" ,
437
400
}
438
401
}
@@ -596,8 +559,7 @@ mod consts {
596
559
pub static EDEADLOCK : Errno = EDEADLK ;
597
560
}
598
561
599
- #[ cfg( target_os = "macos" ) ]
600
- #[ cfg( target_os = "ios" ) ]
562
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
601
563
mod consts {
602
564
#[ deriving( Show , Clone , PartialEq , FromPrimitive ) ]
603
565
pub enum Errno {
0 commit comments