*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Linux man pages -> getusershell (3)              
Title
Content
Arch
Section
 

GETUSERSHELL(3)

Contents


NAME    [Toc]    [Back]

       getusershell, setusershell, endusershell - get legal user shells

SYNOPSIS    [Toc]    [Back]

       #include <unistd.h>

       char *getusershell(void);

       void setusershell(void);

       void endusershell(void);

DESCRIPTION    [Toc]    [Back]

       The  getusershell()  function  returns  the  next  line	from  the file
       /etc/shells, opening the file if necessary.  The  line  should  contain
       the  pathname  of a valid user shell.  If /etc/shells does not exist or
       is unreadable, getusershell() behaves as if  /bin/sh and /bin/csh  were
       listed in the file.

       The setusershell() function rewinds /etc/shells.

       The endusershell() function closes /etc/shells.

RETURN VALUE    [Toc]    [Back]

       The getusershell() function returns a NULL pointer on end-of-file.

FILES    [Toc]    [Back]

       /etc/shells

CONFORMING TO    [Toc]    [Back]

       BSD 4.3

SEE ALSO    [Toc]    [Back]

      
      
       shells(5)



BSD				  1993-07-04		       GETUSERSHELL(3)
[ Back ]
 Similar pages
Name OS Title
endusershell_r Tru64 Get the names of legal user shells
endusershell Tru64 Get the names of legal user shells
getusershell_r Tru64 Get the names of legal user shells
getusershell Tru64 Get the names of legal user shells
setusershell_r Tru64 Get the names of legal user shells
setusershell Tru64 Get the names of legal user shells
setusershell FreeBSD get valid user shells
endusershell FreeBSD get valid user shells
getusershell NetBSD get valid user shells
setusershell NetBSD get valid user shells
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service