SYNOPSIS
#include <sys/ipc.h>
key_t ftok(const char *path, int id);
DESCRIPTION
The
PARAMETERS
- path
-
Points to a path upon which part of the key is formed.
- id
-
Is the character upon which part of the key is formed.
RETURN VALUES
If successful,
- EACCES
-
Search permission is denied for a component of the path prefix.
- ENAMETOOLONG
-
The length of the path argument exceeds PATH_MAX or a path name component is longer than NAME_MAX.
- ENOENT
-
A component of path does not name an existing file or path is an empty string.
- ENOTDIR
-
A component of the path prefix is not a directory.
CONFORMANCE
UNIX 98 with exceptions.
MULTITHREAD SAFETY LEVEL
MT-Safe.
PORTING ISSUES
Keys are only guaranteed to be unique for files on locally-mounted NTFS file systems.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.4 Documentation Build 39.