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: Sun Feb 12 8:15:34 2012 from 38.107.179.227
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Atexit en anglais

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


atexit - register a function to be called at normal process termination
 
SYNOPSIS


#include int atexit(void (*function)(void));
 
DESCRIPTION


The atexit() function registers the given function to be called at nor- mal process termination, either via exit(3) or via return from the pro- gram's main(). Functions so registered are called in the reverse order of their registration; no arguments are passed. POSIX.1-2001 requires that an implementation allow at least ATEXIT_MAX (32) such functions to be registered. The actual limit supported by an implementation can be obtained using sysconf(3). When a child process is created via fork(2), it inherits copies of its parent's registrations. Upon a successful call to one of the exec(3) functions, all registrations are removed.
 
RETURN VALUE


The atexit() function returns the value 0 if successful; otherwise it returns a non-zero value.
 
CONFORMING TO


SVr4, 4.3BSD, C89, C99, POSIX.1-2001.
 
NOTES


Functions registered using atexit() (and on_exit(3)) are not called if a process terminates abnormally because of the delivery of a signal. Linux Notes Since glibc 2.2.3, atexit() (and on_exit(3)) can be used within a shared library to establish functions that are called when the shared library is unloaded.
 
EXAMPLE


#include #include #include void bye(void) { printf("That was all, folks\n"); } int main(void) { long a; int i; a = sysconf(_SC_ATEXIT_MAX); printf("ATEXIT_MAX = %ld\n", a); i = atexit(bye); if (i != 0) { fprintf(stderr, "cannot set exit function\n"); exit(EXIT_FAILURE); } exit(EXIT_SUCCESS); }
 
SEE ALSO


_exit(2), exit(3), on_exit(3)
 
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/. Linux 2003-11-01 ATEXIT(3)


 Dernières recherches
Man  en anglais Man atexit en anglaisMan  en français Man atexit en français
Man  en anglais Man lockf en anglaisMan  en français Man lockf en français
Man  en anglais Man msync en anglaisMan  en français Man msync en français
Man  en anglais Man hosts en anglaisMan  en français Man hosts en français
Man  en anglais Man intro en anglaisMan  en français Man intro en français
Man  en anglais Man epoll en anglaisMan  en français Man epoll en français
Man  en anglais Man nroff en anglaisMan  en français Man nroff en français
Man  en anglais Man umask en anglaisMan  en français Man umask en français
Man  en anglais Man ipcrm en anglaisMan  en français Man ipcrm en français
Man  en anglais Man groff en anglaisMan  en français Man groff en français
Man  en anglais Man write en anglaisMan  en français Man write en français
Man  en anglais Man rexec en anglaisMan  en français Man rexec en français
Man  en anglais Man mlock en anglaisMan  en français Man mlock en français
Man  en anglais Man getpt en anglaisMan  en français Man getpt en français
Man  en anglais Man login en anglaisMan  en français Man login 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