diff options
Diffstat (limited to 'lib/libc/gen/shmdt.c')
-rw-r--r-- | lib/libc/gen/shmdt.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/libc/gen/shmdt.c b/lib/libc/gen/shmdt.c new file mode 100644 index 0000000..fde6078 --- /dev/null +++ b/lib/libc/gen/shmdt.c @@ -0,0 +1,17 @@ +#if defined(LIBC_SCCS) && !defined(lint) +static char *rcsid = "$Id: shmdt.c,v 1.2 1993/10/10 12:01:29 rgrimes Exp $"; +#endif /* LIBC_SCCS and not lint */ + +#include <sys/types.h> +#include <sys/ipc.h> +#include <sys/shm.h> + +#if __STDC__ +int shmdt(void *shmaddr) +#else +int shmdt(shmaddr) + void *shmaddr; +#endif +{ + return (shmsys(2, shmaddr)); +} |