]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Wed, 18 Aug 1999 07:53:35 +0000 (07:53 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 18 Aug 1999 07:53:35 +0000 (07:53 +0000)
1999-08-18  Ulrich Drepper  <drepper@cygnus.com>

* Rules: When generating stdio_lim.h also rewrite IOV_MAX definition.
* stdio-common/stdio_lim.h.in: Add IOV_MAX template.
* include/bits/xopen_lim.h: Don't define IOV_MAX here, get it from
stdio_lim.h.  Define LONG_BIT and WORD_BIT.

* include/features.h: Define __USE_XOPEN2K if _XOPEN_SOURCE == 600.

* libio/stdio.h: Don't declare cuserid and getopt for X/Open issue 6.

* misc/search.h: Don't define NULL.

* posix/sys/types.h: Define blksize_t if it hasn't happened.
Only define key_t and blkcnt_t if it hasn't happened before.
Define blksize_t if not happened before.
* io/sys/stat.h: Don't define pid_t.  Define blkcnt_t and blksize_t.
* sysdeps/generic/bits/types.h: Define __blksize_t.
* sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
* sysdeps/unix/sysv/linux/bits/types.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
* sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
* sysdeps/mach/hurd/bits/stat.h (struct stat): Use __blksize_t for
st_blksize member.
(struct stat64): Likewise.
* sysdeps/unix/bsd/bits/stat.h: Likewise.
* sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
* sysdeps/unix/sysv/sysv4/i386/bist/stat.h: Likewise.
* sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.

* stdlib/getsubopt.c: Correct type of second argument.
* stdlib/stdlib.h: Likewise.

* stdlib/monetary.h: Don't include sys/types.h.  Define only size_t
and ssize_t.

* sysdeps/generic/putenv.c: Correct type of parameter.
* stdlib/stdlib.h: Likewise.

* sysdeps/generic/msgsnd.c: Correct type of second parameter.
* sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
* sysvips/sys/msg.h: Likewise.

* sysdeps/generic/semop.c: Correct type of third parameter.
* sysdeps/unix/sysv/linux/semop.c: Likewise.
* sysvipc/sys/sem.h: Likewise.  Don't include sys/types.h, define
size_t.

* sysdeps/generic/shmget.c: Correct type of second parameter.
* sysdeps/unix/sysv/linux/shmget.c: Likewise.
* sysvips/sys/shm.h: Likewise.  Don't include unistd.h and sys/types.h.
Declare __getpagesize here.

* sysdeps/generic/bits/ipc.h: Include bits/types.h instead of
sys/types.h.
* sysdeps/gnu/bits/ipc.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/ipc.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/ipc.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
* sysvipc/sys/ipc.h: Define uid_t, gid_t, mode_t, and key_t if not
already done.

* sysdeps/unix/bsd/usleep.c: Correct type of parameter.

* debug/versions: Export __cyg_profile_func_enter and
__cyg_profile_func_exit.

* math/bits/mathcalls.h: Pretty print.

47 files changed:
ChangeLog
Rules
bits/ipc.h
bits/types.h
debug/Versions
include/bits/xopen_lim.h
include/features.h
io/sys/stat.h
libio/stdio.h
math/bits/mathcalls.h
misc/search.h
posix/sys/types.h
stdio-common/stdio_lim.h.in
stdlib/getsubopt.c
stdlib/monetary.h
stdlib/stdlib.h
sysdeps/generic/bits/ipc.h
sysdeps/generic/bits/types.h
sysdeps/generic/msgsnd.c
sysdeps/generic/putenv.c
sysdeps/generic/semop.c
sysdeps/generic/shmget.c
sysdeps/gnu/bits/ipc.h
sysdeps/mach/hurd/bits/stat.h
sysdeps/unix/bsd/bits/stat.h
sysdeps/unix/bsd/osf/alpha/bits/stat.h
sysdeps/unix/bsd/usleep.c
sysdeps/unix/sysv/linux/alpha/bits/ipc.h
sysdeps/unix/sysv/linux/alpha/bits/stat.h
sysdeps/unix/sysv/linux/alpha/bits/types.h
sysdeps/unix/sysv/linux/bits/stat.h
sysdeps/unix/sysv/linux/bits/types.h
sysdeps/unix/sysv/linux/mips/bits/ipc.h
sysdeps/unix/sysv/linux/mips/bits/stat.h
sysdeps/unix/sysv/linux/mips/bits/types.h
sysdeps/unix/sysv/linux/msgsnd.c
sysdeps/unix/sysv/linux/powerpc/bits/ipc.h
sysdeps/unix/sysv/linux/semop.c
sysdeps/unix/sysv/linux/shmget.c
sysdeps/unix/sysv/linux/sparc/bits/types.h
sysdeps/unix/sysv/sysv4/i386/bits/stat.h
sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h
sysdeps/unix/sysv/sysv4/solaris2/bits/types.h
sysvipc/sys/ipc.h
sysvipc/sys/msg.h
sysvipc/sys/sem.h
sysvipc/sys/shm.h

index ef9056e569833bceae3ea72b3ac8c0360ba33d15..461e3bb822c7129632d249387b545d0c2a952933 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,76 @@
+1999-08-18  Ulrich Drepper  <drepper@cygnus.com>
+
+       * Rules: When generating stdio_lim.h also rewrite IOV_MAX definition.
+       * stdio-common/stdio_lim.h.in: Add IOV_MAX template.
+       * include/bits/xopen_lim.h: Don't define IOV_MAX here, get it from
+       stdio_lim.h.  Define LONG_BIT and WORD_BIT.
+
+       * include/features.h: Define __USE_XOPEN2K if _XOPEN_SOURCE == 600.
+
+       * libio/stdio.h: Don't declare cuserid and getopt for X/Open issue 6.
+
+       * misc/search.h: Don't define NULL.
+
+       * posix/sys/types.h: Define blksize_t if it hasn't happened.
+       Only define key_t and blkcnt_t if it hasn't happened before.
+       Define blksize_t if not happened before.
+       * io/sys/stat.h: Don't define pid_t.  Define blkcnt_t and blksize_t.
+       * sysdeps/generic/bits/types.h: Define __blksize_t.
+       * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
+       * sysdeps/unix/sysv/linux/bits/types.h: Likewise.
+       * sysdeps/unix/sysv/linux/mips/bits/types.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/bits/types.h: Likewise.
+       * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
+       * sysdeps/mach/hurd/bits/stat.h (struct stat): Use __blksize_t for
+       st_blksize member.
+       (struct stat64): Likewise.
+       * sysdeps/unix/bsd/bits/stat.h: Likewise.
+       * sysdeps/unix/bsd/osf/alpha/bits/stat.h: Likewise.
+       * sysdeps/unix/sysv/linux/alpha/bits/stat.h: Likewise.
+       * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
+       * sysdeps/unix/sysv/linux/mips/bits/stat.h: Likewise.
+       * sysdeps/unix/sysv/sysv4/i386/bist/stat.h: Likewise.
+       * sysdeps/unix/sysv/sysv4/solaris2/bits/stat.h: Likewise.
+
+       * stdlib/getsubopt.c: Correct type of second argument.
+       * stdlib/stdlib.h: Likewise.
+
+       * stdlib/monetary.h: Don't include sys/types.h.  Define only size_t
+       and ssize_t.
+
+       * sysdeps/generic/putenv.c: Correct type of parameter.
+       * stdlib/stdlib.h: Likewise.
+
+       * sysdeps/generic/msgsnd.c: Correct type of second parameter.
+       * sysdeps/unix/sysv/linux/msgsnd.c: Likewise.
+       * sysvips/sys/msg.h: Likewise.
+
+       * sysdeps/generic/semop.c: Correct type of third parameter.
+       * sysdeps/unix/sysv/linux/semop.c: Likewise.
+       * sysvipc/sys/sem.h: Likewise.  Don't include sys/types.h, define
+       size_t.
+
+       * sysdeps/generic/shmget.c: Correct type of second parameter.
+       * sysdeps/unix/sysv/linux/shmget.c: Likewise.
+       * sysvips/sys/shm.h: Likewise.  Don't include unistd.h and sys/types.h.
+       Declare __getpagesize here.
+
+       * sysdeps/generic/bits/ipc.h: Include bits/types.h instead of
+       sys/types.h.
+       * sysdeps/gnu/bits/ipc.h: Likewise.
+       * sysdeps/unix/sysv/linux/alpha/bits/ipc.h: Likewise.
+       * sysdeps/unix/sysv/linux/mips/bits/ipc.h: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
+       * sysvipc/sys/ipc.h: Define uid_t, gid_t, mode_t, and key_t if not
+       already done.
+
+       * sysdeps/unix/bsd/usleep.c: Correct type of parameter.
+
+       * debug/versions: Export __cyg_profile_func_enter and
+       __cyg_profile_func_exit.
+
+       * math/bits/mathcalls.h: Pretty print.
+
 1999-08-17  Ulrich Drepper  <drepper@cygnus.com>
 
        * timezone/tst-timezone.c (tests): Update America/Sao_Paulo test
diff --git a/Rules b/Rules
index a5a0c5bf8f2ca681fdcfa8b0157a5bc0d00fa91f..2a54a3952914a7c3a5f79148d1839a6f7e06eb93 100644 (file)
--- a/Rules
+++ b/Rules
@@ -191,26 +191,32 @@ $(stdio_lim:h=st): $(..)stdio-common/stdio_lim.h.in $(..)Rules \
        echo '#include "$(..)posix/bits/posix1_lim.h"' |                \
        SUNPRO_DEPENDENCIES='$(@:st=dT) $@'                             \
        $(CC) $(+includes) -E -dM -xc - -o $(@:st=hT)
+       echo '#include "$(..)misc/sys/uio.h"' |                         \
+       SUNPRO_DEPENDENCIES='$(@:st=dT) $@'                             \
+       $(CC) $(+includes) -E -dM -xc - | cat - >> $(@:st=hT)
 ifdef sed-remove-objpfx
        sed $(sed-remove-objpfx) $(@:st=dT) > $(@:st=dt)
-       mv -f $(@:st=dt) $(@:st=d)
+       cat $(@:st=dt) >> $(@:st=d)
 else
-       mv -f $(@:st=dT) $(@:st=d)
+       cat $(@:st=dT) >> $(@:st=d)
 endif
-       fopen_max=`sed -n 's/^#define OPEN_MAX //p' $(@:st=hT)`;        \
-       filename_max=`sed -n 's/^#define PATH_MAX //p' $(@:st=hT)`;     \
+       fopen_max=`sed -n 's/^#define OPEN_MAX //1p' $(@:st=hT)`;       \
+       filename_max=`sed -n 's/^#define PATH_MAX //1p' $(@:st=hT)`;    \
+       iov_max=`sed -n 's/^#define UIO_MAXIOV //p' $(@:st=hT)`;        \
        fopen_max=$${fopen_max:-16};                                    \
        filename_max=$${filename_max:-1024};                            \
+       iov_max=$${iov_max:-_XOPEN_IOV_MAX};                            \
        sed -e "s/@FOPEN_MAX@/$$fopen_max/"                             \
            -e "s/@FILENAME_MAX@/$$filename_max/"                       \
            -e "s/@L_tmpnam@/$(L_tmpnam)/"                              \
            -e "s/@TMP_MAX@/$(TMP_MAX)/"                                \
            -e "s/@L_ctermid@/$(L_ctermid)/"                            \
            -e "s/@L_cuserid@/$(L_cuserid)/"                            \
+           -e "s/@IOV_MAX@/$$iov_max/"                                 \
            $< > $(@:st=h.new)
        $(move-if-change) $(@:st=h.new) $(@:st=h)
 # Remove these last so that they can be examined if something went wrong.
-       rm -f $(@:st=hT) $(@:st=dT)
+       rm -f $(@:st=hT) $(@:st=dT) $(@:st=dt)
        touch $@
 # Get dependencies.
 ifndef no_deps
index 58f419be1df3972585b6711d8e8de4abe03be38d..7e38fdf5ea9cab9c126274d1fa7c91717141ef76 100644 (file)
@@ -1,6 +1,5 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -21,7 +20,7 @@
 # error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
 #endif
 
-#include <sys/types.h>
+#include <bits/types.h>
 
 /* Mode bits for `msgget', `semget', and `shmget'.  */
 #define IPC_CREAT      01000           /* create key if key does not exist */
index 8d2061235d64dcba8b7784da2f1c6966b4a44e81..fd9818e15d5b9650ba4dee4ba6da6f6bd8a15ea9 100644 (file)
@@ -115,6 +115,9 @@ typedef struct
 typedef unsigned short int __ipc_pid_t;
 
 
+/* Type to represent block size.  */
+typedef unsigned int __blksize_t;
+
 /* Types from the Large File Support interface.  */
 
 /* Type to count number os disk blocks.  */
index 01d390eb9fce5680ed031aa97be6e5029f9638d3..c2b6396d820f0324724bdc310be1b3b2f3f61b44 100644 (file)
@@ -6,4 +6,8 @@ libc {
     # b*
     backtrace; backtrace_symbols; backtrace_symbols_fd;
   }
+  GLIBC_2.2 {
+    # These are to support some gcc features.
+    __cyg_profile_func_enter; __cyg_profile_func_exit;
+  }
 }
