From: Roland McGrath Date: Sun, 24 Mar 2002 02:07:34 +0000 (+0000) Subject: 2002-03-23 Roland McGrath X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7b673eb55ef6b11396e089cc9baf0025a067c4c4;p=thirdparty%2Fglibc.git 2002-03-23 Roland McGrath * sysdeps/posix/shm_open.c (SHMDIR): /var/run/shm -> /dev/shm * sysdeps/posix/shm_unlink.c: Likewise. --- diff --git a/sysdeps/posix/shm_open.c b/sysdeps/posix/shm_open.c index eab5ee342e1..b773d40db03 100644 --- a/sysdeps/posix/shm_open.c +++ b/sysdeps/posix/shm_open.c @@ -1,5 +1,5 @@ /* shm_open -- open a POSIX shared memory object. Generic POSIX file version. - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001,02 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,7 +31,7 @@ #include #include -#define SHMDIR (_PATH_VARRUN "shm/") +#define SHMDIR (_PATH_DEV "shm/") /* Open shared memory object. */ int diff --git a/sysdeps/posix/shm_unlink.c b/sysdeps/posix/shm_unlink.c index 79f6751ebd7..b67240f8386 100644 --- a/sysdeps/posix/shm_unlink.c +++ b/sysdeps/posix/shm_unlink.c @@ -1,5 +1,5 @@ /* shm_unlink -- remove a POSIX shared memory object. Generic POSIX version. - Copyright (C) 2001 Free Software Foundation, Inc. + Copyright (C) 2001,02 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 @@ -30,7 +30,7 @@ #include #include -#define SHMDIR (_PATH_VARRUN "shm/") +#define SHMDIR (_PATH_DEV "shm/") /* Remove shared memory object. */ int @@ -55,7 +55,6 @@ shm_unlink (const char *name) __mempcpy (__mempcpy (fname, SHMDIR, sizeof SHMDIR - 1), name, namelen + 1); - return unlink (name); }