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)
This commit is contained in:
Joerg Wunsch 1996-06-03 10:42:30 +00:00
parent d6c9f122c8
commit 2fdaa11e37
1 changed files with 13 additions and 1 deletions

View File

@ -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_ */