index 9f22e44e25dc6cecffdb8785dcf74ce0cf82b731..607c50b678dd706a93325a423abaf0b1e45b9d48 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1999 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
@@ -31,6 +31,7 @@
 #define _XOPEN_LIM_H   1
 
 #define __need_FOPEN_MAX
+#define __need_IOV_MAX
 #include <bits/stdio_lim.h>
 
 /* We do not provide fixed values for
@@ -44,6 +45,9 @@
    CHILD_MAX   Maximum number of simultaneous processes per real
                user ID.
 
+   IOV_MAX     Maximum number of `iovec' structures that one process has
+               available for use with `readv' or writev'.
+
    OPEN_MAX    Maximum number of files that one process can have open
                at anyone time.
 
    PASS_MAX    Maximum number of significant bytes in a password.
 */
 
-
-/* Maximum number of `iovec' structures that one process has available
-   for use with `readv' or writev'.  */
-#define IOV_MAX                _XOPEN_IOV_MAX
-
 /* The number of streams that one process can have open at one time.  */
 #define STREAM_MAX     FOPEN_MAX
 
 /* Default process priority.  */
 #define NZERO          20
 
+
+/* Number of bits in a word of type `int'.  */
+#if INT_MAX == 32767
+# define WORD_BIT      16
+#else
+# if INT_MAX == 2147483647
+#  define WORD_BIT     32
+# else
+/* Safe assumption.  */
+#  define WORD_BIT     64
+# endif
+#endif
+
+/* Number of bits in a word of type `long int'.  */
+#if INT_MAX == 2147483647
+# define LONG_BIT      32
+#else
+/* Safe assumption.  */
+# define LONG_BIT      64
+#endif
+
 #endif /* bits/xopen_lim.h */
