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: Thu May 24 21:12:19 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 Alloca en anglais

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


alloca - allocate memory that is automatically freed
 
SYNOPSIS


#include void *alloca(size_t size);
 
DESCRIPTION


The alloca() function allocates size bytes of space in the stack frame of the caller. This temporary space is automatically freed when the function that called alloca() returns to its caller.
 
RETURN VALUE


The alloca() function returns a pointer to the beginning of the allo- cated space. If the allocation causes stack overflow, program behavior is undefined.
 
CONFORMING TO


This function is not in POSIX.1-2001. There is evidence that the alloca() function appeared in 32V, PWB, PWB.2, 3BSD, and 4BSD. There is a man page for it in 4.3BSD. Linux uses the GNU version.
 
NOTES


The alloca() function is machine- and compiler-dependent. For certain applications, its use can improve efficiency compared to the use of malloc(3) plus free(3). In certain cases, it can also simplify memory deallocation in applications that use longjmp(3) or siglongjmp(3). Otherwise, its use is discouraged. Because the space allocated by alloca() is allocated within the stack frame, that space is automatically freed if the function return is jumped over by a call to longjmp(3) or siglongjmp(3). Do not attempt to free(3) space allocated by alloca()! Notes on the GNU Version Normally, gcc(1) translates calls to alloca() with inlined code. This is not done when either the -ansi, -std=c89, -std=c99, or the -fno-builtin option is given (and the header is not included). But beware! By default the glibc version of includes and that contains the line: #define alloca(size) __builtin_alloca (size) with messy consequences if one has a private version of this function. The fact that the code is inlined means that it is impossible to take the address of this function, or to change its behavior by linking with a different library. The inlined code often consists of a single instruction adjusting the stack pointer, and does not check for stack overflow. Thus, there is no NULL error return.
 
BUGS


There is no error indication if the stack frame cannot be extended. (However, after a failed allocation, the program is likely to receive a SIGSEGV signal if it attempts to access the unallocated space.) On many systems alloca() cannot be used inside the list of arguments of a function call, because the stack space reserved by alloca() would appear on the stack in the middle of the space for the function argu- ments.
 
SEE ALSO


brk(2), longjmp(3), malloc(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/. GNU 2008-01-24 ALLOCA(3)


 Dernières recherches
Man  en anglais Man alloca en anglaisMan  en français Man alloca en français
Man  en anglais Man insmod en anglaisMan  en français Man insmod en français
Man  en anglais Man generic en anglaisMan  en français Man generic en français
Man  en anglais Man random en anglaisMan  en français Man random en français
Man  en anglais Man execlp en anglaisMan  en français Man execlp en français
Man  en anglais Man aliases en anglaisMan  en français Man aliases en français
Man  en anglais Man ioctl en anglaisMan  en français Man ioctl en français
Man  en anglais Man alias en anglaisMan  en français Man alias en français
Man  en anglais Man getnetent en anglaisMan  en français Man getnetent en français
Man  en anglais Man openlog en anglaisMan  en français Man openlog en français
Man  en anglais Man aio_write en anglaisMan  en français Man aio_write en français
Man  en anglais Man aio_suspend en anglaisMan  en français Man aio_suspend en français
Man  en anglais Man aio_return en anglaisMan  en français Man aio_return en français
Man  en anglais Man aio_fsync en anglaisMan  en français Man aio_fsync en français
Man  en anglais Man epoll_wait en anglaisMan  en français Man epoll_wait 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