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

  man pages->OpenBSD man pages -> endusershell (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 a pointer to a legal user shell as
     defined by the system manager in the file  /etc/shells.   If
/etc/shells is
     unreadable  or  does not exist, getusershell() behaves as if
only /bin/sh
     and /bin/csh were listed in the file.

     The getusershell() function reads the next line (opening the
file if necessary);
  setusershell()  rewinds  the  file; endusershell()
closes it.

FILES    [Toc]    [Back]

     /etc/shells

DIAGNOSTICS    [Toc]    [Back]

     The routine getusershell() returns a null pointer EOF.

SEE ALSO    [Toc]    [Back]

      
      
     shells(5)

HISTORY    [Toc]    [Back]

     The getusershell() function appeared in 4.3BSD.

BUGS    [Toc]    [Back]

     The getusershell() function leaves its result in an internal
static object
 and returns a pointer to that object.  Subsequent calls
to
     getusershell() will modify the same object.

OpenBSD      3.6                           June      4,      1993
[ 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