1 --- ftok.3.bsdnew 2009-11-08 14:20:21.000000000 -0800
2 +++ ftok.3 2009-11-08 14:23:16.000000000 -0800
10 .Fn ftok "const char *path" "int id"
14 function attempts to create a unique key suitable for use with the
23 of an existing file and a user-selectable
25 @@ -63,10 +61,17 @@ The
26 function will return -1 if
28 does not exist or if it cannot be accessed by the calling process.
30 +.Fd #include <sys/types.h>
31 +.Fd #include <sys/ipc.h>
44 @@ -75,9 +80,9 @@ that use the System V IPC routines.
46 .An Thorsten Lockert Aq tholo@sigmasoft.com
48 -The returned key is computed based on the device minor number and inode of the
51 +The returned key is computed based on the device minor number and inode
54 in combination with the lower 8 bits of the given
56 -Thus it is quite possible for the routine to return duplicate keys.
57 +Thus, it is quite possible for the routine to return duplicate keys.