index f04184ac12baa7ef07dd36177228acfae3fa2f0c..1189e3ea79760ea4f15b7007300065d3678501ed 100644 (file)
 # undef  _POSIX_C_SOURCE
 # define _POSIX_C_SOURCE       199506L
 # undef  _XOPEN_SOURCE
-# define _XOPEN_SOURCE 500
+# define _XOPEN_SOURCE 600
 # undef  _XOPEN_SOURCE_EXTENDED
 # define _XOPEN_SOURCE_EXTENDED        1
 # undef         _LARGEFILE64_SOURCE
 
 #ifdef _XOPEN_SOURCE
 # define __USE_XOPEN   1
-# if (_XOPEN_SOURCE - 0) == 500
+# if (_XOPEN_SOURCE - 0) >= 500
 #  define __USE_XOPEN_EXTENDED 1
 #  define __USE_UNIX98 1
 #  undef _LARGEFILE_SOURCE
 #  define _LARGEFILE_SOURCE    1
+#  if (_XOPEN_SOURCE - 0) == 600
+#   define __USE_XOPEN2K       1
+#  endif
 # else
 #  ifdef _XOPEN_SOURCE_EXTENDED
 #   define __USE_XOPEN_EXTENDED        1
index 058c91e51b04ddbc6e23f6acc50c8c0dc60dcf47..97f789715d77f95d95e0a90042948b5ddce716d7 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 92, 95, 96, 97, 98 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 92, 95, 96, 97, 98, 99 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
@@ -78,9 +78,18 @@ typedef __uid_t uid_t;
 #endif /* X/Open */
 
 #ifdef __USE_UNIX98
-# ifndef __pid_t_defined
-typedef __pid_t pid_t;
-#  define __pid_t_defined
+# ifndef __blkcnt_t_defined
+#  ifndef __USE_FILE_OFFSET64
+typedef __blkcnt_t blkcnt_t;
+#  else
+typedef __blkcnt64_t blkcnt_t;
+#  endif
+#  define __blkcnt_t_defined
+# endif
+
+# ifndef __blksize_t_defined
+typedef __blksize_t blksize_t;
+#  define __blksize_t_defined
 # endif
 #endif /* Unix98 */
 
