Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

sysconf(3) [ultrix man page]

sysconf(3)						     Library Functions Manual							sysconf(3)

Name
       sysconf - get configurable system variables (POSIX)

Syntax
       #include <unistd.h>

       long sysconf(name)
       int name;

Description
       The function provides a method for the application to determine the current value of a configurable system limit or option.

       The name argument represents the system variable to be queried. The following table lists the system variables which may be queried and the
       corresponding value for the name argument. The values for the name argument are defined in the <unistd.h> header file.
       Variable 		    name Value

       ARG_MAX			    _SC_ARG_MAX
       CHILD_MAX		    _SC_CHILD_MAX
       CLK_TCK			    _SC_CLK_TCK
       NGROUPS_MAX		    _SC_NGROUPS_MAX
       OPEN_MAX 		    _SC_OPEN_MAX
       PASS_MAX 		    _SC_PASS_MAX
       _POSIX_JOB_CONTROL	    _SC_JOB_CONTROL
       _POSIX_SAVED_IDS 	    _SC_SAVED_IDS
       _POSIX_VERSION		    _SC_VERSION
       _XOPEN_VERSION		    _SC_XOPEN_VERSION

Return Values
       Upon successful completion, the function returns the current variable value on the system.

       If name is an invalid value, returns -1 and errno is set to indicate the reason. If the variable corresponding to name is  not  defined	on
       the system, returns -1 without changing the value of errno.

Diagnostics
       The function fails if the following occurs:

       [EINVAL]       The value of the name argument is invalid.

																	sysconf(3)

Check Out this Related Man Page

pathconf(3)						     Library Functions Manual						       pathconf(3)

Name
       pathconf, fpathconf - get configurable pathname variables (POSIX)

Syntax
       #include <unistd.h>

       long pathconf(path, name)
       char *path;
       int name;

       long fpathconf(fildes, name)
       int fildes, name;

Description
       The  and functions provide a method for the application to determine the current value of a configurable limit or option that is associated
       with a file or directory.

       For the path argument points to the pathname of a file or directory. For the fildes argument is an open file descriptor.

       The name argument represents the variable to be queried relative to that file or directory. The following table lists the  variables  which
       may  be	queried  and  the corresponding value for the name argument. The values for the name argument are defined in the <unistd.h> header
       file.
       Variable 		   name Value

       LINK_MAX 		   _PC_LINK_MAX
       MAX_CANON		   _PC_MAX_CANON
       MAX_INPUT		   _PC_MAX_INPUT
       NAME_MAX 		   _PC_NAME_MAX
       PATH_MAX 		   _PC_PATH_MAX
       PIPE_BUF 		   _PC_PIPE_BUF
       _POSIX_CHOWN_RESTRICTED	   _PC_CHOWN_RESTRICTED
       _POSIX_NO_TRUNC		   _PC_NO_TRUNC
       _POSIX_VDISABLE		   _PC_VDISABLE

Return Values
       Upon successful completion, the and functions return the current variable value for the file or directory.

       If name is an invalid value, and return -1 and errno is set to indicate the reason. If the variable corresponding to name is not defined on
       the system, and return -1 without changing the value of errno.

Diagnostics
       The and functions fail if the following occurs:

       [EINVAL]       The value of the name argument is invalid.

See Also
       <unistd.h>

																       pathconf(3)
Man Page

8 More Discussions You Might Find Interesting

1. SuSE

/etc/sysconfig/network/if-up.d Help

Hello all, the scripts in this directory are executed after all interfaces are UP? Can I create a script like this in this directory? #!/bin/bash route del -net xx.xx.xx.xx netmask xx.xx.xx.xx gw xx.xx.xx.xx. dev ethx I'm using SUSE. thanks for the help (0 Replies)
Discussion started by: pmpx
0 Replies

2. AIX

Do I need /etc/sysconfig/rawdevices on AIX

When install Oracle 10, for linux, I need input entries in /etc/sysconfig/rawdevices . However, for AIX, do I need input somthing in /etc/sysconfig/rawdevices ? (1 Reply)
Discussion started by: rainbow_bean
1 Replies

3. Programming

Huge difference between _POSIX_OPEN_MAX and sysconf(_SC_OPEN_MAX).

On my Linux system there seems to be a massive difference between the value of _POSIX_OPEN_MAX and what sysconf(_SC_OPEN_MAX) returns and also what I'd expect from the table of examples of configuration limits from Advanced Programming In The UNIX Environment, 2nd Ed. _POSIX_OPEN_MAX: 16... (5 Replies)
Discussion started by: gencon
5 Replies

4. Solaris

Advanced Sysconfig use when building non-global zones in Solaris 11

I'm in an LDOM. I'm building non-global IP exclusive zones. I am using manifests and profiles to configure the system after install so I don't have to tab through the sysconfig startup dialog everytime I boot a system the first time for settings that never change (DNS, regional data, NTP etc). I... (0 Replies)
Discussion started by: os2mac
0 Replies

5. UNIX for Dummies Questions & Answers

Shc script size limitation and "_SC_ARG_MAX (see sysconf(2))" parameter

I wish to change the parameter (which I do not understand exactly what it is and I wish to) and be able to use shc with very long bash scripts (2 Replies)
Discussion started by: frad
2 Replies

6. Red Hat

Create an unconfigured VMware host from a template that is set to do firstboot --reconfig

I have an Oracle Linux 7.1 vsphere host built. It's be preconfigured with our security configurations. What I would like to do is unconfigure this host. Then set the host to do firstboot --reconfigure. how do I do that using /etc/sysconfig/firstboot? I've tried setting ... (10 Replies)
Discussion started by: os2mac
10 Replies

7. Solaris

Sysconfig setup window keeps showing after reboot

so here's teh deal: Solaris 11.3 zone created from a template created by configuring a zone, running sysconfig unconfigure on it and then saved by a zfs send and receive. create the new zoneconfig, import the template FS using zfs recieve. Now everytime we reboot the new zone it makes us do... (0 Replies)
Discussion started by: os2mac
0 Replies

8. Solaris

Solaris 11 sysconfig and zones weirdness

when I create a new zone either via zfs export template or installing the OS from the .iso I get a weird problem. once I create the zone and login for the first time to the console I get the sysconfig menu. I do the config setup and exit the zone boots normally. The next time I reboot, I have to do... (0 Replies)
Discussion started by: os2mac
0 Replies