| Skip Navigation Links | |
| Exit Print View | |
![]() | man pages section 3: Basic Library Functions Oracle Solaris 11 Information Library |
enable_extended_FILE_stdio(3C)
posix_spawnattr_getschedparam(3C)
posix_spawnattr_getschedpolicy(3C)
posix_spawnattr_getsigdefault(3C)
posix_spawnattr_getsigignore_np(3C)
posix_spawnattr_getsigmask(3C)
posix_spawnattr_setschedparam(3C)
posix_spawnattr_setschedpolicy(3C)
posix_spawnattr_setsigdefault(3C)
posix_spawnattr_setsigignore_np(3C)
posix_spawnattr_setsigmask(3C)
posix_spawn_file_actions_addclose(3C)
posix_spawn_file_actions_addclosefrom_np(3C)
posix_spawn_file_actions_adddup2(3C)
posix_spawn_file_actions_addopen(3C)
posix_spawn_file_actions_destroy(3C)
posix_spawn_file_actions_init(3C)
pthread_attr_getdetachstate(3C)
pthread_attr_getinheritsched(3C)
pthread_attr_getschedparam(3C)
pthread_attr_getschedpolicy(3C)
pthread_attr_setdetachstate(3C)
pthread_attr_setinheritsched(3C)
pthread_attr_setschedparam(3C)
pthread_attr_setschedpolicy(3C)
pthread_barrierattr_destroy(3C)
pthread_barrierattr_getpshared(3C)
pthread_barrierattr_setpshared(3C)
pthread_condattr_getpshared(3C)
pthread_condattr_setpshared(3C)
pthread_cond_reltimedwait_np(3C)
pthread_key_create_once_np(3C)
pthread_mutexattr_getprioceiling(3C)
pthread_mutexattr_getprotocol(3C)
pthread_mutexattr_getpshared(3C)
pthread_mutexattr_getrobust(3C)
pthread_mutexattr_setprioceiling(3C)
pthread_mutexattr_setprotocol(3C)
pthread_mutexattr_setpshared(3C)
pthread_mutexattr_setrobust(3C)
pthread_mutex_getprioceiling(3C)
pthread_mutex_reltimedlock_np(3C)
pthread_mutex_setprioceiling(3C)
pthread_rwlockattr_destroy(3C)
pthread_rwlockattr_getpshared(3C)
pthread_rwlockattr_setpshared(3C)
pthread_rwlock_reltimedrdlock_np(3C)
pthread_rwlock_reltimedwrlock_np(3C)
pthread_rwlock_timedrdlock(3C)
pthread_rwlock_timedwrlock(3C)
rctlblk_get_enforced_value(3C)
- get configurable variables
#include <unistd.h>size_tconfstr(intname,char *buf,size_tlen);
Theconfstr() function provides a method for applications to get configuration-defined string values. Its use and purpose are similar to thesysconf(3C) function, butit is used where string values rather than numeric values are returned.
Thename argument represents the system variable to be queried.
Iflen is not0, and ifname has a configuration-defined value,confstr() copies that value into thelen-byte buffer pointed to bybuf. If the string to be returned is longer thanlen bytes, includingthe terminating null, thenconfstr() truncates the string tolen-1 bytesand null-terminates the result. The application can detect that the string wastruncated by comparing the value returned byconfstr() withlen.
Iflen is0,confstr() still returns the integer value as definedbelow, but does not return the string.
Theconfstr() function supports the following values forname, defined in<unistd.h>,for both SPARC and x86:
If_LFS64_LARGEFILE is defined in<unistd.h>, this value is the set of initial options to be given to thecc andc89 utilities to build an application using the Large File Summit transitional compilation environment (seelfcompile64(5)).
If_LFS64_LARGEFILE is defined in<unistd.h>, this value is the set of final options to be given to thecc andc89 utilities to build an application using the Large File Summit transitional compilation environment (seelfcompile64(5)).
If_LFS64_LARGEFILE is defined in<unistd.h>, this value is the set of libraries to be given to thecc andc89 utilities to build an application using the Large File Summit transitional compilation environment (seelfcompile64(5)).
If_LFS64_LARGEFILE is defined in<unistd.h>, this value is the set of options to be given to thelint utility to check application source using the Large File Summit transitional compilation environment (seelfcompile64(5)).
If_LFS_LARGEFILE is defined in<unistd.h>, this value is the set of initial options to be given to thecc andc89 utilities to build an application using the Large File Summit large file compilation environment for 32-bit applications (seelfcompile(5)).
If_LFS_LARGEFILE is defined in<unistd.h>, this value is the set of final options to be given to thecc andc89 utilities to build an application using the Large File Summit large file compilation environment for 32-bit applications (seelfcompile(5)).
If_LFS_LARGEFILE is defined in<unistd.h>, this value is the set of libraries to be given to thecc andc89 utilities to build an application using the Large File Summit large file compilation environment for 32-bit applications (seelfcompile(5)).
If_LFS_LARGEFILE is defined in<unistd.h>, this value is the set of options to be given to thelint utility to check application source using the Large File Summit large file compilation environment for 32-bit applications (seelfcompile(5)).
If the ISO POSIX.2 standard is supported, this is the value for thePATH environment variable that finds all standard utilities. Otherwise the meaning of this value is unspecified.
Ifsysconf(_SC_V6_ILP32_OFF32) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of initial options to be given to thec99 utility to build an application using a programming model with 32-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_V6_ILP32_OFF32) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of final options to be given to thec99 utility to build an application using a programming model with 32-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_V6_ILP32_OFF32) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of libraries to be given to thec99 utility to build an application using a programming model with 32-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_V6_ILP32_OFFBIG) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of initial options to be given to thec99 utility to build an application using a programming model with 32-bitint,long, andpointer types, and anoff_t type using at least 64 bits.
Ifsysconf(_SC_V6_ILP32_OFFBIG) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of final options to be given to thec99 utility to build an application using a programming model with 32-bitint,long, andpointer types, and anoff_t type using at least 64 bits.
Ifsysconf(_SC_V6_ILP32_OFFBIG) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of libraries to be given to thec99 utility to build an application using a programming model with 32-bitint,long, andpointer types, and anoff_t type using at least 64 bits.
Ifsysconf(_SC_V6_LP64_OFF64) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of initial options to be given to thec99 utility to build an application using a programming model with 64-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_V6_LP64_OFF64) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of final options to be given to thec99 utility to build an application using a programming model with 64-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_V6_LP64_OFF64) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of libraries to be given to thec99 utility to build an application using a programming model with 64-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_V6_LPBIG_OFFBIG) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of initial options to be given to thec99 utility to build an application using a programming model with anint type using at least 32 bits andlong,pointer, andoff_t types using at least 64 bits.
Ifsysconf(_SC_V6_LPBIG_OFFBIG) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of final options to be given to thec99 utility to build an application using a programming model with anint type using at least 32 bits andlong,pointer, andoff_t types using at least 64 bits.
Ifsysconf(_SC_V6_LPBIG_OFFBIG) returns -1, the meaning of this value is unspecified. Otherwise, this value is the set of libraries to be given to thec99 utility to build an application using a programming model with anint type using at least 32 bits andlong,pointer, andoff_t types using at least 64 bits.
This value is a <newline>-separated list of names of programming environments supported by the implementation in which the widths of theblksize_t,cc_t,mode_t,nfds_t,pid_t,ptrdiff_t,size_t,speed_t,ssize_t,suseconds_t,tcflag_t,useconds_t,wchar_t, andwint_t types are no greater than the width of typelong.
Ifsysconf(_SC_XBS5_ILP32_OFF32) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of initial options to be given to thecc andc89 utilities to build an application using a programming model with 32-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_XBS5_ILP32_OFF32) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of final options to be given to thecc andc89 utilities to build an application using a programming model with 32-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_XBS5_ILP32_OFF32) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of libraries to be given to thecc andc89 utilities to build an application using a programming model with 32-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_XBS5_ILP32_OFF32) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of options to be given to thelint utility to check application source using a programming model with 32-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_XBS5_ILP32_OFFBIG) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of initial options to be given to thecc andc89 utilities to build an application using a programming model with 32-bitint,long, andpointer types, and anoff_t type using at least 64 bits.
Ifsysconf(SC_XBS5_ILP32_OFFBIG) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of final options to be given to thecc andc89 utilities to build an application using a programming model with 32-bitint,long, andpointer types, and anoff_t type using at least 64 bits.
Ifsysconf(_SC_XBS5_ILP32_OFFBIG) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of libraries to be given to thecc andc89 utilities to build an application using a programming model with 32-bitint,long, andpointer types, and anoff_t type using at least 64 bits.
Ifsysconf(_SC_XBS5_ILP32_OFFBIG) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of options to be given to thelint utility to check an application using a programming model with 32-bitint,long, andpointer types, and anoff_t type using at least 64 bits.
Theconfstr() function supports the following values forname, defined in<unistd.h>,for SPARC only:
Ifsysconf(_SC_XBS5_LP64_OFF64) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of initial options to be given to thecc andc89 utilities to build an application using a programming model with 64-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_XBS5_LP64_OFF64) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of final options to be given to thecc andc89 utilities to build an application using a programming model with 64-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_XBS5_LP64_OFF64) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of libraries to be given to thecc andc89 utilities to build an application using a programming model with 64-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_XBS5_LP64_OFF64) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of options to be given to thelint utility to check application source using a programming model with 64-bitint,long,pointer, andoff_t types.
Ifsysconf(_SC_XBS5_LPBIG_OFFBIG) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of initial options to be given to thecc andc89 utilities to build an application using a programming model with anint type using at least 32 bits andlong,pointer, andoff_t types using at least 64 bits.
Ifsysconf(_SC_XBS5_LPBIG_OFFBIG) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of final options to be given to thecc andc89 utilities to build an application using a programming model with anint type using at least 32 bits andlong,pointer, andoff_t types using at least 64 bits.
Ifsysconf(_SC_XBS5_LPBIG_OFFBIG) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of libraries to be given to thecc andc89 utilities to build an application using a programming model with anint type using at least 32 bits andlong,pointer, andoff_t types using at least 64 bits.
Ifsysconf(_SC_XBS5_LPBIG_OFFBIG) returns -1 the meaning of this value is unspecified. Otherwise, this value is the set of options to be given to thelint utility to check application source using a programming model with anint type using at least 32 bits andlong,pointer, andoff_t types using at least 64 bits.
Ifname has a configuration-defined value, theconfstr() function returns the sizeof buffer that would be needed to hold the entire configuration-defined value. If this return value is greater thanlen, the string returnedinbuf is truncated.
Ifname is invalid,confstr() returns0 and setserrno toindicate the error.
Ifname does not have a configuration-defined value,confstr() returns0and leaveserrno unchanged.
Theconfstr() function will fail if:
The value of thename argument is invalid.
Seeattributes(5) for descriptions of the following attributes:
|
pathconf(2),sysconf(3C),attributes(5),lfcompile(5),lfcompile64(5),standards(5)
Copyright © 2011, Oracle and/or its affiliates. All rights reserved.Legal Notices | ![]() ![]() |