GETUSERSHELL

Section: Manuel du programmeur Linux (3)
Updated: 3 Novembre 1996
Index Retour au Menu Principal

 

NOM

getusershell, setusershell, endusershell - Obtenir la liste des shells utilisables.  

SYNOPSIS

#include <unistd.h>

char *getusershell (void);

void setusershell (void);

void endusershell (void);
 

DESCRIPTION

La fonction getusershell() renvoie la ligne suivante de /etc/shells, en ouvrant le fichier si besoin est. Cette ligne doit contenir le chemin d'accès à un shell utilisateur valide. Si /etc/shells n'existe pas, ou n'est pas lisible, getusershell() se comporte comme si /bin/sh et /bin/csh étaient indiqués dans le fichier.

La fonction setusershell() ramène le pointeur au début du fichier /etc/shells.

La fonction endusershell() ferme le fichier /etc/shells.  

VALEUR RENVOYÉE

La getusershell() renvoie un pointeur NULL si la fin du fichier est atteinte.  

FICHIERS

/etc/shells
 

CONFORMITÉ

BSD 4.3  

VOIR AUSSI

shells(5)

 

TRADUCTION

Christophe Blaess, 1997.



 

Index

NOM
SYNOPSIS
DESCRIPTION
VALEUR RENVOYÉE
FICHIERS
CONFORMITÉ
VOIR AUSSI
TRADUCTION


Time: 22:30:02 GMT, December 19, 2004