References for shmat services

This section includes the following subroutine references:

The ftok() subroutine

Generates a standard interprocess communication key.

Library

Standard C library (libc.a)

Syntax
#include <sys/types.h>
#include <sys/ipc.h>

key_t ftok(Path, ID)
char *Path;
int ID;
Description

The ftok() subroutine returns a key, based on the Path and ID parameters, to be used to obtain interprocess communication identifiers. The ftok() subroutine returns the same key for linked files if called with the same ID parameter. Different keys are returned for ...

Get Developing and Porting C and C++ Applications on AIX now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.