aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/bits/ipc.h5
-rw-r--r--sysdeps/generic/bits/types.h3
-rw-r--r--sysdeps/generic/msgsnd.c6
-rw-r--r--sysdeps/generic/putenv.c2
-rw-r--r--sysdeps/generic/semop.c6
-rw-r--r--sysdeps/generic/shmget.c6
6 files changed, 15 insertions, 13 deletions
diff --git a/sysdeps/generic/bits/ipc.h b/sysdeps/generic/bits/ipc.h
index 58f419be1d..7e38fdf5ea 100644
--- a/sysdeps/generic/bits/ipc.h
+++ b/sysdeps/generic/bits/ipc.h
@@ -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 */
diff --git a/sysdeps/generic/bits/types.h b/sysdeps/generic/bits/types.h
index 8d2061235d..fd9818e15d 100644
--- a/sysdeps/generic/bits/types.h
+++ b/sysdeps/generic/bits/types.h
@@ -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. */
diff --git a/sysdeps/generic/msgsnd.c b/sysdeps/generic/msgsnd.c
index 993895290b..5c651164ef 100644
--- a/sysdeps/generic/msgsnd.c
+++ b/sysdeps/generic/msgsnd.c
@@ -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;
{
diff --git a/sysdeps/generic/putenv.c b/sysdeps/generic/putenv.c
index 75fafad06d..9c7d75a6a1 100644
--- a/sysdeps/generic/putenv.c
+++ b/sysdeps/generic/putenv.c
@@ -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, '=');
diff --git a/sysdeps/generic/semop.c b/sysdeps/generic/semop.c
index 64f5951451..0c26deba8e 100644
--- a/sysdeps/generic/semop.c
+++ b/sysdeps/generic/semop.c
@@ -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;
diff --git a/sysdeps/generic/shmget.c b/sysdeps/generic/shmget.c
index 4f8eb63ea0..e534423926 100644
--- a/sysdeps/generic/shmget.c
+++ b/sysdeps/generic/shmget.c
@@ -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);