index 3c726c8ce50fd2f3a662c48b3477835378eee46b..7b6490367af8639f30ce4fde82e7fd3197a1a4cf 100644 (file)
@@ -588,10 +588,10 @@ extern char *ctermid __P ((char *__s));
 #endif /* Use POSIX.  */
 
 
-#ifdef __USE_XOPEN
+#if defined __USE_XOPEN && !defined __USE_XOPEN2K
 /* Return the name of the current user.  */
 extern char *cuserid __P ((char *__s));
-#endif /* Use X/Open.  */
+#endif /* Use X/Open, but not issue 6.  */
 
 
 #ifdef __USE_GNU
@@ -620,13 +620,13 @@ extern int ftrylockfile __P ((FILE *__stream));
 extern void funlockfile __P ((FILE *__stream));
 #endif /* POSIX || misc */
 
-#if defined __USE_XOPEN && !defined __USE_GNU
+#if defined __USE_XOPEN && !defined __USE_XOPEN2K && !defined __USE_GNU
 /* The X/Open standard requires some functions and variables to be
    declared here which do not belong into this header.  But we have to
    follow.  In GNU mode we don't do this nonsense.  */
 # define __need_getopt
 # include <getopt.h>
-#endif
+#endif /* X/Open, but not issue 6 and not for GNU.  */
 
 /* If we are compiling with optimizing read this file.  It contains
    several optizing inline functions and macros.  */
index 025c4c78e455a8414dcf886ad0c110e8539f05b9..7f41ef971167547403587bf156b134130e24e367 100644 (file)
@@ -259,10 +259,10 @@ __MATHCALLX (nexttoward,, (_Mdouble_ __x, long double __y), (__const__));
 /* Return the remainder of integer divison X / Y with infinite precision.  */
 __MATHCALL (remainder,, (_Mdouble_ __x, _Mdouble_ __y));
 
-#if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
+# if defined __USE_MISC || defined __USE_XOPEN_EXTENDED
 /* Return X times (2 to the Nth power).  */
 __MATHCALL (scalb,, (_Mdouble_ __x, _Mdouble_ __n));
-#endif
+# endif
 
 /* Return X times (2 to the Nth power).  */
 __MATHCALL (scalbn,, (_Mdouble_ __x, int __n));
index b534d93ccb22407a0217b71bb84bece7b689e062..60edbe54dd273d8e880c67c20d8bb217e8292c72 100644 (file)
@@ -1,5 +1,5 @@
 /* Declarations for System V style searching functions.
-   Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1995, 1996, 1997, 1998, 1999 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
@@ -23,7 +23,6 @@
 #include <features.h>
 
 #define __need_size_t
-#define __need_NULL
 #include <stddef.h>
 
 __BEGIN_DECLS
index 7a0b3828c378021f256ad73800f7a006534c6752..37c1cb16c839317ce6ff42d8a6a09d854872eaa3 100644 (file)
@@ -110,8 +110,9 @@ typedef __daddr_t daddr_t;
 typedef __caddr_t caddr_t;
 #endif
 
-#if defined __USE_SVID || defined __USE_XOPEN
+#if (defined __USE_SVID || defined __USE_XOPEN) && !defined __key_t_defined
 typedef __key_t key_t;
+# define __key_t_defined
 #endif
 
 #ifdef __USE_XOPEN
@@ -205,13 +206,24 @@ typedef int register_t __attribute__ ((__mode__ (__word__)));
 #endif /* Use BSD.  */
 
 
+#if defined __USE_UNIX98 && !defined __blksize_t_defined
+typedef __blksize_t blksize_t;
+# define __blksize_t_defined
+#endif
+
 /* Types from the Large File Support interface.  */
 #ifndef __USE_FILE_OFFSET64
+# ifndef __blkcnt_t_defined
 typedef __blkcnt_t blkcnt_t;    /* Type to count number of disk blocks.  */
+#  define __blkcnt_t_defined
+# endif
 typedef __fsblkcnt_t fsblkcnt_t; /* Type to count file system blocks.  */
 typedef __fsfilcnt_t fsfilcnt_t; /* Type to count file system inodes.  */
 #else
+# ifndef __blkcnt_t_defined
 typedef __blkcnt64_t blkcnt_t;    /* Type to count number of disk blocks.  */
+#  define __blkcnt_t_defined
+# endif
 typedef __fsblkcnt64_t fsblkcnt_t; /* Type to count file system blocks.  */
 typedef __fsfilcnt64_t fsfilcnt_t; /* Type to count file system inodes.  */
 #endif
index 957fac64498b876c4c22514d764e640c4f445395..55272963a729cade6e6999df0bd8efe1bf8f0da4 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1994, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1994, 1997, 1998, 1999 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
@@ -35,3 +35,7 @@
 # undef  FOPEN_MAX
 # define FOPEN_MAX @FOPEN_MAX@
 #endif
+
+#if defined __need_IOV_MAX && !defined IOV_MAX
+# define IOV_MAX @IOV_MAX@
+#endif
index d559d9077f908161f643532cbce93e421a8a8ee9..3cff684facd70e58f0ca53771d8a4de85405f312 100644 (file)
@@ -1,5 +1,5 @@
 /* Parse comma separate list into words.
-   Copyright (C) 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -31,7 +31,7 @@
 int
 getsubopt (optionp, tokens, valuep)
      char **optionp;
-     const char *const *tokens;
+     char *const *tokens;
      char **valuep;
 {
   char *endp, *vstart;
index d0dcaadfd7945cdae3ef311ea507eed99f62f43c..de288a208b10b6196d132f5d1c52a30848756a54 100644 (file)
@@ -1,5 +1,5 @@
 /* Header file for monetary value formatting functions.
-   Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+   Copyright (C) 1996, 1997, 1998, 1999 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
 #include <features.h>
 
 /* Get needed types.  */
