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: Wed May 30 7:47:10 2012 from 38.107.179.226
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Setservent 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 setservent en anglaisMan  en français Man setservent en français
Man  en anglais Man setresgid en anglaisMan  en français Man setresgid en français
Man  en anglais Man setpwent en anglaisMan  en français Man setpwent en français
Man  en anglais Man setpgrp en anglaisMan  en français Man setpgrp en français
Man  en anglais Man setleds en anglaisMan  en français Man setleds en français
Man  en anglais Man setkeycodes en anglaisMan  en français Man setkeycodes en français
Man  en anglais Man setkey en anglaisMan  en français Man setkey en français
Man  en anglais Man setjmp en anglaisMan  en français Man setjmp en français
Man  en anglais Man sethostid en anglaisMan  en français Man sethostid en français
Man  en anglais Man setgroups en anglaisMan  en français Man setgroups en français
Man  en anglais Man setcontext en anglaisMan  en français Man setcontext en français
Man  en anglais Man setbuffer en anglaisMan  en français Man setbuffer en français
Man  en anglais Man setbuf en anglaisMan  en français Man setbuf en français
Man  en anglais Man set en anglaisMan  en français Man set en français
Man  en anglais Man sess_id en anglaisMan  en français Man sess_id 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