![]() |
![]()
| ![]() |
![]()
NAMEftok - calculate System V IPC keys using the ftok(3) library function SYNOPSISftok [ OPTION ] FILENAME ID DESCRIPTIONCalculate a System V IPC key from the given FILENAME and ID using the ftok(3) library function, and print the result to standard output. If not otherwise specified, the key is printed in hexadecimal format, with a 0x prefix.
If shmcat has been compiled without getopt_long(3) support, only the short, one character OPTIONs can be used. Otherwise the long ones are also available. OPTIONS
EXIT CODES
CAVEATSThe ftok(1) utility has the same limitations as the ftok(3) library function. That means, there is no guarantee that the resulting key is unique. On Linux, passing 0 as the ID (second parameter) to the ftok(3) function seems to work, but this behavior is unspecified. The ftok(1) tool accepts 0 as an ID and leaves it to the library implementation on what to do with that. AUTHORStefan Gast SEE ALSOipcs(1), shmcat(1), ftok(3)
|