-#include <sys/types.h>
+#define __need_size_t
+#include <stddef.h>
+#include <bits/types.h>
+
+#ifndef        __ssize_t_defined
+typedef __ssize_t ssize_t;
+# define __ssize_t_defined
+#endif
+
 
 __BEGIN_DECLS
 
index 97fa000ea051118faf7719f98e6fdd758e2a97bc..bec12090f360dfa8367b8ebe352d5fe82eaeb274 100644 (file)
@@ -537,7 +537,7 @@ extern char *__secure_getenv __P ((__const char *__name));
 /* The SVID says this is in <stdio.h>, but this seems a better place.  */
 /* Put STRING, which is of the form "NAME=VALUE", in the environment.
    If there is no `=', remove NAME from the environment.  */
-extern int putenv __P ((__const char *__string));
+extern int putenv __P ((char *__string));
 #endif
 
 #ifdef __USE_BSD
@@ -736,7 +736,7 @@ extern int rpmatch __P ((__const char *__response));
    suboption.  On exit *OPTIONP is set to the beginning of the next
    token or at the terminating NUL character.  */
 extern int getsubopt __P ((char **__restrict __optionp,
-                          __const char *__const *__restrict __tokens,
+                          char *__const *__restrict __tokens,
                           char **__restrict __valuep));
 #endif
 
index 58f419be1df3972585b6711d8e8de4abe03be38d..7e38fdf5ea9cab9c126274d1fa7c91717141ef76 100644 (file)
@@ -1,6 +1,5 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -21,7 +20,7 @@
 # error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
 #endif
 
-#include <sys/types.h>
+#include <bits/types.h>
 
 /* Mode bits for `msgget', `semget', and `shmget'.  */
 #define IPC_CREAT      01000           /* create key if key does not exist */
index 8d2061235d64dcba8b7784da2f1c6966b4a44e81..fd9818e15d5b9650ba4dee4ba6da6f6bd8a15ea9 100644 (file)
@@ -115,6 +115,9 @@ typedef struct
 typedef unsigned short int __ipc_pid_t;
 
 
+/* Type to represent block size.  */
+typedef unsigned int __blksize_t;
+
 /* Types from the Large File Support interface.  */
 
 /* Type to count number os disk blocks.  */
index 993895290b7adb1c22cc458612044b59107176ac..5c651164efbde90c4d4c0382dc75f7632f631461 100644 (file)
@@ -1,6 +1,6 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
+   Contributed by Ulrich Drepper <drepper@cygnus.com>, August 1995.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -29,7 +29,7 @@
 int
 msgsnd (msqid, msgp, msgsz, msgflg)
      int msqid;
