summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-06-03 10:42:30 +0000
committerjoerg <joerg@FreeBSD.org>1996-06-03 10:42:30 +0000
commitc4eedb196e2d6cae5cd821d1d150fed8e587e97e (patch)
tree29270ac68b0cd4c7f0a7c13551c134a0fd85ab06
parenta320139a358eb9ba4b3ffb6f795b81e7294099ec (diff)
downloadFreeBSD-src-c4eedb196e2d6cae5cd821d1d150fed8e587e97e.zip
FreeBSD-src-c4eedb196e2d6cae5cd821d1d150fed8e587e97e.tar.gz
Add a prototype for ftok(). Doesn't really belong into a <sys/...>
file, but this used to be historical practice. Submitted by: fhackers@jraynard.demon.co.uk (James Raynard)
-rw-r--r--sys/sys/ipc.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/sys/sys/ipc.h b/sys/sys/ipc.h
index 4d152f4..ffab6bd 100644
--- a/sys/sys/ipc.h
+++ b/sys/sys/ipc.h
@@ -41,7 +41,7 @@
* SUCH DAMAGE.
*
* @(#)ipc.h 8.4 (Berkeley) 2/19/95
- * $Id: ipc.h,v 1.7 1996/02/24 06:08:46 hsu Exp $
+ * $Id: ipc.h,v 1.7 1996/03/11 02:08:16 hsu Exp $
*/
/*
@@ -83,6 +83,18 @@ struct ipc_perm {
#define IXSEQ_TO_IPCID(ix,perm) (((perm.seq) << 16) | (ix & 0xffff))
int ipcperm __P((struct ucred *,struct ipc_perm *,int));
+#else /* ! KERNEL */
+
+/* XXX doesn't really belong here, but has been historical practice in SysV. */
+
+#ifndef _POSIX_SOURCE
+#include <sys/cdefs.h>
+
+__BEGIN_DECLS
+key_t ftok __P((const char *, int));
+__END_DECLS
+#endif /* ! POSIX */
+
#endif /* KERNEL */
#endif /* !_SYS_IPC_H_ */
OpenPOWER on IntegriCloud