@@ -301,131 +301,168 @@ impl AddressFamily {
301
301
/// `AF_802`
302
302
#[ cfg( solarish) ]
303
303
pub const EIGHT_ZERO_TWO : Self = Self ( c:: AF_802 as _ ) ;
304
- /* // fixme
304
+ # [ cfg ( target_os = "fuchsia" ) ]
305
305
/// `AF_ALG`
306
306
pub const ALG : Self = Self ( c:: AF_ALG as _ ) ;
307
+ #[ cfg( any( target_os = "freebsd" , target_os = "netbsd" , target_os = "nto" ) ) ]
307
308
/// `AF_ARP`
308
309
pub const ARP : Self = Self ( c:: AF_ARP as _ ) ;
309
310
/// `AF_ATM`
311
+ #[ cfg( freebsdlike) ]
310
312
pub const ATM : Self = Self ( c:: AF_ATM as _ ) ;
311
313
/// `AF_CAIF`
314
+ #[ cfg( any( target_os = "android" , target_os = "emscripten" , target_os = "fuchsia" ) ) ]
312
315
pub const CAIF : Self = Self ( c:: AF_CAIF as _ ) ;
313
316
/// `AF_CCITT`
317
+ #[ cfg( any( bsd, solarish, target_os = "aix" , target_os = "nto" ) ) ]
314
318
pub const CCITT : Self = Self ( c:: AF_CCITT as _ ) ;
315
319
/// `AF_CHAOS`
320
+ #[ cfg( any( bsd, solarish, target_os = "aix" , target_os = "nto" ) ) ]
316
321
pub const CHAOS : Self = Self ( c:: AF_CHAOS as _ ) ;
317
322
/// `AF_CNT`
323
+ #[ cfg( any( bsd, target_os = "nto" ) ) ]
318
324
pub const CNT : Self = Self ( c:: AF_CNT as _ ) ;
319
325
/// `AF_COIP`
326
+ #[ cfg( any( bsd, target_os = "nto" ) ) ]
320
327
pub const COIP : Self = Self ( c:: AF_COIP as _ ) ;
321
328
/// `AF_DATAKIT`
329
+ #[ cfg( any( bsd, solarish, target_os = "aix" , target_os = "nto" ) ) ]
322
330
pub const DATAKIT : Self = Self ( c:: AF_DATAKIT as _ ) ;
323
331
/// `AF_DLI`
332
+ #[ cfg( any( bsd, solarish, target_os = "aix" , target_os = "haiku" , target_os = "nto" ) ) ]
324
333
pub const DLI : Self = Self ( c:: AF_DLI as _ ) ;
325
334
/// `AF_E164`
335
+ #[ cfg( any( bsd, target_os = "nto" ) ) ]
326
336
pub const E164 : Self = Self ( c:: AF_E164 as _ ) ;
327
337
/// `AF_ECMA`
338
+ #[ cfg( any( apple, freebsdlike, solarish, target_os = "aix" , target_os = "nto" , target_os = "openbsd" ) ) ]
328
339
pub const ECMA : Self = Self ( c:: AF_ECMA as _ ) ;
329
340
/// `AF_ENCAP`
341
+ #[ cfg( target_os = "openbsd" ) ]
330
342
pub const ENCAP : Self = Self ( c:: AF_ENCAP as _ ) ;
331
343
/// `AF_FILE`
344
+ #[ cfg( solarish) ]
332
345
pub const FILE : Self = Self ( c:: AF_FILE as _ ) ;
333
346
/// `AF_GOSIP`
347
+ #[ cfg( solarish) ]
334
348
pub const GOSIP : Self = Self ( c:: AF_GOSIP as _ ) ;
335
349
/// `AF_HYLINK`
350
+ #[ cfg( any( bsd, solarish, target_os = "aix" , target_os = "nto" ) ) ]
336
351
pub const HYLINK : Self = Self ( c:: AF_HYLINK as _ ) ;
337
352
/// `AF_IB`
353
+ #[ cfg( any( target_os = "emscripten" , target_os = "fuchsia" ) ) ]
338
354
pub const IB : Self = Self ( c:: AF_IB as _ ) ;
339
355
/// `AF_IMPLINK`
356
+ #[ cfg( any( bsd, solarish, target_os = "aix" , target_os = "nto" ) ) ]
340
357
pub const IMPLINK : Self = Self ( c:: AF_IMPLINK as _ ) ;
341
358
/// `AF_IEEE80211`
359
+ #[ cfg( any( apple, freebsdlike, linuxlike, target_os = "netbsd" ) ) ]
342
360
pub const IEEE80211 : Self = Self ( c:: AF_IEEE80211 as _ ) ;
343
361
/// `AF_INET6_SDP`
362
+ #[ cfg( target_os = "freebsd" ) ]
344
363
pub const INET6_SDP : Self = Self ( c:: AF_INET6_SDP as _ ) ;
345
364
/// `AF_INET_OFFLOAD`
365
+ #[ cfg( solarish) ]
346
366
pub const INET_OFFLOAD : Self = Self ( c:: AF_INET_OFFLOAD as _ ) ;
347
367
/// `AF_INET_SDP`
368
+ #[ cfg( target_os = "freebsd" ) ]
348
369
pub const INET_SDP : Self = Self ( c:: AF_INET_SDP as _ ) ;
349
370
/// `AF_INTF`
371
+ #[ cfg( target_os = "aix" ) ]
350
372
pub const INTF : Self = Self ( c:: AF_INTF as _ ) ;
351
373
/// `AF_ISO`
374
+ #[ cfg( any( bsd, target_os = "aix" , target_os = "nto" ) ) ]
352
375
pub const ISO : Self = Self ( c:: AF_ISO as _ ) ;
353
- /// `AF_KCM`
354
- pub const KCM: Self = Self(c::AF_KCM as _);
355
376
/// `AF_LAT`
377
+ #[ cfg( any( bsd, solarish, target_os = "aix" , target_os = "nto" ) ) ]
356
378
pub const LAT : Self = Self ( c:: AF_LAT as _ ) ;
357
379
/// `AF_LINK`
380
+ #[ cfg( any( bsd, solarish, target_os = "aix" , target_os = "haiku" , target_os = "nto" ) ) ]
358
381
pub const LINK : Self = Self ( c:: AF_LINK as _ ) ;
359
- /// `AF_LOCAL`
360
- pub const LOCAL: Self = Self(c::AF_LOCAL as _);
361
- /// `AF_MIPC`
362
- pub const MIPC: Self = Self(c::AF_MIPC as _);
363
- /// `AF_MIPC_SAFE`
364
- pub const MIPC_SAFE: Self = Self(c::AF_MIPC_SAFE as _);
365
382
/// `AF_MPLS`
383
+ #[ cfg( any( netbsdlike, target_os = "dragonfly" , target_os = "emscripten" , target_os = "fuchsia" ) ) ]
366
384
pub const MPLS : Self = Self ( c:: AF_MPLS as _ ) ;
367
385
/// `AF_NATM`
386
+ #[ cfg( any( bsd, target_os = "aix" , target_os = "nto" ) ) ]
368
387
pub const NATM : Self = Self ( c:: AF_NATM as _ ) ;
369
388
/// `AF_NBS`
389
+ #[ cfg( solarish) ]
370
390
pub const NBS : Self = Self ( c:: AF_NBS as _ ) ;
371
391
/// `AF_NCA`
392
+ #[ cfg( solarish) ]
372
393
pub const NCA : Self = Self ( c:: AF_NCA as _ ) ;
373
394
/// `AF_NDD`
395
+ #[ cfg( target_os = "aix" ) ]
374
396
pub const NDD : Self = Self ( c:: AF_NDD as _ ) ;
375
397
/// `AF_NDRV`
398
+ #[ cfg( apple) ]
376
399
pub const NDRV : Self = Self ( c:: AF_NDRV as _ ) ;
377
400
/// `AF_NETBIOS`
401
+ #[ cfg( any( apple, freebsdlike) ) ]
378
402
pub const NETBIOS : Self = Self ( c:: AF_NETBIOS as _ ) ;
379
403
/// `AF_NETGRAPH`
404
+ #[ cfg( freebsdlike) ]
380
405
pub const NETGRAPH : Self = Self ( c:: AF_NETGRAPH as _ ) ;
381
406
/// `AF_NIT`
407
+ #[ cfg( solarish) ]
382
408
pub const NIT : Self = Self ( c:: AF_NIT as _ ) ;
383
409
/// `AF_NOTIFY`
410
+ #[ cfg( target_os = "haiku" ) ]
384
411
pub const NOTIFY : Self = Self ( c:: AF_NOTIFY as _ ) ;
385
412
/// `AF_NFC`
413
+ #[ cfg( any( target_os = "emscripten" , target_os = "fuchsia" ) ) ]
386
414
pub const NFC : Self = Self ( c:: AF_NFC as _ ) ;
387
415
/// `AF_NS`
416
+ #[ cfg( any( apple, solarish, netbsdlike, target_os = "aix" , target_os = "nto" ) ) ]
388
417
pub const NS : Self = Self ( c:: AF_NS as _ ) ;
389
418
/// `AF_OROUTE`
419
+ #[ cfg( target_os = "netbsd" ) ]
390
420
pub const OROUTE : Self = Self ( c:: AF_OROUTE as _ ) ;
391
421
/// `AF_OSI`
422
+ #[ cfg( any( bsd, solarish, target_os = "aix" , target_os = "nto" ) ) ]
392
423
pub const OSI : Self = Self ( c:: AF_OSI as _ ) ;
393
424
/// `AF_OSINET`
425
+ #[ cfg( solarish) ]
394
426
pub const OSINET : Self = Self ( c:: AF_OSINET as _ ) ;
395
427
/// `AF_POLICY`
428
+ #[ cfg( solarish) ]
396
429
pub const POLICY : Self = Self ( c:: AF_POLICY as _ ) ;
397
430
/// `AF_PPP`
431
+ #[ cfg( apple) ]
398
432
pub const PPP : Self = Self ( c:: AF_PPP as _ ) ;
399
433
/// `AF_PUP`
434
+ #[ cfg( any( bsd, solarish, target_os = "aix" , target_os = "nto" ) ) ]
400
435
pub const PUP : Self = Self ( c:: AF_PUP as _ ) ;
401
- /// `AF_QIPCRTR`
402
- pub const QIPCRTR: Self = Self(c::AF_QIPCRTR as _);
403
436
/// `AF_RIF`
437
+ #[ cfg( target_os = "aix" ) ]
404
438
pub const RIF : Self = Self ( c:: AF_RIF as _ ) ;
405
439
/// `AF_ROUTE`
440
+ #[ cfg( any( bsd, solarish, target_os = "android" , target_os = "emscripten" , target_os = "fuchsia" , target_os = "haiku" , target_os = "nto" ) ) ]
406
441
pub const ROUTE : Self = Self ( c:: AF_ROUTE as _ ) ;
407
442
/// `AF_SCLUSTER`
443
+ #[ cfg( target_os = "freebsd" ) ]
408
444
pub const SCLUSTER : Self = Self ( c:: AF_SCLUSTER as _ ) ;
409
445
/// `AF_SIP`
446
+ #[ cfg( any( apple, target_os = "freebsd" , target_os = "opensbd" ) ) ]
410
447
pub const SIP : Self = Self ( c:: AF_SIP as _ ) ;
411
448
/// `AF_SLOW`
449
+ #[ cfg( target_os = "freebsd" ) ]
412
450
pub const SLOW : Self = Self ( c:: AF_SLOW as _ ) ;
413
- /// `AF_SOCKDEV`
414
- pub const SOCKDEV: Self = Self(c::AF_SOCKDEV as _);
415
451
/// `AF_SYS_CONTROL`
452
+ #[ cfg( apple) ]
416
453
pub const SYS_CONTROL : Self = Self ( c:: AF_SYS_CONTROL as _ ) ;
417
454
/// `AF_SYSTEM`
455
+ #[ cfg( apple) ]
418
456
pub const SYSTEM : Self = Self ( c:: AF_SYSTEM as _ ) ;
419
457
/// `AF_TRILL`
458
+ #[ cfg( solarish) ]
420
459
pub const TRILL : Self = Self ( c:: AF_TRILL as _ ) ;
421
460
/// `AF_UTUN`
461
+ #[ cfg( apple) ]
422
462
pub const UTUN : Self = Self ( c:: AF_UTUN as _ ) ;
423
463
/// `AF_VSOCK`
464
+ #[ cfg( any( apple, target_os = "emscripten" , target_os = "fuchsia" ) ) ]
424
465
pub const VSOCK : Self = Self ( c:: AF_VSOCK as _ ) ;
425
- /// `AF_XDP`
426
- pub const XDP: Self = Self(c::AF_XDP as _);
427
- */
428
-
429
466
430
467
/// Constructs a `AddressFamily` from a raw integer.
431
468
#[ inline]
0 commit comments