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