diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2000-10-24 18:27:54 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2000-10-24 18:27:54 +0000 |
commit | ba9e88d24ca3988e7c73d330a924fc184fde5e0e (patch) | |
tree | 667d7a525a24bdbd6481e50f107e82944d34486c | |
parent | 90bb77ddcb94446768b3a6d5be35bad3f63c69df (diff) | |
download | newlib-ba9e88d24ca3988e7c73d330a924fc184fde5e0e.zip newlib-ba9e88d24ca3988e7c73d330a924fc184fde5e0e.tar.gz newlib-ba9e88d24ca3988e7c73d330a924fc184fde5e0e.tar.bz2 |
* libc/include/sys/unistd.h: Add defines for sysconf values
_SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and
_SC_AVPHYS_PAGES.
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/libc/include/sys/unistd.h | 48 |
2 files changed, 32 insertions, 22 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index c50e990..5b3807a 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +Tue Oct 24 20:16:00 2000 Corinna Vinschen <vinschen@cygnus.com> + + * libc/include/sys/unistd.h: Add defines for sysconf values + _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLN, _SC_PHYS_PAGES and + _SC_AVPHYS_PAGES. + Mon Oct 9 20:26:33 2000 Christopher Faylor <cgf@cygnus.com> * libc/include/sys/unistd.h: Add getdtablesize and setdtablesize diff --git a/newlib/libc/include/sys/unistd.h b/newlib/libc/include/sys/unistd.h index 928aa89..87cf610 100644 --- a/newlib/libc/include/sys/unistd.h +++ b/newlib/libc/include/sys/unistd.h @@ -148,29 +148,33 @@ int _EXFUN(symlink, (const char *__name1, const char *__name2)); long _EXFUN(sysconf, (int __name)); -# define _SC_ARG_MAX 0 -# define _SC_CHILD_MAX 1 -# define _SC_CLK_TCK 2 -# define _SC_NGROUPS_MAX 3 -# define _SC_OPEN_MAX 4 +# define _SC_ARG_MAX 0 +# define _SC_CHILD_MAX 1 +# define _SC_CLK_TCK 2 +# define _SC_NGROUPS_MAX 3 +# define _SC_OPEN_MAX 4 /* no _SC_STREAM_MAX */ -# define _SC_JOB_CONTROL 5 -# define _SC_SAVED_IDS 6 -# define _SC_VERSION 7 -# define _SC_PAGESIZE 8 - -# define _PC_LINK_MAX 0 -# define _PC_MAX_CANON 1 -# define _PC_MAX_INPUT 2 -# define _PC_NAME_MAX 3 -# define _PC_PATH_MAX 4 -# define _PC_PIPE_BUF 5 -# define _PC_CHOWN_RESTRICTED 6 -# define _PC_NO_TRUNC 7 -# define _PC_VDISABLE 8 -# define _PC_ASYNC_IO 9 -# define _PC_PRIO_IO 10 -# define _PC_SYNC_IO 11 +# define _SC_JOB_CONTROL 5 +# define _SC_SAVED_IDS 6 +# define _SC_VERSION 7 +# define _SC_PAGESIZE 8 +# define _SC_NPROCESSORS_CONF 9 +# define _SC_NPROCESSORS_ONLN 10 +# define _SC_PHYS_PAGES 11 +# define _SC_AVPHYS_PAGES 12 + +# define _PC_LINK_MAX 0 +# define _PC_MAX_CANON 1 +# define _PC_MAX_INPUT 2 +# define _PC_NAME_MAX 3 +# define _PC_PATH_MAX 4 +# define _PC_PIPE_BUF 5 +# define _PC_CHOWN_RESTRICTED 6 +# define _PC_NO_TRUNC 7 +# define _PC_VDISABLE 8 +# define _PC_ASYNC_IO 9 +# define _PC_PRIO_IO 10 +# define _PC_SYNC_IO 11 # ifndef _POSIX_SOURCE # define MAXNAMLEN 1024 |