Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Apr 95 16:12:12 MDT
From: (Terry Lambert)
To: (Ron Steele)
Subject:   Re: HP ftok() equivalent
Message-ID:  <>
In-Reply-To: <> 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
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: <>