diff options
Diffstat (limited to 'sysdeps/stub')
-rw-r--r-- | sysdeps/stub/closedir.c | 9 | ||||
-rw-r--r-- | sysdeps/stub/getrlimit.c | 8 | ||||
-rw-r--r-- | sysdeps/stub/opendir.c | 9 | ||||
-rw-r--r-- | sysdeps/stub/readdir.c | 9 | ||||
-rw-r--r-- | sysdeps/stub/sysconf.c | 17 |
5 files changed, 32 insertions, 20 deletions
diff --git a/sysdeps/stub/closedir.c b/sysdeps/stub/closedir.c index fbc1ebe..5fb2ed3 100644 --- a/sysdeps/stub/closedir.c +++ b/sysdeps/stub/closedir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -16,7 +16,6 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <ansidecl.h> #include <errno.h> #include <stddef.h> #include <dirent.h> @@ -25,11 +24,11 @@ Cambridge, MA 02139, USA. */ /* Close the directory stream DIRP. Return 0 if successful, -1 if not. */ int -DEFUN(closedir, (dirp), DIR *dirp) +__closedir (DIR *dirp) { errno = ENOSYS; - return(-1); + return -1; } - +weak_alias (__closedir, closedir) stub_warning (closedir) diff --git a/sysdeps/stub/getrlimit.c b/sysdeps/stub/getrlimit.c index 8553c5f..a3f3144 100644 --- a/sysdeps/stub/getrlimit.c +++ b/sysdeps/stub/getrlimit.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -16,19 +16,17 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <ansidecl.h> #include <sys/resource.h> #include <errno.h> /* Put the soft and hard limits for RESOURCE in *RLIMITS. Returns 0 if successful, -1 if not (and sets errno). */ int -DEFUN(getrlimit, (resource, rlimits), - enum __rlimit_resource resource AND struct rlimit *rlimits) +__getrlimit (enum __rlimit_resource resource, struct rlimit *rlimits) { errno = ENOSYS; return -1; } - +weak_alias (__getrlimit, getrlimit) stub_warning (getrlimit) diff --git a/sysdeps/stub/opendir.c b/sysdeps/stub/opendir.c index e2124c7..f0d7784 100644 --- a/sysdeps/stub/opendir.c +++ b/sysdeps/stub/opendir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -16,7 +16,6 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <ansidecl.h> #include <errno.h> #include <stddef.h> #include <dirent.h> @@ -24,11 +23,11 @@ Cambridge, MA 02139, USA. */ /* Open a directory stream on NAME. */ DIR * -DEFUN(opendir, (name), CONST char *name) +__opendir (const char *name) { errno = ENOSYS; - return(NULL); + return NULL; } - +weak_alias (__opendir, opendir) stub_warning (opendir) diff --git a/sysdeps/stub/readdir.c b/sysdeps/stub/readdir.c index ad23ac1..d210906 100644 --- a/sysdeps/stub/readdir.c +++ b/sysdeps/stub/readdir.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1991, 1995 Free Software Foundation, Inc. +/* Copyright (C) 1991, 1995, 1996 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -16,18 +16,17 @@ License along with the GNU C Library; see the file COPYING.LIB. If not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <ansidecl.h> #include <errno.h> #include <stddef.h> #include <dirent.h> /* Read a directory entry from DIRP. */ struct dirent * -DEFUN(readdir, (dirp), DIR *dirp) +__readdir (DIR *dirp) { errno = ENOSYS; - return(NULL); + return NULL; } - +weak_alias (__readdir, readdir) stub_warning (readdir) diff --git a/sysdeps/stub/sysconf.c b/sysdeps/stub/sysconf.c index f3b0c35..613ef67 100644 --- a/sysdeps/stub/sysconf.c +++ b/sysdeps/stub/sysconf.c @@ -128,6 +128,23 @@ __sysconf (name) case _SC_2_FORT_DEV: case _SC_2_SW_DEV: + case _SC_THREADS: + case _SC_THREAD_SAFE_FUNCTIONS: + case _SC_GETGR_R_SIZE_MAX: + case _SC_GETPW_R_SIZE_MAX: + case _SC_LOGIN_NAME_MAX: + case _SC_TTY_NAME_MAX: + case _SC_THREAD_DESTRUCTOR_ITERATIONS: + case _SC_THREAD_KEYS_MAX: + case _SC_THREAD_STACK_MIN: + case _SC_THREAD_THREADS_MAX: + case _SC_THREAD_ATTR_STACKADDR: + case _SC_THREAD_ATTR_STACKSIZE: + case _SC_THREAD_PRIORITY_SCHEDULING: + case _SC_THREAD_PRIO_INHERIT: + case _SC_THREAD_PRIO_PROTECT: + case _SC_THREAD_PROCESS_SHARED: + break; } |