clinuxipcsysv-ipc

Meaning of pathname "." using ftok()


I came across the following program to implement a shared memory IPC between a client and a server.

The following line is used to generate a unique sysv key (as mentioned here):

ShmKEY = ftok(".", 'x');

What does a pathname "." mean in this case? I am completely new to linux and a clear-cut answer will be much appreciated.


Solution

  • Pathname "." means the current directory. You can find more details of function here Or executing command man ftok in your Linux machine.