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

Indiquez la fonction :

Man Getservbyname 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 getservbyname en anglaisMan  en français Man getservbyname en français
Man  en anglais Man gets en anglaisMan  en français Man gets en français
Man  en anglais Man getrpcent en anglaisMan  en français Man getrpcent en français
Man  en anglais Man getresuid en anglaisMan  en français Man getresuid en français
Man  en anglais Man getresgid en anglaisMan  en français Man getresgid en français
Man  en anglais Man getpwuid_r en anglaisMan  en français Man getpwuid_r en français
Man  en anglais Man getpwuid en anglaisMan  en français Man getpwuid en français
Man  en anglais Man getpwnam_r en anglaisMan  en français Man getpwnam_r en français
Man  en anglais Man getpwnam en anglaisMan  en français Man getpwnam en français
Man  en anglais Man getpwent_r en anglaisMan  en français Man getpwent_r en français
Man  en anglais Man getpwent en anglaisMan  en français Man getpwent en français
Man  en anglais Man getpw en anglaisMan  en français Man getpw en français
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

 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