Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 50 lignes de commande et 1472 man disponibles
login as: root
root@213.186.33.18's password:
Last login: Sat Feb 11 11:37:29 2012 from 38.107.179.228
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Ftok en anglais

FTOK(3) Linux Programmer's Manual FTOK(3)
 
NAME


ftok - convert a pathname and a project identifier to a System V IPC key
 
SYNOPSIS


#include #include key_t ftok(const char *pathname, int proj_id);
 
DESCRIPTION


The ftok() function uses the identity of the file named by the given pathname (which must refer to an existing, accessible file) and the least significant 8 bits of proj_id (which must be non-zero) to gener- ate a key_t type System V IPC key, suitable for use with msgget(2), semget(2), or shmget(2). The resulting value is the same for all pathnames that name the same file, when the same value of proj_id is used. The value returned should be different when the (simultaneously existing) files or the project IDs differ.
 
RETURN VALUE


On success the generated key_t value is returned. On failure -1 is returned, with errno indicating the error as for the stat(2) system call.
 
CONFORMING TO


POSIX.1-2001.
 
NOTES


Under libc4 and libc5 (and under SunOS 4.x) the prototype was: key_t ftok(char *pathname, char proj_id); Today proj_id is an int, but still only 8 bits are used. Typical usage has an ASCII character proj_id, that is why the behavior is said to be undefined when proj_id is zero. Of course no guarantee can be given that the resulting key_t is unique. Typically, a best effort attempt combines the given proj_id byte, the lower 16 bits of the inode number, and the lower 8 bits of the device number into a 32-bit result. Collisions may easily happen, for example between files on /dev/hda1 and files on /dev/sda1.
 
SEE ALSO


msgget(2), semget(2), shmget(2), stat(2), svipc(7)
 
COLOPHON


This page is part of release 3.05 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU 2001-11-28 FTOK(3)


 Dernières recherches
Man  en anglais Man ftok en anglaisMan  en français Man ftok en français
Man  en anglais Man echo en anglaisMan  en français Man echo en français
Man  en anglais Man head en anglaisMan  en français Man head en français
Man  en anglais Man exit en anglaisMan  en français Man exit en français
Man  en anglais Man gcvt en anglaisMan  en français Man gcvt en français
Man  en anglais Man atol en anglaisMan  en français Man atol en français
Man  en anglais Man kill en anglaisMan  en français Man kill en français
Man  en anglais Man uucp en anglaisMan  en français Man uucp en français
Man  en anglais Man utmp en anglaisMan  en français Man utmp en français
Man  en anglais Man less en anglaisMan  en français Man less en français
Man  en anglais Man recv en anglaisMan  en français Man recv en français
Man  en anglais Man lsof en anglaisMan  en français Man lsof en français
Man  en anglais Man fsck en anglaisMan  en français Man fsck en français
Man  en anglais Man clog en anglaisMan  en français Man clog en français
Man  en anglais Man znew en anglaisMan  en français Man znew en français

 Recherche

Dans ce moteur de recherche, vous pouvez taper directement votre besoin, en une phrase normale, humaine.
Exemple : vous cherchez comment remplacer un mot par un autre dans tous les fichiers d'un certain dossier. Vous pouvez écrire "Comment remplacer un mot par un autre dans tous les fichiers d'un dossier". Le moteur vous ramenera les résultats en fonction de leur pertinence.
Vous pouvez bien sûr ne chercher qu'un seul mot-clé, par exemple "find".
 Toutes les lignes de code
Par popularité
Par fonction
Recherche avancée
 Les logiciels SHELL/SSH
Putty
Astuces Bash
Faire du SHELL avec PHP!
 La doc officielle
Les man Linux en français
Les man Linux en anglais
 Proposer vos bash
Partagez vos lignes!
 Les requêtes
Déposer une requête
Voir/répondre à une requête
 Quelques sites interessants
Bons sites pour apprendre
 Rechercher