summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/libc/gen/shm_open.c3
-rw-r--r--lib/libc/hidden/sys/mman.h8
2 files changed, 6 insertions, 5 deletions
diff --git a/lib/libc/gen/shm_open.c b/lib/libc/gen/shm_open.c
index 002ffcfb57a..59aca4b10a8 100644
--- a/lib/libc/gen/shm_open.c
+++ b/lib/libc/gen/shm_open.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: shm_open.c,v 1.6 2015/08/31 02:53:57 guenther Exp $ */
+/* $OpenBSD: shm_open.c,v 1.7 2015/09/12 15:01:33 guenther Exp $ */
/*
* Copyright (c) 2013 Ted Unangst <tedu@openbsd.org>
*
@@ -76,6 +76,7 @@ shm_open(const char *path, int flags, mode_t mode)
}
return fd;
}
+DEF_WEAK(shm_open);
int
shm_unlink(const char *path)
diff --git a/lib/libc/hidden/sys/mman.h b/lib/libc/hidden/sys/mman.h
index cf447a41d75..b01a4a9deff 100644
--- a/lib/libc/hidden/sys/mman.h
+++ b/lib/libc/hidden/sys/mman.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mman.h,v 1.1 2015/09/11 13:26:20 guenther Exp $ */
+/* $OpenBSD: mman.h,v 1.2 2015/09/12 15:01:33 guenther Exp $ */
/*
* Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
*
@@ -33,8 +33,8 @@ PROTO_NORMAL(munlock);
PROTO_NORMAL(munlockall);
PROTO_NORMAL(munmap);
PROTO_DEPRECATED(posix_madvise);
-/*PROTO_NORMAL(shm_mkstemp); */
-/*PROTO_NORMAL(shm_open); */
-/*PROTO_NORMAL(shm_unlink); */
+PROTO_DEPRECATED(shm_mkstemp);
+PROTO_NORMAL(shm_open);
+PROTO_DEPRECATED(shm_unlink);
#endif /* _LIBC_SYS_MMAN_H_ */