17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 5*f48205beScasper * Common Development and Distribution License (the "License"). 6*f48205beScasper * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 217c478bd9Sstevel@tonic-gate /* 227c478bd9Sstevel@tonic-gate * Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T 237c478bd9Sstevel@tonic-gate * All Rights Reserved 247c478bd9Sstevel@tonic-gate * 257c478bd9Sstevel@tonic-gate */ 267c478bd9Sstevel@tonic-gate 277c478bd9Sstevel@tonic-gate /* 28*f48205beScasper * Copyright 2007 Sun Microsystems, Inc. All rights reserved. 297c478bd9Sstevel@tonic-gate * Use is subject to license terms. 307c478bd9Sstevel@tonic-gate */ 317c478bd9Sstevel@tonic-gate 327c478bd9Sstevel@tonic-gate /* 337c478bd9Sstevel@tonic-gate * WARNING: This is an implementation-specific header, 347c478bd9Sstevel@tonic-gate * its contents are not guaranteed. Applications 357c478bd9Sstevel@tonic-gate * should include <unistd.h> and not this header. 367c478bd9Sstevel@tonic-gate */ 377c478bd9Sstevel@tonic-gate 387c478bd9Sstevel@tonic-gate #ifndef _SYS_UNISTD_H 397c478bd9Sstevel@tonic-gate #define _SYS_UNISTD_H 407c478bd9Sstevel@tonic-gate 417c478bd9Sstevel@tonic-gate #pragma ident "%Z%%M% %I% %E% SMI" /* From SVR4.0 1.3 */ 427c478bd9Sstevel@tonic-gate 437c478bd9Sstevel@tonic-gate #include <sys/feature_tests.h> 447c478bd9Sstevel@tonic-gate 457c478bd9Sstevel@tonic-gate #ifdef __cplusplus 467c478bd9Sstevel@tonic-gate extern "C" { 477c478bd9Sstevel@tonic-gate #endif 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate /* command names for confstr */ 507c478bd9Sstevel@tonic-gate 517c478bd9Sstevel@tonic-gate #define _CS_PATH 65 527c478bd9Sstevel@tonic-gate 537c478bd9Sstevel@tonic-gate /* 547c478bd9Sstevel@tonic-gate * command names for large file configuration information 557c478bd9Sstevel@tonic-gate */ 567c478bd9Sstevel@tonic-gate /* large file compilation environment configuration */ 577c478bd9Sstevel@tonic-gate #define _CS_LFS_CFLAGS 68 587c478bd9Sstevel@tonic-gate #define _CS_LFS_LDFLAGS 69 597c478bd9Sstevel@tonic-gate #define _CS_LFS_LIBS 70 607c478bd9Sstevel@tonic-gate #define _CS_LFS_LINTFLAGS 71 617c478bd9Sstevel@tonic-gate /* transitional large file interface configuration */ 627c478bd9Sstevel@tonic-gate #define _CS_LFS64_CFLAGS 72 637c478bd9Sstevel@tonic-gate #define _CS_LFS64_LDFLAGS 73 647c478bd9Sstevel@tonic-gate #define _CS_LFS64_LIBS 74 657c478bd9Sstevel@tonic-gate #define _CS_LFS64_LINTFLAGS 75 667c478bd9Sstevel@tonic-gate 677c478bd9Sstevel@tonic-gate /* UNIX 98 */ 687c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFF32_CFLAGS 700 697c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFF32_LDFLAGS 701 707c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFF32_LIBS 702 717c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFF32_LINTFLAGS 703 727c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFFBIG_CFLAGS 705 737c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFFBIG_LDFLAGS 706 747c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFFBIG_LIBS 707 757c478bd9Sstevel@tonic-gate #define _CS_XBS5_ILP32_OFFBIG_LINTFLAGS 708 767c478bd9Sstevel@tonic-gate #define _CS_XBS5_LP64_OFF64_CFLAGS 709 777c478bd9Sstevel@tonic-gate #define _CS_XBS5_LP64_OFF64_LDFLAGS 710 787c478bd9Sstevel@tonic-gate #define _CS_XBS5_LP64_OFF64_LIBS 711 797c478bd9Sstevel@tonic-gate #define _CS_XBS5_LP64_OFF64_LINTFLAGS 712 807c478bd9Sstevel@tonic-gate #define _CS_XBS5_LPBIG_OFFBIG_CFLAGS 713 817c478bd9Sstevel@tonic-gate #define _CS_XBS5_LPBIG_OFFBIG_LDFLAGS 714 827c478bd9Sstevel@tonic-gate #define _CS_XBS5_LPBIG_OFFBIG_LIBS 715 837c478bd9Sstevel@tonic-gate #define _CS_XBS5_LPBIG_OFFBIG_LINTFLAGS 716 847c478bd9Sstevel@tonic-gate 857c478bd9Sstevel@tonic-gate /* UNIX 03 */ 867c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFF32_CFLAGS 800 877c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFF32_LDFLAGS 801 887c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFF32_LIBS 802 897c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFF32_LINTFLAGS 803 907c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFFBIG_CFLAGS 804 917c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFFBIG_LDFLAGS 805 927c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFFBIG_LIBS 806 937c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_ILP32_OFFBIG_LINTFLAGS 807 947c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LP64_OFF64_CFLAGS 808 957c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LP64_OFF64_LDFLAGS 809 967c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LP64_OFF64_LIBS 810 977c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LP64_OFF64_LINTFLAGS 811 987c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LPBIG_OFFBIG_CFLAGS 812 997c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LPBIG_OFFBIG_LDFLAGS 813 1007c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LPBIG_OFFBIG_LIBS 814 1017c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_LPBIG_OFFBIG_LINTFLAGS 815 1027c478bd9Sstevel@tonic-gate #define _CS_POSIX_V6_WIDTH_RESTRICTED_ENVS 816 1037c478bd9Sstevel@tonic-gate 1047c478bd9Sstevel@tonic-gate /* command names for POSIX sysconf */ 1057c478bd9Sstevel@tonic-gate 1067c478bd9Sstevel@tonic-gate /* POSIX.1 names */ 1077c478bd9Sstevel@tonic-gate #define _SC_ARG_MAX 1 1087c478bd9Sstevel@tonic-gate #define _SC_CHILD_MAX 2 1097c478bd9Sstevel@tonic-gate #define _SC_CLK_TCK 3 1107c478bd9Sstevel@tonic-gate #define _SC_NGROUPS_MAX 4 1117c478bd9Sstevel@tonic-gate #define _SC_OPEN_MAX 5 1127c478bd9Sstevel@tonic-gate #define _SC_JOB_CONTROL 6 1137c478bd9Sstevel@tonic-gate #define _SC_SAVED_IDS 7 1147c478bd9Sstevel@tonic-gate #define _SC_VERSION 8 1157c478bd9Sstevel@tonic-gate /* SVR4 names */ 1167c478bd9Sstevel@tonic-gate #define _SC_PASS_MAX 9 1177c478bd9Sstevel@tonic-gate #define _SC_LOGNAME_MAX 10 1187c478bd9Sstevel@tonic-gate #define _SC_PAGESIZE 11 1197c478bd9Sstevel@tonic-gate #define _SC_XOPEN_VERSION 12 1207c478bd9Sstevel@tonic-gate /* 13 reserved for SVr4-ES/MP _SC_NACLS_MAX */ 1217c478bd9Sstevel@tonic-gate #define _SC_NPROCESSORS_CONF 14 1227c478bd9Sstevel@tonic-gate #define _SC_NPROCESSORS_ONLN 15 1237c478bd9Sstevel@tonic-gate #define _SC_STREAM_MAX 16 1247c478bd9Sstevel@tonic-gate #define _SC_TZNAME_MAX 17 1257c478bd9Sstevel@tonic-gate /* POSIX.4 names */ 1267c478bd9Sstevel@tonic-gate #define _SC_AIO_LISTIO_MAX 18 1277c478bd9Sstevel@tonic-gate #define _SC_AIO_MAX 19 1287c478bd9Sstevel@tonic-gate #define _SC_AIO_PRIO_DELTA_MAX 20 1297c478bd9Sstevel@tonic-gate #define _SC_ASYNCHRONOUS_IO 21 1307c478bd9Sstevel@tonic-gate #define _SC_DELAYTIMER_MAX 22 1317c478bd9Sstevel@tonic-gate #define _SC_FSYNC 23 1327c478bd9Sstevel@tonic-gate #define _SC_MAPPED_FILES 24 1337c478bd9Sstevel@tonic-gate #define _SC_MEMLOCK 25 1347c478bd9Sstevel@tonic-gate #define _SC_MEMLOCK_RANGE 26 1357c478bd9Sstevel@tonic-gate #define _SC_MEMORY_PROTECTION 27 1367c478bd9Sstevel@tonic-gate #define _SC_MESSAGE_PASSING 28 1377c478bd9Sstevel@tonic-gate #define _SC_MQ_OPEN_MAX 29 1387c478bd9Sstevel@tonic-gate #define _SC_MQ_PRIO_MAX 30 1397c478bd9Sstevel@tonic-gate #define _SC_PRIORITIZED_IO 31 1407c478bd9Sstevel@tonic-gate #define _SC_PRIORITY_SCHEDULING 32 1417c478bd9Sstevel@tonic-gate #define _SC_REALTIME_SIGNALS 33 1427c478bd9Sstevel@tonic-gate #define _SC_RTSIG_MAX 34 1437c478bd9Sstevel@tonic-gate #define _SC_SEMAPHORES 35 1447c478bd9Sstevel@tonic-gate #define _SC_SEM_NSEMS_MAX 36 1457c478bd9Sstevel@tonic-gate #define _SC_SEM_VALUE_MAX 37 1467c478bd9Sstevel@tonic-gate #define _SC_SHARED_MEMORY_OBJECTS 38 1477c478bd9Sstevel@tonic-gate #define _SC_SIGQUEUE_MAX 39 1487c478bd9Sstevel@tonic-gate #define _SC_SIGRT_MIN 40 1497c478bd9Sstevel@tonic-gate #define _SC_SIGRT_MAX 41 1507c478bd9Sstevel@tonic-gate #define _SC_SYNCHRONIZED_IO 42 1517c478bd9Sstevel@tonic-gate #define _SC_TIMERS 43 1527c478bd9Sstevel@tonic-gate #define _SC_TIMER_MAX 44 1537c478bd9Sstevel@tonic-gate /* XPG4 names */ 1547c478bd9Sstevel@tonic-gate #define _SC_2_C_BIND 45 1557c478bd9Sstevel@tonic-gate #define _SC_2_C_DEV 46 1567c478bd9Sstevel@tonic-gate #define _SC_2_C_VERSION 47 1577c478bd9Sstevel@tonic-gate #define _SC_2_FORT_DEV 48 1587c478bd9Sstevel@tonic-gate #define _SC_2_FORT_RUN 49 1597c478bd9Sstevel@tonic-gate #define _SC_2_LOCALEDEF 50 1607c478bd9Sstevel@tonic-gate #define _SC_2_SW_DEV 51 1617c478bd9Sstevel@tonic-gate #define _SC_2_UPE 52 1627c478bd9Sstevel@tonic-gate #define _SC_2_VERSION 53 1637c478bd9Sstevel@tonic-gate #define _SC_BC_BASE_MAX 54 1647c478bd9Sstevel@tonic-gate #define _SC_BC_DIM_MAX 55 1657c478bd9Sstevel@tonic-gate #define _SC_BC_SCALE_MAX 56 1667c478bd9Sstevel@tonic-gate #define _SC_BC_STRING_MAX 57 1677c478bd9Sstevel@tonic-gate #define _SC_COLL_WEIGHTS_MAX 58 1687c478bd9Sstevel@tonic-gate #define _SC_EXPR_NEST_MAX 59 1697c478bd9Sstevel@tonic-gate #define _SC_LINE_MAX 60 1707c478bd9Sstevel@tonic-gate #define _SC_RE_DUP_MAX 61 1717c478bd9Sstevel@tonic-gate #define _SC_XOPEN_CRYPT 62 1727c478bd9Sstevel@tonic-gate #define _SC_XOPEN_ENH_I18N 63 1737c478bd9Sstevel@tonic-gate #define _SC_XOPEN_SHM 64 1747c478bd9Sstevel@tonic-gate 1757c478bd9Sstevel@tonic-gate /* additional XSH4/XCU4 command names for sysconf */ 1767c478bd9Sstevel@tonic-gate #define _SC_2_CHAR_TERM 66 1777c478bd9Sstevel@tonic-gate #define _SC_XOPEN_XCU_VERSION 67 1787c478bd9Sstevel@tonic-gate 1797c478bd9Sstevel@tonic-gate /* additional XPG4v2 (UNIX 95) command names */ 1807c478bd9Sstevel@tonic-gate #define _SC_ATEXIT_MAX 76 1817c478bd9Sstevel@tonic-gate #define _SC_IOV_MAX 77 1827c478bd9Sstevel@tonic-gate #define _SC_XOPEN_UNIX 78 1837c478bd9Sstevel@tonic-gate #define _SC_PAGE_SIZE _SC_PAGESIZE 1847c478bd9Sstevel@tonic-gate 1857c478bd9Sstevel@tonic-gate /* defined for XTI (XNS Issue 5) */ 1867c478bd9Sstevel@tonic-gate #ifndef _SC_T_IOV_MAX 1877c478bd9Sstevel@tonic-gate #define _SC_T_IOV_MAX 79 /* Must be same in <xti.h> */ 1887c478bd9Sstevel@tonic-gate #endif /* T_IOV_MAX must be <= IOV_MAX */ 1897c478bd9Sstevel@tonic-gate 1907c478bd9Sstevel@tonic-gate #define _SC_PHYS_PAGES 500 1917c478bd9Sstevel@tonic-gate #define _SC_AVPHYS_PAGES 501 1927c478bd9Sstevel@tonic-gate 1937c478bd9Sstevel@tonic-gate /* 1947c478bd9Sstevel@tonic-gate * Hardware specific items 1957c478bd9Sstevel@tonic-gate * Note that not all items are supported on all architectures 1967c478bd9Sstevel@tonic-gate */ 1977c478bd9Sstevel@tonic-gate #define _SC_COHER_BLKSZ 503 /* Coherence block size */ 1987c478bd9Sstevel@tonic-gate #define _SC_SPLIT_CACHE 504 /* != 0 iff a split cache */ 1997c478bd9Sstevel@tonic-gate #define _SC_ICACHE_SZ 505 /* Instruction cache size (bytes) */ 2007c478bd9Sstevel@tonic-gate #define _SC_DCACHE_SZ 506 /* Data cache size (bytes) */ 2017c478bd9Sstevel@tonic-gate #define _SC_ICACHE_LINESZ 507 /* Instruction cache line size */ 2027c478bd9Sstevel@tonic-gate #define _SC_DCACHE_LINESZ 508 /* Data cache line size */ 2037c478bd9Sstevel@tonic-gate #define _SC_ICACHE_BLKSZ 509 /* Block size invalidated for icache */ 2047c478bd9Sstevel@tonic-gate #define _SC_DCACHE_BLKSZ 510 /* Block size for dcache */ 2057c478bd9Sstevel@tonic-gate #define _SC_DCACHE_TBLKSZ 511 /* Block size for dcache prefetch */ 2067c478bd9Sstevel@tonic-gate #define _SC_ICACHE_ASSOC 512 /* Icache associativity 1, 2, 3 etc */ 2077c478bd9Sstevel@tonic-gate #define _SC_DCACHE_ASSOC 513 /* Dcache associativity 1, 2, 3 etc */ 2087c478bd9Sstevel@tonic-gate 2097c478bd9Sstevel@tonic-gate #define _SC_MAXPID 514 /* maximum pid value */ 2107c478bd9Sstevel@tonic-gate #define _SC_STACK_PROT 515 /* default stack protection */ 2117c478bd9Sstevel@tonic-gate #define _SC_NPROCESSORS_MAX 516 /* maximum # of processors */ 2127c478bd9Sstevel@tonic-gate #define _SC_CPUID_MAX 517 /* maximum CPU id */ 213*f48205beScasper #define _SC_EPHID_MAX 518 /* maximum ephemeral id */ 2147c478bd9Sstevel@tonic-gate 2157c478bd9Sstevel@tonic-gate /* 2167c478bd9Sstevel@tonic-gate * POSIX.1c (pthreads) names. These values are defined above 2177c478bd9Sstevel@tonic-gate * the sub-500 range. See psarc case 1995/257. 2187c478bd9Sstevel@tonic-gate */ 2197c478bd9Sstevel@tonic-gate #define _SC_THREAD_DESTRUCTOR_ITERATIONS 568 2207c478bd9Sstevel@tonic-gate #define _SC_GETGR_R_SIZE_MAX 569 2217c478bd9Sstevel@tonic-gate #define _SC_GETPW_R_SIZE_MAX 570 2227c478bd9Sstevel@tonic-gate #define _SC_LOGIN_NAME_MAX 571 2237c478bd9Sstevel@tonic-gate #define _SC_THREAD_KEYS_MAX 572 2247c478bd9Sstevel@tonic-gate #define _SC_THREAD_STACK_MIN 573 2257c478bd9Sstevel@tonic-gate #define _SC_THREAD_THREADS_MAX 574 2267c478bd9Sstevel@tonic-gate #define _SC_TTY_NAME_MAX 575 2277c478bd9Sstevel@tonic-gate #define _SC_THREADS 576 2287c478bd9Sstevel@tonic-gate #define _SC_THREAD_ATTR_STACKADDR 577 2297c478bd9Sstevel@tonic-gate #define _SC_THREAD_ATTR_STACKSIZE 578 2307c478bd9Sstevel@tonic-gate #define _SC_THREAD_PRIORITY_SCHEDULING 579 2317c478bd9Sstevel@tonic-gate #define _SC_THREAD_PRIO_INHERIT 580 2327c478bd9Sstevel@tonic-gate #define _SC_THREAD_PRIO_PROTECT 581 2337c478bd9Sstevel@tonic-gate #define _SC_THREAD_PROCESS_SHARED 582 2347c478bd9Sstevel@tonic-gate #define _SC_THREAD_SAFE_FUNCTIONS 583 2357c478bd9Sstevel@tonic-gate 2367c478bd9Sstevel@tonic-gate /* UNIX 98 */ 2377c478bd9Sstevel@tonic-gate #define _SC_XOPEN_LEGACY 717 2387c478bd9Sstevel@tonic-gate #define _SC_XOPEN_REALTIME 718 2397c478bd9Sstevel@tonic-gate #define _SC_XOPEN_REALTIME_THREADS 719 2407c478bd9Sstevel@tonic-gate #define _SC_XBS5_ILP32_OFF32 720 2417c478bd9Sstevel@tonic-gate #define _SC_XBS5_ILP32_OFFBIG 721 2427c478bd9Sstevel@tonic-gate #define _SC_XBS5_LP64_OFF64 722 2437c478bd9Sstevel@tonic-gate #define _SC_XBS5_LPBIG_OFFBIG 723 2447c478bd9Sstevel@tonic-gate 2457c478bd9Sstevel@tonic-gate /* UNIX 03 */ 2467c478bd9Sstevel@tonic-gate #define _SC_2_PBS 724 2477c478bd9Sstevel@tonic-gate #define _SC_2_PBS_ACCOUNTING 725 2487c478bd9Sstevel@tonic-gate #define _SC_2_PBS_CHECKPOINT 726 2497c478bd9Sstevel@tonic-gate #define _SC_2_PBS_LOCATE 728 2507c478bd9Sstevel@tonic-gate #define _SC_2_PBS_MESSAGE 729 2517c478bd9Sstevel@tonic-gate #define _SC_2_PBS_TRACK 730 2527c478bd9Sstevel@tonic-gate #define _SC_ADVISORY_INFO 731 2537c478bd9Sstevel@tonic-gate #define _SC_BARRIERS 732 2547c478bd9Sstevel@tonic-gate #define _SC_CLOCK_SELECTION 733 2557c478bd9Sstevel@tonic-gate #define _SC_CPUTIME 734 2567c478bd9Sstevel@tonic-gate #define _SC_HOST_NAME_MAX 735 2577c478bd9Sstevel@tonic-gate #define _SC_MONOTONIC_CLOCK 736 2587c478bd9Sstevel@tonic-gate #define _SC_READER_WRITER_LOCKS 737 2597c478bd9Sstevel@tonic-gate #define _SC_REGEXP 738 2607c478bd9Sstevel@tonic-gate #define _SC_SHELL 739 2617c478bd9Sstevel@tonic-gate #define _SC_SPAWN 740 2627c478bd9Sstevel@tonic-gate #define _SC_SPIN_LOCKS 741 2637c478bd9Sstevel@tonic-gate #define _SC_SPORADIC_SERVER 742 2647c478bd9Sstevel@tonic-gate #define _SC_SS_REPL_MAX 743 2657c478bd9Sstevel@tonic-gate #define _SC_SYMLOOP_MAX 744 2667c478bd9Sstevel@tonic-gate #define _SC_THREAD_CPUTIME 745 2677c478bd9Sstevel@tonic-gate #define _SC_THREAD_SPORADIC_SERVER 746 2687c478bd9Sstevel@tonic-gate #define _SC_TIMEOUTS 747 2697c478bd9Sstevel@tonic-gate #define _SC_TRACE 748 2707c478bd9Sstevel@tonic-gate #define _SC_TRACE_EVENT_FILTER 749 2717c478bd9Sstevel@tonic-gate #define _SC_TRACE_EVENT_NAME_MAX 750 2727c478bd9Sstevel@tonic-gate #define _SC_TRACE_INHERIT 751 2737c478bd9Sstevel@tonic-gate #define _SC_TRACE_LOG 752 2747c478bd9Sstevel@tonic-gate #define _SC_TRACE_NAME_MAX 753 2757c478bd9Sstevel@tonic-gate #define _SC_TRACE_SYS_MAX 754 2767c478bd9Sstevel@tonic-gate #define _SC_TRACE_USER_EVENT_MAX 755 2777c478bd9Sstevel@tonic-gate #define _SC_TYPED_MEMORY_OBJECTS 756 2787c478bd9Sstevel@tonic-gate #define _SC_V6_ILP32_OFF32 757 2797c478bd9Sstevel@tonic-gate #define _SC_V6_ILP32_OFFBIG 758 2807c478bd9Sstevel@tonic-gate #define _SC_V6_LP64_OFF64 759 2817c478bd9Sstevel@tonic-gate #define _SC_V6_LPBIG_OFFBIG 760 2827c478bd9Sstevel@tonic-gate #define _SC_XOPEN_STREAMS 761 2837c478bd9Sstevel@tonic-gate #define _SC_IPV6 762 2847c478bd9Sstevel@tonic-gate #define _SC_RAW_SOCKETS 763 2857c478bd9Sstevel@tonic-gate 2867c478bd9Sstevel@tonic-gate /* command names for POSIX pathconf */ 2877c478bd9Sstevel@tonic-gate 2887c478bd9Sstevel@tonic-gate /* POSIX.1 names */ 2897c478bd9Sstevel@tonic-gate #define _PC_LINK_MAX 1 2907c478bd9Sstevel@tonic-gate #define _PC_MAX_CANON 2 2917c478bd9Sstevel@tonic-gate #define _PC_MAX_INPUT 3 2927c478bd9Sstevel@tonic-gate #define _PC_NAME_MAX 4 2937c478bd9Sstevel@tonic-gate #define _PC_PATH_MAX 5 2947c478bd9Sstevel@tonic-gate #define _PC_PIPE_BUF 6 2957c478bd9Sstevel@tonic-gate #define _PC_NO_TRUNC 7 2967c478bd9Sstevel@tonic-gate #define _PC_VDISABLE 8 2977c478bd9Sstevel@tonic-gate #define _PC_CHOWN_RESTRICTED 9 2987c478bd9Sstevel@tonic-gate /* POSIX.4 names */ 2997c478bd9Sstevel@tonic-gate #define _PC_ASYNC_IO 10 3007c478bd9Sstevel@tonic-gate #define _PC_PRIO_IO 11 3017c478bd9Sstevel@tonic-gate #define _PC_SYNC_IO 12 3027c478bd9Sstevel@tonic-gate /* UNIX 03 names */ 3037c478bd9Sstevel@tonic-gate #define _PC_ALLOC_SIZE_MIN 13 3047c478bd9Sstevel@tonic-gate #define _PC_REC_INCR_XFER_SIZE 14 3057c478bd9Sstevel@tonic-gate #define _PC_REC_MAX_XFER_SIZE 15 3067c478bd9Sstevel@tonic-gate #define _PC_REC_MIN_XFER_SIZE 16 3077c478bd9Sstevel@tonic-gate #define _PC_REC_XFER_ALIGN 17 3087c478bd9Sstevel@tonic-gate #define _PC_SYMLINK_MAX 18 3097c478bd9Sstevel@tonic-gate #define _PC_2_SYMLINKS 19 3107c478bd9Sstevel@tonic-gate #define _PC_ACL_ENABLED 20 3117c478bd9Sstevel@tonic-gate #define _PC_MIN_HOLE_SIZE 21 3127c478bd9Sstevel@tonic-gate /* 3137c478bd9Sstevel@tonic-gate * Large File Summit names 3147c478bd9Sstevel@tonic-gate * 3157c478bd9Sstevel@tonic-gate * This value matches the MIPS ABI choice, but leaves a large gap in the 3167c478bd9Sstevel@tonic-gate * value space. 3177c478bd9Sstevel@tonic-gate */ 3187c478bd9Sstevel@tonic-gate #define _PC_FILESIZEBITS 67 3197c478bd9Sstevel@tonic-gate #define _PC_LAST 67 3207c478bd9Sstevel@tonic-gate 3217c478bd9Sstevel@tonic-gate /* 3227c478bd9Sstevel@tonic-gate * Extended attributes 3237c478bd9Sstevel@tonic-gate */ 3247c478bd9Sstevel@tonic-gate #define _PC_XATTR_ENABLED 100 3257c478bd9Sstevel@tonic-gate #define _PC_XATTR_EXISTS 101 3267c478bd9Sstevel@tonic-gate 3277c478bd9Sstevel@tonic-gate /* 3287c478bd9Sstevel@tonic-gate * The value of 0 is returned when 3297c478bd9Sstevel@tonic-gate * ACL's are not supported 3307c478bd9Sstevel@tonic-gate */ 3317c478bd9Sstevel@tonic-gate #define _ACL_ACLENT_ENABLED 0x1 3327c478bd9Sstevel@tonic-gate #define _ACL_ACE_ENABLED 0x2 3337c478bd9Sstevel@tonic-gate 3347c478bd9Sstevel@tonic-gate #ifndef _POSIX_VERSION 3357c478bd9Sstevel@tonic-gate #ifdef _XPG6 3367c478bd9Sstevel@tonic-gate #define _POSIX_VERSION 200112L /* Supports IEEE Std 1003.1-2001 */ 3377c478bd9Sstevel@tonic-gate #else 3387c478bd9Sstevel@tonic-gate #define _POSIX_VERSION 199506L /* Supports POSIX-1c DIS */ 3397c478bd9Sstevel@tonic-gate #endif 3407c478bd9Sstevel@tonic-gate #endif /* _POSIX_VERSION */ 3417c478bd9Sstevel@tonic-gate 3427c478bd9Sstevel@tonic-gate #ifndef _POSIX2_VERSION 3437c478bd9Sstevel@tonic-gate #ifdef _XPG6 3447c478bd9Sstevel@tonic-gate #define _POSIX2_VERSION 200112L /* Supports IEEE Std 1003.1-2001 */ 3457c478bd9Sstevel@tonic-gate #else 3467c478bd9Sstevel@tonic-gate #define _POSIX2_VERSION 199209L /* Supports ISO POSIX-2 DIS */ 3477c478bd9Sstevel@tonic-gate #endif 3487c478bd9Sstevel@tonic-gate #endif /* _POSIX2_VERSION */ 3497c478bd9Sstevel@tonic-gate 3507c478bd9Sstevel@tonic-gate /* 3517c478bd9Sstevel@tonic-gate * Marked LEGACY in SUSv2 and removed in SUSv3. Though SUSv3 applications 3527c478bd9Sstevel@tonic-gate * should not rely on this value, it has been aligned with the current 3537c478bd9Sstevel@tonic-gate * standard to avoid confusion if used. 3547c478bd9Sstevel@tonic-gate */ 3557c478bd9Sstevel@tonic-gate #ifndef _POSIX2_C_VERSION 3567c478bd9Sstevel@tonic-gate #ifdef _XPG6 3577c478bd9Sstevel@tonic-gate #define _POSIX2_C_VERSION 200112L /* Supports IEEE Std 1003.1-2001 */ 3587c478bd9Sstevel@tonic-gate #else 3597c478bd9Sstevel@tonic-gate #define _POSIX2_C_VERSION 199209L /* Supports ISO POSIX-2 DIS */ 3607c478bd9Sstevel@tonic-gate #endif 3617c478bd9Sstevel@tonic-gate #endif /* _POSIX2_C_VERSION */ 3627c478bd9Sstevel@tonic-gate 3637c478bd9Sstevel@tonic-gate #define _XOPEN_XPG3 /* Supports XPG, Issue 3 */ 3647c478bd9Sstevel@tonic-gate #define _XOPEN_XPG4 /* Supports XPG, Issue 4 */ 3657c478bd9Sstevel@tonic-gate #define _XOPEN_UNIX /* Supports XPG, Issue 4, Version 2 */ 3667c478bd9Sstevel@tonic-gate 3677c478bd9Sstevel@tonic-gate #ifndef _XOPEN_XCU_VERSION 3687c478bd9Sstevel@tonic-gate #define _XOPEN_XCU_VERSION 4 /* Supports XCU4 */ 3697c478bd9Sstevel@tonic-gate #endif 3707c478bd9Sstevel@tonic-gate 3717c478bd9Sstevel@tonic-gate #define _XOPEN_REALTIME 1 /* Supports Realtime */ 3727c478bd9Sstevel@tonic-gate #define _XOPEN_ENH_I18N 1 /* Supports Enhanced International */ 3737c478bd9Sstevel@tonic-gate #define _XOPEN_SHM 1 /* Supports Shared Memory Feature */ 3747c478bd9Sstevel@tonic-gate #define _POSIX2_C_BIND 200112L /* Supports C Language Bindings */ 3757c478bd9Sstevel@tonic-gate #define _POSIX2_C_DEV 1 /* Supports C language dev utility */ 3767c478bd9Sstevel@tonic-gate #define _POSIX2_CHAR_TERM 1 /* Supports at least 1 terminal type */ 3777c478bd9Sstevel@tonic-gate #define _POSIX2_FORT_RUN 200112L /* Supports FORTRAN runtime */ 3787c478bd9Sstevel@tonic-gate #define _POSIX2_LOCALEDEF 1 /* Supports creation of locales */ 3797c478bd9Sstevel@tonic-gate #define _POSIX2_SW_DEV 1 /* Supports S/W Devlopement Utility */ 3807c478bd9Sstevel@tonic-gate #define _POSIX2_UPE 1 /* Supports User Portability Utility */ 3817c478bd9Sstevel@tonic-gate 3827c478bd9Sstevel@tonic-gate /* UNIX 03 names */ 3837c478bd9Sstevel@tonic-gate #define _POSIX_REGEXP 1 /* Supports POSIX Regular Expressions */ 3847c478bd9Sstevel@tonic-gate #define _POSIX_SHELL 1 /* Supports POSIX shell */ 3857c478bd9Sstevel@tonic-gate #define _XOPEN_STREAMS 1 /* Supports XSI Streams Option Group */ 3867c478bd9Sstevel@tonic-gate 3877c478bd9Sstevel@tonic-gate #ifdef __cplusplus 3887c478bd9Sstevel@tonic-gate } 3897c478bd9Sstevel@tonic-gate #endif 3907c478bd9Sstevel@tonic-gate 3917c478bd9Sstevel@tonic-gate #endif /* _SYS_UNISTD_H */ 392