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 Feb 13 0:27:28 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 Endservent en anglais

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


getservent, getservbyname, getservbyport, setservent, endservent - get service entry
 
SYNOPSIS


#include struct servent *getservent(void); struct servent *getservbyname(const char *name, const char *proto); struct servent *getservbyport(int port, const char *proto); void setservent(int stayopen); void endservent(void);
 
DESCRIPTION


The getservent() function reads the next line from the file /etc/ser- vices and returns a structure servent containing the broken out fields from the line. The /etc/services file is opened if necessary. The getservbyname() function returns a servent structure for the line from /etc/services that matches the service name using protocol proto. If proto is NULL, any protocol will be matched. The getservbyport() function returns a servent structure for the line that matches the port port given in network byte order using protocol proto. If proto is NULL, any protocol will be matched. The setservent() function opens and rewinds the /etc/services file. If stayopen is true (1), then the file will not be closed between calls to getservbyname() and getservbyport(). The endservent() function closes /etc/services. The servent structure is defined in as follows: struct servent { char *s_name; /* official service name */ char **s_aliases; /* alias list */ int s_port; /* port number */ char *s_proto; /* protocol to use */ } The members of the servent structure are: s_name The official name of the service. s_aliases A zero terminated list of alternative names for the service. s_port The port number for the service given in network byte order. s_proto The name of the protocol to use with this service.
 
RETURN VALUE


The getservent(), getservbyname() and getservbyport() functions return the servent structure, or a NULL pointer if an error occurs or the end of the file is reached.
 
FILES


/etc/services services database file
 
CONFORMING TO


4.3BSD, POSIX.1-2001.
 
SEE ALSO


getnetent(3), getprotoent(3), services(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 2001-07-25 GETSERVENT(3)


 Dernières recherches
Man  en anglais Man endservent en anglaisMan  en français Man endservent en français
Man  en anglais Man socketpair en anglaisMan  en français Man socketpair en français
Man  en anglais Man getnetent en anglaisMan  en français Man getnetent en français
Man  en anglais Man standards en anglaisMan  en français Man standards en français
Man  en anglais Man getmntent en anglaisMan  en français Man getmntent en français
Man  en anglais Man setlocale en anglaisMan  en français Man setlocale en français
Man  en anglais Man epoll_ctl en anglaisMan  en français Man epoll_ctl en français
Man  en anglais Man setresuid en anglaisMan  en français Man setresuid en français
Man  en anglais Man mq_notify en anglaisMan  en français Man mq_notify en français
Man  en anglais Man nanosleep en anglaisMan  en français Man nanosleep en français
Man  en anglais Man fpathconf en anglaisMan  en français Man fpathconf en français
Man  en anglais Man inet_aton en anglaisMan  en français Man inet_aton en français
Man  en anglais Man ftp en anglaisMan  en français Man ftp en français
Man  en anglais Man strsignal en anglaisMan  en français Man strsignal en français
Man  en anglais Man bootparam en anglaisMan  en français Man bootparam 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