1*7c478bd9Sstevel@tonic-gate /* 2*7c478bd9Sstevel@tonic-gate * CDDL HEADER START 3*7c478bd9Sstevel@tonic-gate * 4*7c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*7c478bd9Sstevel@tonic-gate * Common Development and Distribution License, Version 1.0 only 6*7c478bd9Sstevel@tonic-gate * (the "License"). You may not use this file except in compliance 7*7c478bd9Sstevel@tonic-gate * with the License. 8*7c478bd9Sstevel@tonic-gate * 9*7c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10*7c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 11*7c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 12*7c478bd9Sstevel@tonic-gate * and limitations under the License. 13*7c478bd9Sstevel@tonic-gate * 14*7c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 15*7c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16*7c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 17*7c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 18*7c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 19*7c478bd9Sstevel@tonic-gate * 20*7c478bd9Sstevel@tonic-gate * CDDL HEADER END 21*7c478bd9Sstevel@tonic-gate */ 22*7c478bd9Sstevel@tonic-gate /* 23*7c478bd9Sstevel@tonic-gate * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 24*7c478bd9Sstevel@tonic-gate * All Rights Reserved 25*7c478bd9Sstevel@tonic-gate * 26*7c478bd9Sstevel@tonic-gate */ 27*7c478bd9Sstevel@tonic-gate 28*7c478bd9Sstevel@tonic-gate /* 29*7c478bd9Sstevel@tonic-gate * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 30*7c478bd9Sstevel@tonic-gate * Use is subject to license terms. 31*7c478bd9Sstevel@tonic-gate */ 32*7c478bd9Sstevel@tonic-gate 33*7c478bd9Sstevel@tonic-gate /* 34*7c478bd9Sstevel@tonic-gate * WARNING: This is an implementation-specific header, 35*7c478bd9Sstevel@tonic-gate * its contents are not guaranteed. Applications 36*7c478bd9Sstevel@tonic-gate * should include <unistd.h> and not this header. 37*7c478bd9Sstevel@tonic-gate */ 38*7c478bd9Sstevel@tonic-gate 39*7c478bd9Sstevel@tonic-gate #ifndef _SYS_UNISTD_H 40*7c478bd9Sstevel@tonic-gate #define _SYS_UNISTD_H 41*7c478bd9Sstevel@tonic-gate 42*7c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" /* From SVR4.0 1.3 */ 43*7c478bd9Sstevel@tonic-gate 44*7c478bd9Sstevel@tonic-gate #include <sys/feature_tests.h> 45*7c478bd9Sstevel@tonic-gate 46*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 47*7c478bd9Sstevel@tonic-gate extern "C" { 48*7c478bd9Sstevel@tonic-gate #endif 49*7c478bd9Sstevel@tonic-gate 50*7c478bd9Sstevel@tonic-gate /* command names for confstr */ 51*7c478bd9Sstevel@tonic-gate 52*7c478bd9Sstevel@tonic-gate #define _CS_PATH 65 53*7c478bd9Sstevel@tonic-gate 54*7c478bd9Sstevel@tonic-gate /* 55*7c478bd9Sstevel@tonic-gate * command names for large file configuration information 56*7c478bd9Sstevel@tonic-gate */ 57*7c478bd9Sstevel@tonic-gate /* large file compilation environment configuration */ 58*7c478bd9Sstevel@tonic-gate #define _CS_LFS_CFLAGS 68 59*7c478bd9Sstevel@tonic-gate #define _CS_LFS_LDFLAGS 69 60*7c478bd9Sstevel@tonic-gate #define _CS_LFS_LIBS 70 61*7c478bd9Sstevel@tonic-gate #define _CS_LFS_LINTFLAGS 71 62*7c478bd9Sstevel@tonic-gate /* transitional large file interface configuration */ 63*7c478bd9Sstevel@tonic-gate #define _CS_LFS64_CFLAGS 72 64*7c478bd9Sstevel@tonic-gate #define _CS_LFS64_LDFLAGS 73 65*7c478bd9Sstevel@tonic-gate #define _CS_LFS64_LIBS 74 66*7c478bd9Sstevel@tonic-gate #define _CS_LFS64_LINTFLAGS 75 67*7c478bd9Sstevel@tonic-gate 68*7c478bd9Sstevel@tonic-gate /* UNIX 98 */ 69*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFF32_CFLAGS 700 70*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFF32_LDFLAGS 701 71*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFF32_LIBS 702 72*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFF32_LINTFLAGS 703 73*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFFBIG_CFLAGS 705 74*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFFBIG_LDFLAGS 706 75*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFFBIG_LIBS 707 76*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS 708 77*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_LP64_OFF64_CFLAGS 709 78*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_LP64_OFF64_LDFLAGS 710 79*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_LP64_OFF64_LIBS 711 80*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_LP64_OFF64_LINTFLAGS 712 81*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_LPBIG_OFFBIG_CFLAGS 713 82*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS 714 83*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_LPBIG_OFFBIG_LIBS 715 84*7c478bd9Sstevel@tonic-gate #define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS 716 85*7c478bd9Sstevel@tonic-gate 86*7c478bd9Sstevel@tonic-gate /* UNIX 03 */ 87*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFF32_CFLAGS 800 88*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 801 89*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFF32_LIBS 802 90*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS 803 91*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 804 92*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 805 93*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 806 94*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS 807 95*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LP64_OFF64_CFLAGS 808 96*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LP64_OFF64_LDFLAGS 809 97*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LP64_OFF64_LIBS 810 98*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LP64_OFF64_LINTFLAGS 811 99*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 812 100*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 813 101*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 814 102*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS 815 103*7c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 816 104*7c478bd9Sstevel@tonic-gate 105*7c478bd9Sstevel@tonic-gate /* command names for POSIX sysconf */ 106*7c478bd9Sstevel@tonic-gate 107*7c478bd9Sstevel@tonic-gate /* POSIX.1 names */ 108*7c478bd9Sstevel@tonic-gate #define _SC_ARG_MAX 1 109*7c478bd9Sstevel@tonic-gate #define _SC_CHILD_MAX 2 110*7c478bd9Sstevel@tonic-gate #define _SC_CLK_TCK 3 111*7c478bd9Sstevel@tonic-gate #define _SC_NGROUPS_MAX 4 112*7c478bd9Sstevel@tonic-gate #define _SC_OPEN_MAX 5 113*7c478bd9Sstevel@tonic-gate #define _SC_JOB_CONTROL 6 114*7c478bd9Sstevel@tonic-gate #define _SC_SAVED_IDS 7 115*7c478bd9Sstevel@tonic-gate #define _SC_VERSION 8 116*7c478bd9Sstevel@tonic-gate /* SVR4 names */ 117*7c478bd9Sstevel@tonic-gate #define _SC_PASS_MAX 9 118*7c478bd9Sstevel@tonic-gate #define _SC_LOGNAME_MAX 10 119*7c478bd9Sstevel@tonic-gate #define _SC_PAGESIZE 11 120*7c478bd9Sstevel@tonic-gate #define _SC_XOPEN_VERSION 12 121*7c478bd9Sstevel@tonic-gate /* 13 reserved for SVr4-ES/MP _SC_NACLS_MAX */ 122*7c478bd9Sstevel@tonic-gate #define _SC_NPROCESSORS_CONF 14 123*7c478bd9Sstevel@tonic-gate #define _SC_NPROCESSORS_ONLN 15 124*7c478bd9Sstevel@tonic-gate #define _SC_STREAM_MAX 16 125*7c478bd9Sstevel@tonic-gate #define _SC_TZNAME_MAX 17 126*7c478bd9Sstevel@tonic-gate /* POSIX.4 names */ 127*7c478bd9Sstevel@tonic-gate #define _SC_AIO_LISTIO_MAX 18 128*7c478bd9Sstevel@tonic-gate #define _SC_AIO_MAX 19 129*7c478bd9Sstevel@tonic-gate #define _SC_AIO_PRIO_DELTA_MAX 20 130*7c478bd9Sstevel@tonic-gate #define _SC_ASYNCHRONOUS_IO 21 131*7c478bd9Sstevel@tonic-gate #define _SC_DELAYTIMER_MAX 22 132*7c478bd9Sstevel@tonic-gate #define _SC_FSYNC 23 133*7c478bd9Sstevel@tonic-gate #define _SC_MAPPED_FILES 24 134*7c478bd9Sstevel@tonic-gate #define _SC_MEMLOCK 25 135*7c478bd9Sstevel@tonic-gate #define _SC_MEMLOCK_RANGE 26 136*7c478bd9Sstevel@tonic-gate #define _SC_MEMORY_PROTECTION 27 137*7c478bd9Sstevel@tonic-gate #define _SC_MESSAGE_PASSING 28 138*7c478bd9Sstevel@tonic-gate #define _SC_MQ_OPEN_MAX 29 139*7c478bd9Sstevel@tonic-gate #define _SC_MQ_PRIO_MAX 30 140*7c478bd9Sstevel@tonic-gate #define _SC_PRIORITIZED_IO 31 141*7c478bd9Sstevel@tonic-gate #define _SC_PRIORITY_SCHEDULING 32 142*7c478bd9Sstevel@tonic-gate #define _SC_REALTIME_SIGNALS 33 143*7c478bd9Sstevel@tonic-gate #define _SC_RTSIG_MAX 34 144*7c478bd9Sstevel@tonic-gate #define _SC_SEMAPHORES 35 145*7c478bd9Sstevel@tonic-gate #define _SC_SEM_NSEMS_MAX 36 146*7c478bd9Sstevel@tonic-gate #define _SC_SEM_VALUE_MAX 37 147*7c478bd9Sstevel@tonic-gate #define _SC_SHARED_MEMORY_OBJECTS 38 148*7c478bd9Sstevel@tonic-gate #define _SC_SIGQUEUE_MAX 39 149*7c478bd9Sstevel@tonic-gate #define _SC_SIGRT_MIN 40 150*7c478bd9Sstevel@tonic-gate #define _SC_SIGRT_MAX 41 151*7c478bd9Sstevel@tonic-gate #define _SC_SYNCHRONIZED_IO 42 152*7c478bd9Sstevel@tonic-gate #define _SC_TIMERS 43 153*7c478bd9Sstevel@tonic-gate #define _SC_TIMER_MAX 44 154*7c478bd9Sstevel@tonic-gate /* XPG4 names */ 155*7c478bd9Sstevel@tonic-gate #define _SC_2_C_BIND 45 156*7c478bd9Sstevel@tonic-gate #define _SC_2_C_DEV 46 157*7c478bd9Sstevel@tonic-gate #define _SC_2_C_VERSION 47 158*7c478bd9Sstevel@tonic-gate #define _SC_2_FORT_DEV 48 159*7c478bd9Sstevel@tonic-gate #define _SC_2_FORT_RUN 49 160*7c478bd9Sstevel@tonic-gate #define _SC_2_LOCALEDEF 50 161*7c478bd9Sstevel@tonic-gate #define _SC_2_SW_DEV 51 162*7c478bd9Sstevel@tonic-gate #define _SC_2_UPE 52 163*7c478bd9Sstevel@tonic-gate #define _SC_2_VERSION 53 164*7c478bd9Sstevel@tonic-gate #define _SC_BC_BASE_MAX 54 165*7c478bd9Sstevel@tonic-gate #define _SC_BC_DIM_MAX 55 166*7c478bd9Sstevel@tonic-gate #define _SC_BC_SCALE_MAX 56 167*7c478bd9Sstevel@tonic-gate #define _SC_BC_STRING_MAX 57 168*7c478bd9Sstevel@tonic-gate #define _SC_COLL_WEIGHTS_MAX 58 169*7c478bd9Sstevel@tonic-gate #define _SC_EXPR_NEST_MAX 59 170*7c478bd9Sstevel@tonic-gate #define _SC_LINE_MAX 60 171*7c478bd9Sstevel@tonic-gate #define _SC_RE_DUP_MAX 61 172*7c478bd9Sstevel@tonic-gate #define _SC_XOPEN_CRYPT 62 173*7c478bd9Sstevel@tonic-gate #define _SC_XOPEN_ENH_I18N 63 174*7c478bd9Sstevel@tonic-gate #define _SC_XOPEN_SHM 64 175*7c478bd9Sstevel@tonic-gate 176*7c478bd9Sstevel@tonic-gate /* additional XSH4/XCU4 command names for sysconf */ 177*7c478bd9Sstevel@tonic-gate #define _SC_2_CHAR_TERM 66 178*7c478bd9Sstevel@tonic-gate #define _SC_XOPEN_XCU_VERSION 67 179*7c478bd9Sstevel@tonic-gate 180*7c478bd9Sstevel@tonic-gate /* additional XPG4v2 (UNIX 95) command names */ 181*7c478bd9Sstevel@tonic-gate #define _SC_ATEXIT_MAX 76 182*7c478bd9Sstevel@tonic-gate #define _SC_IOV_MAX 77 183*7c478bd9Sstevel@tonic-gate #define _SC_XOPEN_UNIX 78 184*7c478bd9Sstevel@tonic-gate #define _SC_PAGE_SIZE _SC_PAGESIZE 185*7c478bd9Sstevel@tonic-gate 186*7c478bd9Sstevel@tonic-gate /* defined for XTI (XNS Issue 5) */ 187*7c478bd9Sstevel@tonic-gate #ifndef _SC_T_IOV_MAX 188*7c478bd9Sstevel@tonic-gate #define _SC_T_IOV_MAX 79 /* Must be same in <xti.h> */ 189*7c478bd9Sstevel@tonic-gate #endif /* T_IOV_MAX must be <= IOV_MAX */ 190*7c478bd9Sstevel@tonic-gate 191*7c478bd9Sstevel@tonic-gate #define _SC_PHYS_PAGES 500 192*7c478bd9Sstevel@tonic-gate #define _SC_AVPHYS_PAGES 501 193*7c478bd9Sstevel@tonic-gate 194*7c478bd9Sstevel@tonic-gate /* 195*7c478bd9Sstevel@tonic-gate * Hardware specific items 196*7c478bd9Sstevel@tonic-gate * Note that not all items are supported on all architectures 197*7c478bd9Sstevel@tonic-gate */ 198*7c478bd9Sstevel@tonic-gate #define _SC_COHER_BLKSZ 503 /* Coherence block size */ 199*7c478bd9Sstevel@tonic-gate #define _SC_SPLIT_CACHE 504 /* != 0 iff a split cache */ 200*7c478bd9Sstevel@tonic-gate #define _SC_ICACHE_SZ 505 /* Instruction cache size (bytes) */ 201*7c478bd9Sstevel@tonic-gate #define _SC_DCACHE_SZ 506 /* Data cache size (bytes) */ 202*7c478bd9Sstevel@tonic-gate #define _SC_ICACHE_LINESZ 507 /* Instruction cache line size */ 203*7c478bd9Sstevel@tonic-gate #define _SC_DCACHE_LINESZ 508 /* Data cache line size */ 204*7c478bd9Sstevel@tonic-gate #define _SC_ICACHE_BLKSZ 509 /* Block size invalidated for icache */ 205*7c478bd9Sstevel@tonic-gate #define _SC_DCACHE_BLKSZ 510 /* Block size for dcache */ 206*7c478bd9Sstevel@tonic-gate #define _SC_DCACHE_TBLKSZ 511 /* Block size for dcache prefetch */ 207*7c478bd9Sstevel@tonic-gate #define _SC_ICACHE_ASSOC 512 /* Icache associativity 1, 2, 3 etc */ 208*7c478bd9Sstevel@tonic-gate #define _SC_DCACHE_ASSOC 513 /* Dcache associativity 1, 2, 3 etc */ 209*7c478bd9Sstevel@tonic-gate 210*7c478bd9Sstevel@tonic-gate #define _SC_MAXPID 514 /* maximum pid value */ 211*7c478bd9Sstevel@tonic-gate #define _SC_STACK_PROT 515 /* default stack protection */ 212*7c478bd9Sstevel@tonic-gate #define _SC_NPROCESSORS_MAX 516 /* maximum # of processors */ 213*7c478bd9Sstevel@tonic-gate #define _SC_CPUID_MAX 517 /* maximum CPU id */ 214*7c478bd9Sstevel@tonic-gate 215*7c478bd9Sstevel@tonic-gate /* 216*7c478bd9Sstevel@tonic-gate * POSIX.1c (pthreads) names. These values are defined above 217*7c478bd9Sstevel@tonic-gate * the sub-500 range. See psarc case 1995/257. 218*7c478bd9Sstevel@tonic-gate */ 219*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_DESTRUCTOR_ITERATIONS 568 220*7c478bd9Sstevel@tonic-gate #define _SC_GETGR_R_SIZE_MAX 569 221*7c478bd9Sstevel@tonic-gate #define _SC_GETPW_R_SIZE_MAX 570 222*7c478bd9Sstevel@tonic-gate #define _SC_LOGIN_NAME_MAX 571 223*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_KEYS_MAX 572 224*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_STACK_MIN 573 225*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_THREADS_MAX 574 226*7c478bd9Sstevel@tonic-gate #define _SC_TTY_NAME_MAX 575 227*7c478bd9Sstevel@tonic-gate #define _SC_THREADS 576 228*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_ATTR_STACKADDR 577 229*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_ATTR_STACKSIZE 578 230*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_PRIORITY_SCHEDULING 579 231*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_PRIO_INHERIT 580 232*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_PRIO_PROTECT 581 233*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_PROCESS_SHARED 582 234*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_SAFE_FUNCTIONS 583 235*7c478bd9Sstevel@tonic-gate 236*7c478bd9Sstevel@tonic-gate /* UNIX 98 */ 237*7c478bd9Sstevel@tonic-gate #define _SC_XOPEN_LEGACY 717 238*7c478bd9Sstevel@tonic-gate #define _SC_XOPEN_REALTIME 718 239*7c478bd9Sstevel@tonic-gate #define _SC_XOPEN_REALTIME_THREADS 719 240*7c478bd9Sstevel@tonic-gate #define _SC_XBS5_ILP32_OFF32 720 241*7c478bd9Sstevel@tonic-gate #define _SC_XBS5_ILP32_OFFBIG 721 242*7c478bd9Sstevel@tonic-gate #define _SC_XBS5_LP64_OFF64 722 243*7c478bd9Sstevel@tonic-gate #define _SC_XBS5_LPBIG_OFFBIG 723 244*7c478bd9Sstevel@tonic-gate 245*7c478bd9Sstevel@tonic-gate /* UNIX 03 */ 246*7c478bd9Sstevel@tonic-gate #define _SC_2_PBS 724 247*7c478bd9Sstevel@tonic-gate #define _SC_2_PBS_ACCOUNTING 725 248*7c478bd9Sstevel@tonic-gate #define _SC_2_PBS_CHECKPOINT 726 249*7c478bd9Sstevel@tonic-gate #define _SC_2_PBS_LOCATE 728 250*7c478bd9Sstevel@tonic-gate #define _SC_2_PBS_MESSAGE 729 251*7c478bd9Sstevel@tonic-gate #define _SC_2_PBS_TRACK 730 252*7c478bd9Sstevel@tonic-gate #define _SC_ADVISORY_INFO 731 253*7c478bd9Sstevel@tonic-gate #define _SC_BARRIERS 732 254*7c478bd9Sstevel@tonic-gate #define _SC_CLOCK_SELECTION 733 255*7c478bd9Sstevel@tonic-gate #define _SC_CPUTIME 734 256*7c478bd9Sstevel@tonic-gate #define _SC_HOST_NAME_MAX 735 257*7c478bd9Sstevel@tonic-gate #define _SC_MONOTONIC_CLOCK 736 258*7c478bd9Sstevel@tonic-gate #define _SC_READER_WRITER_LOCKS 737 259*7c478bd9Sstevel@tonic-gate #define _SC_REGEXP 738 260*7c478bd9Sstevel@tonic-gate #define _SC_SHELL 739 261*7c478bd9Sstevel@tonic-gate #define _SC_SPAWN 740 262*7c478bd9Sstevel@tonic-gate #define _SC_SPIN_LOCKS 741 263*7c478bd9Sstevel@tonic-gate #define _SC_SPORADIC_SERVER 742 264*7c478bd9Sstevel@tonic-gate #define _SC_SS_REPL_MAX 743 265*7c478bd9Sstevel@tonic-gate #define _SC_SYMLOOP_MAX 744 266*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_CPUTIME 745 267*7c478bd9Sstevel@tonic-gate #define _SC_THREAD_SPORADIC_SERVER 746 268*7c478bd9Sstevel@tonic-gate #define _SC_TIMEOUTS 747 269*7c478bd9Sstevel@tonic-gate #define _SC_TRACE 748 270*7c478bd9Sstevel@tonic-gate #define _SC_TRACE_EVENT_FILTER 749 271*7c478bd9Sstevel@tonic-gate #define _SC_TRACE_EVENT_NAME_MAX 750 272*7c478bd9Sstevel@tonic-gate #define _SC_TRACE_INHERIT 751 273*7c478bd9Sstevel@tonic-gate #define _SC_TRACE_LOG 752 274*7c478bd9Sstevel@tonic-gate #define _SC_TRACE_NAME_MAX 753 275*7c478bd9Sstevel@tonic-gate #define _SC_TRACE_SYS_MAX 754 276*7c478bd9Sstevel@tonic-gate #define _SC_TRACE_USER_EVENT_MAX 755 277*7c478bd9Sstevel@tonic-gate #define _SC_TYPED_MEMORY_OBJECTS 756 278*7c478bd9Sstevel@tonic-gate #define _SC_V6_ILP32_OFF32 757 279*7c478bd9Sstevel@tonic-gate #define _SC_V6_ILP32_OFFBIG 758 280*7c478bd9Sstevel@tonic-gate #define _SC_V6_LP64_OFF64 759 281*7c478bd9Sstevel@tonic-gate #define _SC_V6_LPBIG_OFFBIG 760 282*7c478bd9Sstevel@tonic-gate #define _SC_XOPEN_STREAMS 761 283*7c478bd9Sstevel@tonic-gate #define _SC_IPV6 762 284*7c478bd9Sstevel@tonic-gate #define _SC_RAW_SOCKETS 763 285*7c478bd9Sstevel@tonic-gate 286*7c478bd9Sstevel@tonic-gate /* command names for POSIX pathconf */ 287*7c478bd9Sstevel@tonic-gate 288*7c478bd9Sstevel@tonic-gate /* POSIX.1 names */ 289*7c478bd9Sstevel@tonic-gate #define _PC_LINK_MAX 1 290*7c478bd9Sstevel@tonic-gate #define _PC_MAX_CANON 2 291*7c478bd9Sstevel@tonic-gate #define _PC_MAX_INPUT 3 292*7c478bd9Sstevel@tonic-gate #define _PC_NAME_MAX 4 293*7c478bd9Sstevel@tonic-gate #define _PC_PATH_MAX 5 294*7c478bd9Sstevel@tonic-gate #define _PC_PIPE_BUF 6 295*7c478bd9Sstevel@tonic-gate #define _PC_NO_TRUNC 7 296*7c478bd9Sstevel@tonic-gate #define _PC_VDISABLE 8 297*7c478bd9Sstevel@tonic-gate #define _PC_CHOWN_RESTRICTED 9 298*7c478bd9Sstevel@tonic-gate /* POSIX.4 names */ 299*7c478bd9Sstevel@tonic-gate #define _PC_ASYNC_IO 10 300*7c478bd9Sstevel@tonic-gate #define _PC_PRIO_IO 11 301*7c478bd9Sstevel@tonic-gate #define _PC_SYNC_IO 12 302*7c478bd9Sstevel@tonic-gate /* UNIX 03 names */ 303*7c478bd9Sstevel@tonic-gate #define _PC_ALLOC_SIZE_MIN 13 304*7c478bd9Sstevel@tonic-gate #define _PC_REC_INCR_XFER_SIZE 14 305*7c478bd9Sstevel@tonic-gate #define _PC_REC_MAX_XFER_SIZE 15 306*7c478bd9Sstevel@tonic-gate #define _PC_REC_MIN_XFER_SIZE 16 307*7c478bd9Sstevel@tonic-gate #define _PC_REC_XFER_ALIGN 17 308*7c478bd9Sstevel@tonic-gate #define _PC_SYMLINK_MAX 18 309*7c478bd9Sstevel@tonic-gate #define _PC_2_SYMLINKS 19 310*7c478bd9Sstevel@tonic-gate #define _PC_ACL_ENABLED 20 311*7c478bd9Sstevel@tonic-gate #define _PC_MIN_HOLE_SIZE 21 312*7c478bd9Sstevel@tonic-gate /* 313*7c478bd9Sstevel@tonic-gate * Large File Summit names 314*7c478bd9Sstevel@tonic-gate * 315*7c478bd9Sstevel@tonic-gate * This value matches the MIPS ABI choice, but leaves a large gap in the 316*7c478bd9Sstevel@tonic-gate * value space. 317*7c478bd9Sstevel@tonic-gate */ 318*7c478bd9Sstevel@tonic-gate #define _PC_FILESIZEBITS 67 319*7c478bd9Sstevel@tonic-gate #define _PC_LAST 67 320*7c478bd9Sstevel@tonic-gate 321*7c478bd9Sstevel@tonic-gate /* 322*7c478bd9Sstevel@tonic-gate * Extended attributes 323*7c478bd9Sstevel@tonic-gate */ 324*7c478bd9Sstevel@tonic-gate #define _PC_XATTR_ENABLED 100 325*7c478bd9Sstevel@tonic-gate #define _PC_XATTR_EXISTS 101 326*7c478bd9Sstevel@tonic-gate 327*7c478bd9Sstevel@tonic-gate /* 328*7c478bd9Sstevel@tonic-gate * The value of 0 is returned when 329*7c478bd9Sstevel@tonic-gate * ACL's are not supported 330*7c478bd9Sstevel@tonic-gate */ 331*7c478bd9Sstevel@tonic-gate #define _ACL_ACLENT_ENABLED 0x1 332*7c478bd9Sstevel@tonic-gate #define _ACL_ACE_ENABLED 0x2 333*7c478bd9Sstevel@tonic-gate 334*7c478bd9Sstevel@tonic-gate #ifndef _POSIX_VERSION 335*7c478bd9Sstevel@tonic-gate #ifdef _XPG6 336*7c478bd9Sstevel@tonic-gate #define _POSIX_VERSION 200112L /* Supports IEEE Std 1003.1-2001 */ 337*7c478bd9Sstevel@tonic-gate #else 338*7c478bd9Sstevel@tonic-gate #define _POSIX_VERSION 199506L /* Supports POSIX-1c DIS */ 339*7c478bd9Sstevel@tonic-gate #endif 340*7c478bd9Sstevel@tonic-gate #endif /* _POSIX_VERSION */ 341*7c478bd9Sstevel@tonic-gate 342*7c478bd9Sstevel@tonic-gate #ifndef _POSIX2_VERSION 343*7c478bd9Sstevel@tonic-gate #ifdef _XPG6 344*7c478bd9Sstevel@tonic-gate #define _POSIX2_VERSION 200112L /* Supports IEEE Std 1003.1-2001 */ 345*7c478bd9Sstevel@tonic-gate #else 346*7c478bd9Sstevel@tonic-gate #define _POSIX2_VERSION 199209L /* Supports ISO POSIX-2 DIS */ 347*7c478bd9Sstevel@tonic-gate #endif 348*7c478bd9Sstevel@tonic-gate #endif /* _POSIX2_VERSION */ 349*7c478bd9Sstevel@tonic-gate 350*7c478bd9Sstevel@tonic-gate /* 351*7c478bd9Sstevel@tonic-gate * Marked LEGACY in SUSv2 and removed in SUSv3. Though SUSv3 applications 352*7c478bd9Sstevel@tonic-gate * should not rely on this value, it has been aligned with the current 353*7c478bd9Sstevel@tonic-gate * standard to avoid confusion if used. 354*7c478bd9Sstevel@tonic-gate */ 355*7c478bd9Sstevel@tonic-gate #ifndef _POSIX2_C_VERSION 356*7c478bd9Sstevel@tonic-gate #ifdef _XPG6 357*7c478bd9Sstevel@tonic-gate #define _POSIX2_C_VERSION 200112L /* Supports IEEE Std 1003.1-2001 */ 358*7c478bd9Sstevel@tonic-gate #else 359*7c478bd9Sstevel@tonic-gate #define _POSIX2_C_VERSION 199209L /* Supports ISO POSIX-2 DIS */ 360*7c478bd9Sstevel@tonic-gate #endif 361*7c478bd9Sstevel@tonic-gate #endif /* _POSIX2_C_VERSION */ 362*7c478bd9Sstevel@tonic-gate 363*7c478bd9Sstevel@tonic-gate #define _XOPEN_XPG3 /* Supports XPG, Issue 3 */ 364*7c478bd9Sstevel@tonic-gate #define _XOPEN_XPG4 /* Supports XPG, Issue 4 */ 365*7c478bd9Sstevel@tonic-gate #define _XOPEN_UNIX /* Supports XPG, Issue 4, Version 2 */ 366*7c478bd9Sstevel@tonic-gate 367*7c478bd9Sstevel@tonic-gate #ifndef _XOPEN_XCU_VERSION 368*7c478bd9Sstevel@tonic-gate #define _XOPEN_XCU_VERSION 4 /* Supports XCU4 */ 369*7c478bd9Sstevel@tonic-gate #endif 370*7c478bd9Sstevel@tonic-gate 371*7c478bd9Sstevel@tonic-gate #define _XOPEN_REALTIME 1 /* Supports Realtime */ 372*7c478bd9Sstevel@tonic-gate #define _XOPEN_ENH_I18N 1 /* Supports Enhanced International */ 373*7c478bd9Sstevel@tonic-gate #define _XOPEN_SHM 1 /* Supports Shared Memory Feature */ 374*7c478bd9Sstevel@tonic-gate #define _POSIX2_C_BIND 200112L /* Supports C Language Bindings */ 375*7c478bd9Sstevel@tonic-gate #define _POSIX2_C_DEV 1 /* Supports C language dev utility */ 376*7c478bd9Sstevel@tonic-gate #define _POSIX2_CHAR_TERM 1 /* Supports at least 1 terminal type */ 377*7c478bd9Sstevel@tonic-gate #define _POSIX2_FORT_RUN 200112L /* Supports FORTRAN runtime */ 378*7c478bd9Sstevel@tonic-gate #define _POSIX2_LOCALEDEF 1 /* Supports creation of locales */ 379*7c478bd9Sstevel@tonic-gate #define _POSIX2_SW_DEV 1 /* Supports S/W Devlopement Utility */ 380*7c478bd9Sstevel@tonic-gate #define _POSIX2_UPE 1 /* Supports User Portability Utility */ 381*7c478bd9Sstevel@tonic-gate 382*7c478bd9Sstevel@tonic-gate /* UNIX 03 names */ 383*7c478bd9Sstevel@tonic-gate #define _POSIX_REGEXP 1 /* Supports POSIX Regular Expressions */ 384*7c478bd9Sstevel@tonic-gate #define _POSIX_SHELL 1 /* Supports POSIX shell */ 385*7c478bd9Sstevel@tonic-gate #define _XOPEN_STREAMS 1 /* Supports XSI Streams Option Group */ 386*7c478bd9Sstevel@tonic-gate 387*7c478bd9Sstevel@tonic-gate #ifdef __cplusplus 388*7c478bd9Sstevel@tonic-gate } 389*7c478bd9Sstevel@tonic-gate #endif 390*7c478bd9Sstevel@tonic-gate 391*7c478bd9Sstevel@tonic-gate #endif /* _SYS_UNISTD_H */ 392