diff options
| author | Ulrich Drepper <drepper@redhat.com> | 2000-09-28 23:32:48 +0000 |
|---|---|---|
| committer | Ulrich Drepper <drepper@redhat.com> | 2000-09-28 23:32:48 +0000 |
| commit | a0386a0da3369e271bbfc03d54c49ba4ab62cd3a (patch) | |
| tree | d71901ace9a2d12f922de0980c3663ce8f0906c2 | |
| parent | c0ac34e4472e5f3b5fdf1557480e2b2c1cc72aed (diff) | |
| download | glibc-a0386a0da3369e271bbfc03d54c49ba4ab62cd3a.tar.xz glibc-a0386a0da3369e271bbfc03d54c49ba4ab62cd3a.zip | |
Update.
2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
* sysdeps/unix/sysv/linux/kernel-features.h: Add __ASSUME_IPC64, only
define it for powerpc for kernel >= 2.4.0.
* sysdeps/unix/sysv/linux/msgctl.c: Test for __ASSUME_IPC64, not
__ASSUME_32BITUIDS.
* sysdeps/unix/sysv/linux/semctl.c: Likewise.
* sysdeps/unix/sysv/linux/shmctl.c: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Sync with kernel.
* sysdeps/unix/sysv/linux/powerpc/bits/msq.h: New file.
* sysdeps/unix/sysv/linux/powerpc/bits/sem.h: New file.
* sysdeps/unix/sysv/linux/powerpc/bits/shm.h: New file.
2000-09-28 Martin Schwidefsksy <schwidefsky@de.ibm.com>
* sysdeps/s390/atomicity.h: Fix compare_and_swap.
* sysdeps/unix/sysv/linux/s390/bits/fcntl.h
(F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8.
2000-09-28 Denis Joseph Barrow <djbarrow@de.ibm.com>
* sysdeps/unix/sysv/linux/s390/sys/procfs.h: Use definitions from
ucontext.h.
* sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Fix ucontext structure.
2000-09-27 Andreas Schwab <schwab@suse.de>
* math/Makefile (distribute): Explicitly add the long double test
sources, to get them included even if long double is not supported.
2000-09-27 Jes Sorensen <jes@linuxcare.com>
* elf/soinit.c (struct object): Move definition to gccframe.h and
include it. Problem identified by HJ Lu.
* sysdeps/ia64/gccframe.h: New file. ia64 specific version of
struct object to be searched for frame unwind info.
* sysdeps/generic/gccframe.h: New file. Generic version of
struct object to be searched for frame unwind info.
2000-09-28 Ulrich Drepper <drepper@redhat.com>
* manual/errno.texi: Correct error text for ENXIO.
Reported by Jörg Schilling <schilling@fokus.gmd.de>.
2000-09-27 Jes Sorensen <jes@linuxcare.com>
* sysdeps/ia64/fpu/fsetexcptflg.c (fesetexceptflag): Set the
exception status bits rather than the exception disable bits.
Don't include math.h.
* sysdeps/ia64/fpu/fgetexcptflg.c (fegetexceptflag): Report the
status of exceptions currently raised rather than which exceptions
are enabled.
* sysdeps/ia64/fpu/fclrexcpt.c (feclearexcept): Typecase to fenv_t
rather than unsigned long int.
* sysdeps/ia64/fpu/fedisblxcpt.c (fedisableexcept): Only disable
the exceptions actually requested by the caller and not just
disable all exceptions.
* sysdeps/ia64/fpu/feenablxcpt.c (feenableexcept): Exceptions on
the ia64 are enabled by clearing the respective bits in the fpsr,
not setting them.
* sysdeps/ia64/bits/fenv.h: typedef fexcept_t and fenv_t to
unsigned long int rather than unsigned long to be consistent with
the coding conventions.
2000-09-20 H.J. Lu <hjl@gnu.org>
* sysdeps/ia64/fpu/fesetenv.c (fesetenv): Use fenv_t instead of
unsigned long int.
* sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise.
2000-09-28 Ulrich Drepper <drepper@redhat.com>
* string/bits/string2.h: Unify #if usage.
2000-09-27 Jakub Jelinek <jakub@redhat.com>
* math/test-fenv.c (feexcp_mask_test): If enabling all exceptions
and disabling underflow or overflow, disable inexact as well.
* sysdeps/gnu/netinet/tcp.h: Add tcp_info defines and types.
| -rw-r--r-- | ChangeLog | 87 | ||||
| -rw-r--r-- | linuxthreads/ChangeLog | 4 | ||||
| -rw-r--r-- | linuxthreads/sysdeps/s390/pt-machine.h | 29 | ||||
| -rw-r--r-- | localedata/ChangeLog | 5 | ||||
| -rw-r--r-- | sysdeps/s390/atomicity.h | 6 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/kernel-features.h | 12 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/msgctl.c | 2 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/bits/ipc.h | 5 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/bits/msq.h | 77 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/bits/sem.h | 87 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/powerpc/bits/shm.h | 94 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/s390/bits/fcntl.h | 14 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/s390/sys/procfs.h | 28 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/s390/sys/ucontext.h | 72 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/semctl.c | 2 | ||||
| -rw-r--r-- | sysdeps/unix/sysv/linux/shmctl.c | 2 |
16 files changed, 440 insertions, 86 deletions
@@ -1,6 +1,91 @@ +2000-09-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com> + + * sysdeps/unix/sysv/linux/kernel-features.h: Add __ASSUME_IPC64, only + define it for powerpc for kernel >= 2.4.0. + * sysdeps/unix/sysv/linux/msgctl.c: Test for __ASSUME_IPC64, not + __ASSUME_32BITUIDS. + * sysdeps/unix/sysv/linux/semctl.c: Likewise. + * sysdeps/unix/sysv/linux/shmctl.c: Likewise. + * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Sync with kernel. + * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: New file. + * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: New file. + * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: New file. + +2000-09-28 Martin Schwidefsksy <schwidefsky@de.ibm.com> + + * sysdeps/s390/atomicity.h: Fix compare_and_swap. + * sysdeps/unix/sysv/linux/s390/bits/fcntl.h + (F_GETLK64,F_SETLK64,F_SETLKW64): Use values from 2.4.0-test8. + +2000-09-28 Denis Joseph Barrow <djbarrow@de.ibm.com> + + * sysdeps/unix/sysv/linux/s390/sys/procfs.h: Use definitions from + ucontext.h. + * sysdeps/unix/sysv/linux/s390/sys/ucontext.h: Fix ucontext structure. + +2000-09-27 Andreas Schwab <schwab@suse.de> + + * math/Makefile (distribute): Explicitly add the long double test + sources, to get them included even if long double is not supported. + +2000-09-27 Jes Sorensen <jes@linuxcare.com> + + * elf/soinit.c (struct object): Move definition to gccframe.h and + include it. Problem identified by HJ Lu. + + * sysdeps/ia64/gccframe.h: New file. ia64 specific version of + struct object to be searched for frame unwind info. + * sysdeps/generic/gccframe.h: New file. Generic version of + struct object to be searched for frame unwind info. + +2000-09-28 Ulrich Drepper <drepper@redhat.com> + + * manual/errno.texi: Correct error text for ENXIO. + Reported by Jörg Schilling <schilling@fokus.gmd.de>. + +2000-09-27 Jes Sorensen <jes@linuxcare.com> + + * sysdeps/ia64/fpu/fsetexcptflg.c (fesetexceptflag): Set the + exception status bits rather than the exception disable bits. + Don't include math.h. + + * sysdeps/ia64/fpu/fgetexcptflg.c (fegetexceptflag): Report the + status of exceptions currently raised rather than which exceptions + are enabled. + + * sysdeps/ia64/fpu/fclrexcpt.c (feclearexcept): Typecase to fenv_t + rather than unsigned long int. + + * sysdeps/ia64/fpu/fedisblxcpt.c (fedisableexcept): Only disable + the exceptions actually requested by the caller and not just + disable all exceptions. + + * sysdeps/ia64/fpu/feenablxcpt.c (feenableexcept): Exceptions on + the ia64 are enabled by clearing the respective bits in the fpsr, + not setting them. + + * sysdeps/ia64/bits/fenv.h: typedef fexcept_t and fenv_t to + unsigned long int rather than unsigned long to be consistent with + the coding conventions. + +2000-09-20 H.J. Lu <hjl@gnu.org> + + * sysdeps/ia64/fpu/fesetenv.c (fesetenv): Use fenv_t instead of + unsigned long int. + * sysdeps/ia64/fpu/fesetround.c (fesetround): Likewise. + +2000-09-28 Ulrich Drepper <drepper@redhat.com> + + * string/bits/string2.h: Unify #if usage. + +2000-09-27 Jakub Jelinek <jakub@redhat.com> + + * math/test-fenv.c (feexcp_mask_test): If enabling all exceptions + and disabling underflow or overflow, disable inexact as well. + 2000-09-26 Andreas Jaeger <aj@suse.de> - * sysdeps/gnu/netinet/tcp.h: Add tcp_info defines and types. + * sysdeps/gnu/netinet/tcp.h: Add tcp_info defines and types. * sysdeps/unix/sysv/linux/sys/mount.h (enum): New flag MS_BIND. diff --git a/linuxthreads/ChangeLog b/linuxthreads/ChangeLog index 4c281da24a..4dce416150 100644 --- a/linuxthreads/ChangeLog +++ b/linuxthreads/ChangeLog @@ -1,3 +1,7 @@ +2000-09-28 Martin Schwidefsksy <schwidefsky@de.ibm.com> + + * sysdeps/s390/pt-machine.h: Make %a0 the thread register. + 2000-09-28 Ulrich Drepper <drepper@redhat.com> * mutex.c (__pthread_mutex_unlock): For PTHREAD_MUTEX_RECURSIVE_NP diff --git a/linuxthreads/sysdeps/s390/pt-machine.h b/linuxthreads/sysdeps/s390/pt-machine.h index 8de4a1a7c4..a006efc20c 100644 --- a/linuxthreads/sysdeps/s390/pt-machine.h +++ b/linuxthreads/sysdeps/s390/pt-machine.h @@ -30,12 +30,13 @@ testandset (int *spinlock) int ret; __asm__ __volatile__( + " la 1,%1\n" " lhi 0,1\n" " l %0,%1\n" - "0: cs %0,0,%1\n" + "0: cs %0,0,0(1)\n" " jl 0b" : "=&d" (ret), "+m" (*spinlock) - : : "0", "cc"); + : : "0", "1", "cc"); return ret; } @@ -46,6 +47,25 @@ testandset (int *spinlock) #define CURRENT_STACK_FRAME stack_pointer register char * stack_pointer __asm__ ("15"); +/* Return the thread descriptor for the current thread. + S/390 registers uses access register 0 as "thread register". */ +#define THREAD_SELF ({ \ + register pthread_descr __self; \ + __asm__ ("ear %0,%%a0" : "=d" (__self) ); \ + __self; \ +}) + +/* Initialize the thread-unique value. */ +#define INIT_THREAD_SELF(descr, nr) ({ \ + __asm__ ("sar %%a0,%0" : : "d" (descr) ); \ +}) + +/* Access to data in the thread descriptor is easy. */ +#define THREAD_GETMEM(descr, member) THREAD_SELF->member +#define THREAD_GETMEM_NC(descr, member) THREAD_SELF->member +#define THREAD_SETMEM(descr, member, value) THREAD_SELF->member = (value) +#define THREAD_SETMEM_NC(descr, member, value) THREAD_SELF->member = (value) + /* Compare-and-swap for semaphores. */ @@ -57,14 +77,15 @@ __compare_and_swap(long int *p, long int oldval, long int newval) int retval; __asm__ __volatile__( + " la 1,%1\n" " lr 0,%2\n" - " cs 0,%3,%1\n" + " cs 0,%3,0(1)\n" " ipm %0\n" " srl %0,28\n" "0:" : "=&d" (retval), "+m" (*p) : "d" (oldval) , "d" (newval) - : "cc", "0"); + : "cc", "0", "1" ); return retval == 0; } diff --git a/localedata/ChangeLog b/localedata/ChangeLog index 454fdbfbee..705414c903 100644 --- a/localedata/ChangeLog +++ b/localedata/ChangeLog @@ -1,3 +1,8 @@ +2000-09-28 Ulrich Drepper <drepper@redhat.com> + + * locales/ar_SA: Last non <Uxxxx> entries removed. + Patch by Martin Strassburger <martin.strassburger@sap.com>. + 2000-09-26 Ulrich Drepper <drepper@redhat.com> * charmaps/KSX1001: Removed. It's not sufficient for a charmap and diff --git a/sysdeps/s390/atomicity.h b/sysdeps/s390/atomicity.h index 0c97f405ef..a5347debab 100644 --- a/sysdeps/s390/atomicity.h +++ b/sysdeps/s390/atomicity.h @@ -61,13 +61,15 @@ compare_and_swap (volatile long int *p, long int oldval, long int newval) int retval; __asm__ __volatile__( - " cs %2,%3,%1\n" + " la 1,%1\n" + " lr 0,%2\n" + " cs 0,%3,0(1)\n" " ipm %0\n" " srl %0,28\n" "0:" : "=&r" (retval), "+m" (*p) : "d" (oldval) , "d" (newval) - : "memory", "cc"); + : "memory", "0", "1", "cc"); return !retval; } diff --git a/sysdeps/unix/sysv/linux/kernel-features.h b/sysdeps/unix/sysv/linux/kernel-features.h index 9639be3fa1..563a7e911e 100644 --- a/sysdeps/unix/sysv/linux/kernel-features.h +++ b/sysdeps/unix/sysv/linux/kernel-features.h @@ -110,15 +110,23 @@ # define __ASSUME_NEW_GETRLIMIT_SYSCALL 1 #endif -/* Linux 2.3.39 introduced 32bit UID/GIDs. Some platforms had 32 bit - type all along. */ +/* Linux 2.3.39 introduced 32bit UID/GIDs and IPC64. Some platforms had 32 + bit type all along. */ #if __LINUX_KERNEL_VERSION >= 131879 || defined __powerpc__ || defined __mips__ # define __ASSUME_32BITUIDS 1 +# ifndef __powerpc__ +# define __ASSUME_IPC64 1 +# endif # ifdef __sparc__ # define __ASSUME_SETRESUID_SYSCALL 1 # endif #endif +/* Linux 2.4.0 on PPC introduced a correct IPC64. */ +#if __LINUX_KERNEL_VERSION >= 132096 && defined __powerpc__ +# define __ASSUME_IPC64 1 +#endif + /* We can use the LDTs for threading with Linux 2.3.99 and newer. */ #if __LINUX_KERNEL_VERSION >= 131939 # define __ASSUME_LDT_WORKS 1 diff --git a/sysdeps/unix/sysv/linux/msgctl.c b/sysdeps/unix/sysv/linux/msgctl.c index fb0ad56c76..7c43e5587b 100644 --- a/sysdeps/unix/sysv/linux/msgctl.c +++ b/sysdeps/unix/sysv/linux/msgctl.c @@ -65,7 +65,7 @@ compat_symbol (libc, __old_msgctl, msgctl, GLIBC_2_0); int __new_msgctl (int msqid, int cmd, struct msqid_ds *buf) { -#if __ASSUME_32BITUIDS > 0 +#if __ASSUME_IPC64 > 0 return INLINE_SYSCALL (ipc, 5, IPCOP_msgctl, msqid, cmd | __IPC_64, 0, CHECK_1 (buf)); #else diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/ipc.h b/sysdeps/unix/sysv/linux/powerpc/bits/ipc.h index 74b3d49111..60c6094dfe 100644 --- a/sysdeps/unix/sysv/linux/powerpc/bits/ipc.h +++ b/sysdeps/unix/sysv/linux/powerpc/bits/ipc.h @@ -48,7 +48,10 @@ struct ipc_perm __uid_t cuid; /* Creator's user ID. */ __gid_t cgid; /* Creator's group ID. */ __mode_t mode; /* Read/write permission. */ - unsigned short int __seq; /* Sequence number. */ + unsigned long int __seq; /* Sequence number. */ + unsigned int __pad1; + unsigned long long int __unused1; + unsigned long long int __unused2; }; diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/msq.h b/sysdeps/unix/sysv/linux/powerpc/bits/msq.h new file mode 100644 index 0000000000..45caff5535 --- /dev/null +++ b/sysdeps/unix/sysv/linux/powerpc/bits/msq.h @@ -0,0 +1,77 @@ +/* Copyright (C) 1995, 1996, 1997, 2000 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 + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#ifndef _SYS_MSG_H +# error "Never use <bits/msq.h> directly; include <sys/msg.h> instead." +#endif + +#include <bits/types.h> + +/* Define options for message queue functions. */ +#define MSG_NOERROR 010000 /* no error if message is too big */ +#ifdef __USE_GNU +# define MSG_EXCEPT 020000 /* recv any msg except of specified type */ +#endif + +/* Types used in the structure definition. */ +typedef unsigned long int msgqnum_t; +typedef unsigned long int msglen_t; + + +/* Structure of record for one message inside the kernel. + The type `struct msg' is opaque. */ +struct msqid_ds +{ + struct ipc_perm msg_perm; /* structure describing operation permission */ + unsigned int __unused1; + __time_t msg_stime; /* time of last msgsnd command */ + unsigned int __unused2; + __time_t msg_rtime; /* time of last msgrcv command */ + unsigned int __unused3; + __time_t msg_ctime; /* time of last change */ + unsigned long __msg_cbytes; /* current number of bytes on queue */ + msgqnum_t msg_qnum; /* number of messages currently on queue */ + msglen_t msg_qbytes; /* max number of bytes allowed on queue */ + __pid_t msg_lspid; /* pid of last msgsnd() */ + __pid_t msg_lrpid; /* pid of last msgrcv() */ + unsigned long __unused4; + unsigned long __unused5; +}; + +#ifdef __USE_MISC + +# define msg_cbytes __msg_cbytes + +/* ipcs ctl commands */ +# define MSG_STAT 11 +# define MSG_INFO 12 + +/* buffer for msgctl calls IPC_INFO, MSG_INFO */ +struct msginfo + { + int msgpool; + int msgmap; + int msgmax; + int msgmnb; + int msgmni; + int msgssz; + int msgtql; + unsigned short int msgseg; + }; + +#endif /* __USE_MISC */ diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/sem.h b/sysdeps/unix/sysv/linux/powerpc/bits/sem.h new file mode 100644 index 0000000000..18a9ff4d6f --- /dev/null +++ b/sysdeps/unix/sysv/linux/powerpc/bits/sem.h @@ -0,0 +1,87 @@ +/* Copyright (C) 1995, 1996, 1997, 1998, 2000 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 + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#ifndef _SYS_SEM_H +# error "Never include <bits/sem.h> directly; use <sys/sem.h> instead." +#endif + +#include <sys/types.h> + +/* Flags for `semop'. */ +#define SEM_UNDO 0x1000 /* undo the operation on exit */ + +/* Commands for `semctl'. */ +#define GETPID 11 /* get sempid */ +#define GETVAL 12 /* get semval */ +#define GETALL 13 /* get all semval's */ +#define GETNCNT 14 /* get semncnt */ +#define GETZCNT 15 /* get semzcnt */ +#define SETVAL 16 /* set semval */ +#define SETALL 17 /* set all semval's */ + + +/* Data structure describing a set of semaphores. */ +struct semid_ds +{ + struct ipc_perm sem_perm; /* operation permission struct */ + unsigned int __unused1; + __time_t sem_otime; /* last semop() time */ + unsigned int __unused2; + __time_t sem_ctime; /* last time changed by semctl() */ + unsigned long int sem_nsems; /* number of semaphores in set */ + unsigned long __unused3; + unsigned long __unused4; +}; + +/* The user should define a union like the following to use it for arguments + for `semctl'. + + union semun + { + int val; <= value for SETVAL + struct semid_ds *buf; <= buffer for IPC_STAT & IPC_SET + unsigned short int *array; <= array for GETALL & SETALL + struct seminfo *__buf; <= buffer for IPC_INFO + }; + + Previous versions of this file used to define this union but this is + incorrect. One can test the macro _SEM_SEMUN_UNDEFINED to see whether + one must define the union or not. */ +#define _SEM_SEMUN_UNDEFINED 1 + +#ifdef __USE_MISC + +/* ipcs ctl cmds */ +# define SEM_STAT 18 +# define SEM_INFO 19 + +struct seminfo +{ + int semmap; + int semmni; + int semmns; + int semmnu; + int semmsl; + int semopm; + int semume; + int semusz; + int semvmx; + int semaem; +}; + +#endif /* __USE_MISC */ diff --git a/sysdeps/unix/sysv/linux/powerpc/bits/shm.h b/sysdeps/unix/sysv/linux/powerpc/bits/shm.h new file mode 100644 index 0000000000..2150023cb1 --- /dev/null +++ b/sysdeps/unix/sysv/linux/powerpc/bits/shm.h @@ -0,0 +1,94 @@ +/* Copyright (C) 1995, 1996, 1997, 2000 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 + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#ifndef _SYS_SHM_H +# error "Never include <bits/shm.h> directly; use <sys/shm.h> instead." +#endif + +#include <bits/types.h> + +/* Permission flag for shmget. */ +#define SHM_R 0400 /* or S_IRUGO from <linux/stat.h> */ +#define SHM_W 0200 /* or S_IWUGO from <linux/stat.h> */ + +/* Flags for `shmat'. */ +#define SHM_RDONLY 010000 /* attach read-only else read-write */ +#define SHM_RND 020000 /* round attach address to SHMLBA */ +#define SHM_REMAP 040000 /* take-over region on attach */ + +/* Commands for `shmctl'. */ +#define SHM_LOCK 11 /* lock segment (root only) */ +#define SHM_UNLOCK 12 /* unlock segment (root only) */ |