-     void *msgp;
+     const void *msgp;
      size_t msgsz;
      int msgflg;
 {
index 75fafad06d32a2151fa8c3e3f557b9e986da683e..9c7d75a6a141c56147f362c0df1e8307ceebece9 100644 (file)
@@ -51,7 +51,7 @@ extern char *alloca ();
 /* Put STRING, which is of the form "NAME=VALUE", in the environment.  */
 int
 putenv (string)
-     const char *string;
+     char *string;
 {
   const char *const name_end = strchr (string, '=');
 
index 64f595145166b755546c271db818188791cb813d..0c26deba8e2acc0b74539b8fe6f3d6848813829f 100644 (file)
@@ -1,6 +1,6 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
+   Contributed by Ulrich Drepper <drepper@cygnus.com>, August 1995.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -26,7 +26,7 @@ int
 semop (semid, sops, nsops)
      int semid;
      struct sembuf *sops;
-     unsigned int nsops;
+     size_t nsops;
 {
   __set_errno (ENOSYS);
   return -1;
index 4f8eb63ea0cc9589f8fbf5ed6004e0be22960ca5..e534423926d9f5311b26925de3a3f71afda47e44 100644 (file)
@@ -1,6 +1,6 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
+   Contributed by Ulrich Drepper <drepper@cygnus.com>, August 1995.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -26,7 +26,7 @@
 int
 shmget (key, size, shmflg)
      key_t key;
-     int size;
+     size_t size;
      int shmflg;
 {
   __set_errno (ENOSYS);
index c4e37358e837531515d41f4298981a1f094a86d3..eb9bcff6a41a3436db4c43a40f02efc038a2d5ba 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998, 1999 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
@@ -20,7 +20,7 @@
 # error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
 #endif
 
-#include <sys/types.h>
+#include <bits/types.h>
 
 /* Mode bits for `msgget', `semget', and `shmget'.  */
 #define IPC_CREAT      01000           /* Create key if key does not exist. */
index df50a0901f5bee43f1b70e547d8533071308cfeb..201aed10b4f2659d3ca5de6b408d4a8443c2cdf9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1993, 1994, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 93, 94, 96, 97, 99 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
@@ -62,7 +62,7 @@ struct stat
     __time_t st_ctime;         /* Status change time, seconds */
     unsigned long int st_ctime_usec; /* and microseconds.  */
 
-    unsigned int st_blksize;   /* Optimal size for I/O.  */
+    __blksize_t st_blksize;    /* Optimal size for I/O.  */
 
 #ifndef __USE_FILE_OFFSET64
     __blkcnt_t st_blocks;      /* Number of 512-byte blocks allocated.
@@ -111,7 +111,7 @@ struct stat64
     __time_t st_ctime;         /* Status change time, seconds */
     unsigned long int st_ctime_usec; /* and microseconds.  */
 
-    unsigned int st_blksize;   /* Optimal size for I/O.  */
+    __blksize_t st_blksize;    /* Optimal size for I/O.  */
 
     __blkcnt64_t st_blocks;    /* Number of 512-byte blocks allocated.
                                   Not related to `st_blksize'.  */
index 8722fa02490bdd1a8e914eba2e574a6b0185618a..3343019f61be86c6bf5e52b40a815ea93bcbe47b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1992, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1992, 1996, 1997, 1999 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
@@ -50,7 +50,7 @@ struct stat
     __time_t st_ctime;         /* Time of last status change.  */
     unsigned long int st_ctime_usec;
 
-    unsigned long int st_blksize; /* Optimal block size for I/O.  */
+    __blksize_t st_blksize;    /* Optimal block size for I/O.  */
 #define        _STATBUF_ST_BLKSIZE     /* Tell code we have this member.  */
 
     __blkcnt_t st_blocks;      /* Number of 512-byte blocks allocated.  */
index 7084b4e53459630574c60af005c13eaae9145f77..b73c23ae96fb9d24e1d07c78d6f023d8334c16c8 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1996, 1997, 1999 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
@@ -42,7 +42,7 @@ struct stat
     int st_ctime;              /* Time of last status change.  */
     int st_ctime_usec;
 
-    unsigned int st_blksize;   /* Optimal block size for I/O.  */
+    __blksize_t st_blksize;    /* Optimal block size for I/O.  */
 #define        _STATBUF_ST_BLKSIZE     /* Tell code we have this member.  */
 
     __blkcnt_t st_blocks;      /* Number of 512-byte blocks allocated.  */
index 13506d2b8fb1a56a7076ee9976cfe28a57a869f3..ccd294f000371e09dada3115bcb706b815dad15f 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1996 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 1996, 1999 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
@@ -23,7 +23,7 @@
 /* Sleep USECONDS microseconds, or until a previously set timer goes off.  */
 void
 usleep (useconds)
-     unsigned int useconds;
+     useconds_t useconds;
 {
   struct timeval delay;
 
index 7b644e8b7a27f78fd4bf362a0eaaafe809960bc7..804e1ee3f7b032d4aeaed23dbc6d98a19591f54d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998, 1999 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
@@ -20,7 +20,7 @@
 # error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
 #endif
 
-#include <sys/types.h>
+#include <bits/types.h>
 
 /* Mode bits for `msgget', `semget', and `shmget'.  */
 #define IPC_CREAT      01000           /* Create key if key does not exist. */
index cb4ab78268acaadf935f59d7d1452870762ed947..e1dad323b150041b33d19675f4d0120d222f03d9 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1996, 1997, 1998, 1999 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
@@ -53,7 +53,7 @@ struct stat
     __blkcnt_t st_blocks;      /* Nr. 512-byte blocks allocated.  */
     int __pad2;
 #endif
-    unsigned int st_blksize;   /* Optimal block size for I/O.  */
+    __blksize_t st_blksize;    /* Optimal block size for I/O.  */
     unsigned int st_flags;
     unsigned int st_gen;
     int __pad3;
@@ -76,7 +76,7 @@ struct stat64
     __time_t st_mtime;         /* Time of last modification.  */
     __time_t st_ctime;         /* Time of last status change.  */
     __blkcnt64_t st_blocks;    /* Nr. 512-byte blocks allocated.  */
-    unsigned int st_blksize;   /* Optimal block size for I/O.  */
+    __blksize_t st_blksize;    /* Optimal block size for I/O.  */
     unsigned int st_flags;
     unsigned int st_gen;
     int __pad3;
index 4bc43199d51d7912eb1949b45812b99744c8a450..d98ed8ad8c802c2093fcfbffd3705ae02d58d4f7 100644 (file)
@@ -59,8 +59,9 @@ typedef __int32_t  __pid_t;           /* Type of process identifications.  */
 typedef __int64_t  __ssize_t;          /* Type of a byte count, or error.  */
 typedef __int64_t  __rlim_t;           /* Type of resource counts.  */
 typedef __int64_t  __rlim64_t;         /*  "" (LFS) */
-typedef __uint32_t  __blkcnt_t;                /* Type to count nr disk blocks.  */
-typedef __uint64_t  __blkcnt64_t;      /*  "" (LFS) */
+typedef __uint32_t __blksize_t;                /* Type to represnet block size.  */
+typedef __uint32_t __blkcnt_t;         /* Type to count nr disk blocks.  */
+typedef __uint64_t __blkcnt64_t;       /*  "" (LFS) */
 typedef __int32_t __fsblkcnt_t;                /* Type to count file system blocks. */
 typedef __int64_t __fsblkcnt64_t;      /*  "" (LFS) */
 typedef __uint32_t __fsfilcnt_t;       /* Type to count file system inodes. */
index c175668a06222bc94008705e4b4ff13cbe8d640f..ff2b16e6fd440d5b557536e395f8937ebac2bb7a 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 95, 96, 97, 98, 99 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
@@ -53,7 +53,7 @@ struct stat
 #else
     __off64_t st_size;                 /* Size of file, in bytes.  */
 #endif
-    unsigned long int st_blksize;      /* Optimal block size for I/O.  */
+    __blksize_t st_blksize;            /* Optimal block size for I/O.  */
 
 #ifndef __USE_FILE_OFFSET64
     __blkcnt_t st_blocks;              /* Number 512-byte blocks allocated. */
@@ -84,7 +84,7 @@ struct stat64
     __dev_t st_rdev;                   /* Device number, if device.  */
     unsigned short int __pad2;
     __off64_t st_size;                 /* Size of file, in bytes.  */
-    unsigned long int st_blksize;      /* Optimal block size for I/O.  */
+    __blksize_t st_blksize;            /* Optimal block size for I/O.  */
 
     __blkcnt64_t st_blocks;            /* Number 512-byte blocks allocated. */
     __time_t st_atime;                 /* Time of last access.  */
index 1884baed96441ca3d5ec1f8c290848af4569eaf7..28d6157e07783ec86a9f8ce86e6a121d85e57a7a 100644 (file)
@@ -119,6 +119,9 @@ typedef int __key_t;
 typedef unsigned short int __ipc_pid_t;
 
 
+/* Type to represent block size.  */
+typedef long int __blksize_t;
+
 /* Types from the Large File Support interface.  */
 
 /* Type to count number os disk blocks.  */
index 04bd3f0ce225d718310686f7637cfa1890e6115c..fb989ccecae16a0c38d5a4ef2bf94a7ab7babbbf 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998, 1999 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
@@ -20,7 +20,7 @@
 # error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
 #endif
 
-#include <sys/types.h>
+#include <bits/types.h>
 
 /* Mode bits for `msgget', `semget', and `shmget'.  */
 #define IPC_CREAT      01000           /* Create key if key does not exist. */
index f0afd5e728f1e63950ce3747f1732ee992746ba6..1379ea7a6bf5b6b60201c137e99a195c0cf046e5 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1992, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1992, 95, 96, 97, 98, 99 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
@@ -66,7 +66,7 @@ struct stat
     long int __reserved1;
     __time_t st_ctime;         /* Time of last status change.  */
     long int __reserved2;
-    long int st_blksize;       /* Optimal block size for I/O.  */
+    __blksize_t st_blksize;    /* Optimal block size for I/O.  */
 #ifndef __USE_FILE_OFFSET64
     __blkcnt_t st_blocks;      /* Number of 512-byte blocks allocated.  */
 #else
@@ -104,7 +104,7 @@ struct stat64
     long int __reserved1;
     __time_t st_ctime;         /* Time of last status change.  */
     long int __reserved2;
-    long int st_blksize;       /* Optimal block size for I/O.  */
+    __blksize_t st_blksize;    /* Optimal block size for I/O.  */
     __blkcnt64_t st_blocks;    /* Number of 512-byte blocks allocated.  */
     char st_fstype[16];                /* Filesystem type name */
     long int st_pad4[8];
index d7176c31c63d79af1f5e21bdb4c412b9beb5825e..37c3f21c5be95d5df9c70b42cf9ad7db12088707 100644 (file)
@@ -119,6 +119,9 @@ typedef int __key_t;
 typedef long int __ipc_pid_t;
 
 
+/* Type to represent block size.  */
+typedef long int __blksize_t;
+
 /* Types from the Large File Support interface.  */
 
 /* Type to count number os disk blocks.  */
index c279b2e52e403618fc3aa3110bd03c539da421c1..af6df3d4a7eb30e31a9a4863ee1838c6f25e88ae 100644 (file)
@@ -1,6 +1,6 @@
-/* Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
+   Contributed by Ulrich Drepper <drepper@cygnus.com>, August 1995.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -26,7 +26,7 @@
 int
 msgsnd (msqid, msgp, msgsz, msgflg)
      int msqid;
-     void *msgp;
+     const void *msgp;
      size_t msgsz;
      int msgflg;
 {
index 1c1ae80273af50ee5719ba6a7787667535df3c60..58f6d99488e09e631bc91aacf0e9df35886dfcbd 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998, 1999 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
@@ -20,7 +20,7 @@
 # error "Never use <bits/ipc.h> directly; include <sys/ipc.h> instead."
 #endif
 
-#include <sys/types.h>
+#include <bits/types.h>
 
 /* Mode bits for `msgget', `semget', and `shmget'.  */
 #define IPC_CREAT      01000           /* Create key if key does not exist. */
index bd120bf4b3a4a698f21ab9bc4ce85c8f4e5f14df..33fd289cc49297f43193337b7a1e3bf84a3aaf7c 100644 (file)
@@ -1,6 +1,6 @@
-/* Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
+   Contributed by Ulrich Drepper <drepper@cygnus.com>, August 1995.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -29,7 +29,7 @@ int
 semop (semid, sops, nsops)
      int semid;
      struct sembuf *sops;
-     unsigned int nsops;
+     size_t nsops;
 {
   return INLINE_SYSCALL (ipc, 5, IPCOP_semop, semid, (int) nsops, 0, sops);
 }
index 73bfe97dc75e24462fe1dce7f50692eb4a32ab5b..d9f5ba036b5a0e0e1b0550090b26ea1f549a28c5 100644 (file)
@@ -1,6 +1,6 @@
-/* Copyright (C) 1995, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1997, 1998, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
-   Contributed by Ulrich Drepper <drepper@gnu.ai.mit.edu>, August 1995.
+   Contributed by Ulrich Drepper <drepper@cygnus.com>, August 1995.
 
    The GNU C Library is free software; you can redistribute it and/or
    modify it under the terms of the GNU Library General Public License as
@@ -30,7 +30,7 @@
 int
 shmget (key, size, shmflg)
      key_t key;
-     int size;
+     size_t size;
      int shmflg;
 {
   return INLINE_SYSCALL (ipc, 5, IPCOP_shmget, key, size, shmflg, NULL);
index 84073b75645339d952b83608a87108ed1cb3baf8..89b3ad9c07493478ce0ddef64f188d208ae56244 100644 (file)
@@ -145,6 +145,9 @@ typedef unsigned short int __ipc_pid_t;
 #endif
 
 
+/* Type to represent block size.  */
+typedef long int __blksize_t;
+
 /* Types from the Large File Support interface.  */
 
 /* Type to count number os disk blocks.  */
index 104ad2f24702d12c87d4e1b0f79669395dbdcc05..4c6b729579a7f7597f247cf4152f641a514df34b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1996, 1997, 1999 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
@@ -51,7 +51,7 @@ struct stat
     long int st_ctime;         /* Time of last status change.  */
     unsigned long int st_ctime_usec;
 
-    long int st_blksize;       /* Optimal block size for I/O.  */
+    __blksize_t st_blksize;    /* Optimal block size for I/O.  */
 #define        _STATBUF_ST_BLKSIZE     /* Tell code we have this member.  */
 
     __blkcnt_t st_blocks;      /* Number of 512-byte blocks allocated.  */
index ef93b7be2702eb983baa1a1cd03046306d787ce9..34cc328b51feaa2e19b0269f9153a00c8ad2a6aa 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1993, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1993, 1996, 1997, 1998, 1999 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
@@ -50,7 +50,7 @@ struct stat
     __time_t st_ctime;         /* Time of last status change.  */
     unsigned long int st_ctime_usec;
 
-    long int st_blksize;       /* Optimal block size for I/O.  */
+    __blksize_t st_blksize;    /* Optimal block size for I/O.  */
 #define        _STATBUF_ST_BLKSIZE     /* Tell code we have this member.  */
 
     __blkcnt_t st_blocks;      /* Number of 512-byte blocks allocated.  */
@@ -81,7 +81,7 @@ struct stat64
     __time_t st_ctime;                 /* Time of last status change */
     unsigned long int st_ctime_usec;
 
-    long int st_blksize;
+    __blksize_t st_blksize;
     __blkcnt64_t st_blocks;
     char st_fstype[_ST_FSTYPSZ];
     long int st_filler3[8];
index 79713e75ba56b619aba448f6fa075da399367e20..1e7b50e7800def70a3a7ee2399862f7444d689c4 100644 (file)
@@ -110,6 +110,9 @@ typedef struct
 typedef unsigned long int __fd_mask;
 
 
+/* Type to represent block size.  */
+typedef long int __blksize_t;
+
 /* Types from the Large File Support interface.  */
 
 /* Type to count number os disk blocks.  */
index f1ba7ff188ea75ca9332e7713d7400884133f74c..0ec6ed16e041aeb6f62269b5c364d12e51b47a49 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1999 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
 
 #include <features.h>
 
+#if !defined __USE_SVID && !defined __USE_XOPEN && __GNUC__ >= 2
+# warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
+#endif
+
 /* Get system dependent definition of `struct ipc_perm' and more.  */
 #include <bits/ipc.h>
 
-#if !defined __USE_SVID && !defined __USE_XOPEN && __GNUC__ >= 2
-# warning "Files using this header must be compiled with _SVID_SOURCE or _XOPEN_SOURCE"
+#ifndef __uid_t_defined
+typedef __uid_t uid_t;
+# define __uid_t_defined
+#endif
+
+#ifndef __gid_t_defined
+typedef __gid_t gid_t;
+# define __gid_t_defined
+#endif
+
+#ifndef __mode_t_defined
+typedef __mode_t mode_t;
+# define __mode_t_defined
+#endif
+
+#ifndef __key_t_defined
+typedef __key_t key_t;
+# define __key_t_defined
 #endif
 
 __BEGIN_DECLS
index 56938bf6134203b56fbac08020c0d6663866c533..5f8f761ccaa34304d33d998dbba84384ff83c110 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1999 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
@@ -52,7 +52,7 @@ extern int msgrcv __P ((int __msqid, void *__msgp, size_t __msgsz,
                        long int __msgtyp, int __msgflg));
 
 /* Send message to message queue.  */
-extern int msgsnd __P ((int __msqid, void *__msgp, size_t __msgsz,
+extern int msgsnd __P ((int __msqid, __const void *__msgp, size_t __msgsz,
                        int __msgflg));
 
 __END_DECLS
index 6ae76e23478ae6aefa8a8fd723900acf718afbc5..b44194520ea78ce5f4c45af2bf311628188d891c 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998, 1999 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
@@ -21,7 +21,8 @@
 
 #include <features.h>
 
-#include <sys/types.h>
+#define __need_size_t
+#include <stddef.h>
 
 /* Get common definition of System V style IPC.  */
 #include <sys/ipc.h>
@@ -51,7 +52,7 @@ extern int semget __P ((key_t __key, int __nsems, int __semflg));
 
 /* Operate on semaphore.  */
 extern int semop __P ((int __semid, struct sembuf *__sops,
-                      unsigned int __nsops));
+                      size_t __nsops));
 
 __END_DECLS
 
index 47e0f496a2a2fc6b77ee3ef04316c91924c62dfb..6dce0a81557eeddc547633d5eb630f4b95bacafe 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 1998, 1999 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
@@ -21,8 +21,8 @@
 
 #include <features.h>
 
-#include <unistd.h>            /* for `getpagesize' declaration */
-#include <sys/types.h>
+#define __need_size_t
+#include <stddef.h>
 
 /* Get common definition of System V style IPC.  */
 #include <sys/ipc.h>
@@ -33,6 +33,8 @@
 
 /* Segment low boundary address multiple.  */
 #define SHMLBA         (__getpagesize ())
+extern int __getpagesize __P ((void));
+
 
 /* The following System V style IPC functions implement a shared memory
    facility.  The definition is found in XPG4.2.  */
@@ -43,7 +45,7 @@ __BEGIN_DECLS
 extern int shmctl __P ((int __shmid, int __cmd, struct shmid_ds *__buf));
 
 /* Get shared memory segment.  */
-extern int shmget __P ((key_t __key, int __size, int __shmflg));
+extern int shmget __P ((key_t __key, size_t __size, int __shmflg));
 
 /* Attach shared memory segment.  */
 extern void *shmat __P ((int __shmid, __const void *__shmaddr, int __shmflg));