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: Mon May 28 21:44:18 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 Getprotobyname en anglais

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


getprotoent, getprotobyname, getprotobynumber, setprotoent, endprotoent - get protocol entry
 
SYNOPSIS


#include struct protoent *getprotoent(void); struct protoent *getprotobyname(const char *name); struct protoent *getprotobynumber(int proto); void setprotoent(int stayopen); void endprotoent(void);
 
DESCRIPTION


The getprotoent() function reads the next line from the file /etc/pro- tocols and returns a structure protoent containing the broken out fields from the line. The /etc/protocols file is opened if necessary. The getprotobyname() function returns a protoent structure for the line from /etc/protocols that matches the protocol name name. The getprotobynumber() function returns a protoent structure for the line that matches the protocol number number. The setprotoent() function opens and rewinds the /etc/protocols file. If stayopen is true (1), then the file will not be closed between calls to getprotobyname() or getprotobynumber(). The endprotoent() function closes /etc/protocols. The protoent structure is defined in as follows: struct protoent { char *p_name; /* official protocol name */ char **p_aliases; /* alias list */ int p_proto; /* protocol number */ } The members of the protoent structure are: p_name The official name of the protocol. p_aliases A zero terminated list of alternative names for the protocol. p_proto The protocol number.
 
RETURN VALUE


The getprotoent(), getprotobyname() and getprotobynumber() functions return the protoent structure, or a NULL pointer if an error occurs or the end of the file is reached.
 
FILES


/etc/protocols protocol database file
 
CONFORMING TO


4.3BSD, POSIX.1-2001.
 
SEE ALSO


getnetent(3), getservent(3), protocols(5)
 
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 1993-04-24 GETPROTOENT(3)


 Dernières recherches
Man  en anglais Man getprotobyname en anglaisMan  en français Man getprotobyname en français
Man  en anglais Man getpmsg en anglaisMan  en français Man getpmsg en français
Man  en anglais Man getpgrp en anglaisMan  en français Man getpgrp en français
Man  en anglais Man getpgid en anglaisMan  en français Man getpgid en français
Man  en anglais Man getpeername en anglaisMan  en français Man getpeername en français
Man  en anglais Man getpass en anglaisMan  en français Man getpass en français
Man  en anglais Man getopt en anglaisMan  en français Man getopt en français
Man  en anglais Man getnetbyname en anglaisMan  en français Man getnetbyname en français
Man  en anglais Man getnetbyaddr en anglaisMan  en français Man getnetbyaddr en français
Man  en anglais Man getnameinfo en anglaisMan  en français Man getnameinfo en français
Man  en anglais Man getmsg en anglaisMan  en français Man getmsg en français
Man  en anglais Man getlogin en anglaisMan  en français Man getlogin en français
Man  en anglais Man getkeycodes en anglaisMan  en français Man getkeycodes en français
Man  en anglais Man getipnodebyname en anglaisMan  en français Man getipnodebyname en français
Man  en anglais Man getipnodebyaddr en anglaisMan  en français Man getipnodebyaddr 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