summaryrefslogtreecommitdiffstats
path: root/lib/libcompat
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1996-06-03 10:40:39 +0000
committerjoerg <joerg@FreeBSD.org>1996-06-03 10:40:39 +0000
commita320139a358eb9ba4b3ffb6f795b81e7294099ec (patch)
tree06e0e7341e6d2ba361e1423e017f60b19f8128d2 /lib/libcompat
parentef88bf5901b83d1e5895608bb16a96ba3da25e9a (diff)
downloadFreeBSD-src-a320139a358eb9ba4b3ffb6f795b81e7294099ec.zip
FreeBSD-src-a320139a358eb9ba4b3ffb6f795b81e7294099ec.tar.gz
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.
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 ed6b954..4b900ec 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.
OpenPOWER on IntegriCloud