aboutsummaryrefslogtreecommitdiff
path: root/lib/libcompat
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1996-06-03 10:40:39 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1996-06-03 10:40:39 +0000
commitd6c9f122c874d5566b87e031a22fb834a1690a8d (patch)
tree06e0e7341e6d2ba361e1423e017f60b19f8128d2 /lib/libcompat
parent916485f4dffa7a7f88aa5dbf9d64ad72b379bf16 (diff)
downloadsrc-d6c9f122c874d5566b87e031a22fb834a1690a8d.tar.gz
src-d6c9f122c874d5566b87e031a22fb834a1690a8d.zip
Minor corrections. The second parameter is actually of type int
(though only char will be used), and our implementation is not really worse than the SysV one, so there's no need to claim so in the BUGS section.
Notes
Notes: svn path=/head/; revision=16091
Diffstat (limited to 'lib/libcompat')
-rw-r--r--lib/libcompat/SysV/ftok.315
1 files changed, 6 insertions, 9 deletions
diff --git a/lib/libcompat/SysV/ftok.3 b/lib/libcompat/SysV/ftok.3
index ed6b95426fd5..4b900ece0acc 100644
--- a/lib/libcompat/SysV/ftok.3
+++ b/lib/libcompat/SysV/ftok.3
@@ -23,7 +23,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
.\" ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.\" $Id: ftok.3,v 1.2 1996/01/30 18:12:32 mpp Exp $
+.\" $Id: ftok.3,v 1.3 1996/02/12 07:06:23 mpp Exp $
.Dd June 24, 1994
.Os
.Dt ftok 3
@@ -34,7 +34,7 @@
.Fd #include <sys/types.h>
.Fd #include <sys/ipc.h>
.Ft key_t
-.Fn ftok "const char *path" "char id" ;
+.Fn ftok "const char *path" "int id" ;
.Sh DESCRIPTION
.Bf -symbolic
This function is available from the compatibility library, libcompat.
@@ -70,19 +70,16 @@ does not exist or if it cannot be accessed by the calling process.
.Sh HISTORY
The
.Fn ftok
-function originate with System V and is typically used by programs
+function originates with System V and is typically used by programs
that use the System V IPC routines.
.Sh AUTHOR
.Bl -tag
Thorsten Lockert <tholo@sigmasoft.com>
.El
.Sh BUGS
-The returned key is computed based on the device and inode of the
+The returned key is computed based on the device minor number and inode of the
specified
.Fa path
-in combination with the given
+in combination with the lower 8 bits of the given
.Fa id .
-Thus is is quite possible for the routine to return duplicate keys
-given that those fields are not 8- and 16-bit quantities like they
-were on System V based systems where this library routine's ancestor
-were originally created.
+Thus is is quite possible for the routine to return duplicate keys.