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