Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/linux/shm_unlink.c')
-rw-r--r--newlib/libc/sys/linux/shm_unlink.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/newlib/libc/sys/linux/shm_unlink.c b/newlib/libc/sys/linux/shm_unlink.c
deleted file mode 100644
index cf259c627..000000000
--- a/newlib/libc/sys/linux/shm_unlink.c
+++ /dev/null
@@ -1,28 +0,0 @@
-/* shm_unlink - remove a shared memory file */
-
-/* Copyright 2002, Red Hat Inc. */
-
-#include <sys/types.h>
-#include <sys/mman.h>
-#include <unistd.h>
-#include <string.h>
-#include <limits.h>
-
-int
-shm_unlink (const char *name)
-{
- int rc;
- char shm_name[PATH_MAX+20] = "/dev/shm/";
-
- /* skip opening slash */
- if (*name == '/')
- ++name;
-
- /* create special shared memory file name and leave enough space to
- cause a path/name error if name is too long */
- strlcpy (shm_name + 9, name, PATH_MAX + 10);
-
- rc = unlink (shm_name);
-
- return rc;
-}