Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 95 16:12:12 MDT
From:      terry@cs.weber.edu (Terry Lambert)
To:        rjs@clark.net (Ron Steele)
Cc:        freebsd-questions@freefall.cdrom.com
Subject:   Re: HP ftok() equivalent
Message-ID:  <9504212212.AA05401@cs.weber.edu>
In-Reply-To: <Pine.3.87.9504211744.B4692-0100000@critter.clark.net> from "Ron Steele" at Apr 21, 95 05:07:44 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> I am porting some software from HP-UX to FreeBSD.  The HP application
> uses a function called ftok() to generate a unique interger based
> on a file path.  This number is used to generate a key for message queues,
> thus allowing processes that know this file name to communicate.
> 
> I can't seem to find this function in FreeBSD, is there something
> simular available?

Try adding -lcompat.

ftok() is a trivial combination of stat information from the file in
question (see the HP or Sun man page about how to write your own).


					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9504212212.AA05401>