@@ -947,6 +947,8 @@ pub fn pathconf<P: ?Sized + NixPath>(path: &P, var: PathconfVar) -> Result<Optio
947
947
pub enum SysconfVar {
948
948
AIO_LISTIO_MAX = libc:: _SC_AIO_LISTIO_MAX,
949
949
AIO_MAX = libc:: _SC_AIO_MAX,
950
+ #[ cfg( any( target_os="dragonfly" , target_os="freebsd" , target_os = "ios" ,
951
+ target_os="linux" , target_os = "macos" , target_os="openbsd" ) ) ]
950
952
AIO_PRIO_DELTA_MAX = libc:: _SC_AIO_PRIO_DELTA_MAX,
951
953
ARG_MAX = libc:: _SC_ARG_MAX,
952
954
ATEXIT_MAX = libc:: _SC_ATEXIT_MAX,
@@ -957,6 +959,8 @@ BC_STRING_MAX = libc::_SC_BC_STRING_MAX,
957
959
CHILD_MAX = libc:: _SC_CHILD_MAX,
958
960
// _SC_CLK_TCK is obsolete
959
961
COLL_WEIGHTS_MAX = libc:: _SC_COLL_WEIGHTS_MAX,
962
+ #[ cfg( any( target_os="dragonfly" , target_os="freebsd" , target_os = "ios" ,
963
+ target_os="linux" , target_os = "macos" , target_os="openbsd" ) ) ]
960
964
DELAYTIMER_MAX = libc:: _SC_DELAYTIMER_MAX,
961
965
EXPR_NEST_MAX = libc:: _SC_EXPR_NEST_MAX,
962
966
HOST_NAME_MAX = libc:: _SC_HOST_NAME_MAX,
@@ -989,12 +993,16 @@ _POSIX_MEMORY_PROTECTION = libc::_SC_MEMORY_PROTECTION,
989
993
_POSIX_MESSAGE_PASSING = libc:: _SC_MESSAGE_PASSING,
990
994
#[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
991
995
_POSIX_MONOTONIC_CLOCK = libc:: _SC_MONOTONIC_CLOCK,
996
+ #[ cfg( any( target_os="dragonfly" , target_os="freebsd" , target_os = "ios" ,
997
+ target_os="linux" , target_os = "macos" , target_os="openbsd" ) ) ]
992
998
_POSIX_PRIORITIZED_IO = libc:: _SC_PRIORITIZED_IO,
993
999
_POSIX_PRIORITY_SCHEDULING = libc:: _SC_PRIORITY_SCHEDULING,
994
1000
#[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
995
1001
_POSIX_RAW_SOCKETS = libc:: _SC_RAW_SOCKETS,
996
1002
#[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
997
1003
_POSIX_READER_WRITER_LOCKS = libc:: _SC_READER_WRITER_LOCKS,
1004
+ #[ cfg( any( target_os="dragonfly" , target_os="freebsd" , target_os = "ios" ,
1005
+ target_os="linux" , target_os = "macos" , target_os="openbsd" ) ) ]
998
1006
_POSIX_REALTIME_SIGNALS = libc:: _SC_REALTIME_SIGNALS,
999
1007
#[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
1000
1008
_POSIX_REGEXP = libc:: _SC_REGEXP,
@@ -1087,25 +1095,56 @@ PTHREAD_KEYS_MAX = libc::_SC_THREAD_KEYS_MAX,
1087
1095
PTHREAD_STACK_MIN = libc:: _SC_THREAD_STACK_MIN,
1088
1096
PTHREAD_THREADS_MAX = libc:: _SC_THREAD_THREADS_MAX,
1089
1097
RE_DUP_MAX = libc:: _SC_RE_DUP_MAX,
1098
+ #[ cfg( any( target_os="dragonfly" , target_os="freebsd" , target_os = "ios" ,
1099
+ target_os="linux" , target_os = "macos" , target_os="openbsd" ) ) ]
1090
1100
RTSIG_MAX = libc:: _SC_RTSIG_MAX,
1101
+ #[ cfg( any( target_os="dragonfly" , target_os="freebsd" , target_os = "ios" ,
1102
+ target_os="linux" , target_os = "macos" , target_os="openbsd" ) ) ]
1091
1103
SEM_NSEMS_MAX = libc:: _SC_SEM_NSEMS_MAX,
1104
+ #[ cfg( any( target_os="dragonfly" , target_os="freebsd" , target_os = "ios" ,
1105
+ target_os="linux" , target_os = "macos" , target_os="openbsd" ) ) ]
1092
1106
SEM_VALUE_MAX = libc:: _SC_SEM_VALUE_MAX,
1107
+ #[ cfg( any( target_os="dragonfly" , target_os="freebsd" , target_os = "ios" ,
1108
+ target_os="linux" , target_os = "macos" , target_os="openbsd" ) ) ]
1093
1109
SIGQUEUE_MAX = libc:: _SC_SIGQUEUE_MAX,
1094
1110
STREAM_MAX = libc:: _SC_STREAM_MAX,
1095
1111
#[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
1096
1112
SYMLOOP_MAX = libc:: _SC_SYMLOOP_MAX,
1113
+ #[ cfg( any( target_os="dragonfly" , target_os="freebsd" , target_os = "ios" ,
1114
+ target_os="linux" , target_os = "macos" , target_os="openbsd" ) ) ]
1097
1115
TIMER_MAX = libc:: _SC_TIMER_MAX,
1098
1116
TTY_NAME_MAX = libc:: _SC_TTY_NAME_MAX,
1099
1117
TZNAME_MAX = libc:: _SC_TZNAME_MAX,
1118
+ #[ cfg( any( target_os="android" , target_os="dragonfly" , target_os="freebsd" ,
1119
+ target_os = "ios" , target_os="linux" , target_os = "macos" ,
1120
+ target_os="openbsd" ) ) ]
1100
1121
_XOPEN_CRYPT = libc:: _SC_XOPEN_CRYPT,
1122
+ #[ cfg( any( target_os="android" , target_os="dragonfly" , target_os="freebsd" ,
1123
+ target_os = "ios" , target_os="linux" , target_os = "macos" ,
1124
+ target_os="openbsd" ) ) ]
1101
1125
_XOPEN_ENH_I18N = libc:: _SC_XOPEN_ENH_I18N,
1126
+ #[ cfg( any( target_os="android" , target_os="dragonfly" , target_os="freebsd" ,
1127
+ target_os = "ios" , target_os="linux" , target_os = "macos" ,
1128
+ target_os="openbsd" ) ) ]
1102
1129
_XOPEN_LEGACY = libc:: _SC_XOPEN_LEGACY,
1130
+ #[ cfg( any( target_os="android" , target_os="dragonfly" , target_os="freebsd" ,
1131
+ target_os = "ios" , target_os="linux" , target_os = "macos" ,
1132
+ target_os="openbsd" ) ) ]
1103
1133
_XOPEN_REALTIME = libc:: _SC_XOPEN_REALTIME,
1134
+ #[ cfg( any( target_os="android" , target_os="dragonfly" , target_os="freebsd" ,
1135
+ target_os = "ios" , target_os="linux" , target_os = "macos" ,
1136
+ target_os="openbsd" ) ) ]
1104
1137
_XOPEN_REALTIME_THREADS = libc:: _SC_XOPEN_REALTIME_THREADS,
1105
1138
_XOPEN_SHM = libc:: _SC_XOPEN_SHM,
1106
1139
#[ cfg( any( target_os = "ios" , target_os = "macos" ) ) ]
1107
1140
_XOPEN_STREAMS = libc:: _SC_XOPEN_STREAMS,
1141
+ #[ cfg( any( target_os="android" , target_os="dragonfly" , target_os="freebsd" ,
1142
+ target_os = "ios" , target_os="linux" , target_os = "macos" ,
1143
+ target_os="openbsd" ) ) ]
1108
1144
_XOPEN_UNIX = libc:: _SC_XOPEN_UNIX,
1145
+ #[ cfg( any( target_os="android" , target_os="dragonfly" , target_os="freebsd" ,
1146
+ target_os = "ios" , target_os="linux" , target_os = "macos" ,
1147
+ target_os="openbsd" ) ) ]
1109
1148
_XOPEN_VERSION = libc:: _SC_XOPEN_VERSION,
1110
1149
}
1111
1150
0 commit comments