getusershell(3c) 맨 페이지 - 윈디하나의 솔라나라

개요

섹션
맨 페이지 이름
검색(S)

getusershell(3c)

Standard C Library Functions                                  getusershell(3C)



NAME
       getusershell, setusershell, endusershell - get legal user shells

SYNOPSIS
       #include <unistd.h>

       char *getusershell(void);


       void setusershell(void);


       void endusershell(void);

DESCRIPTION
       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
       does  not  exist, the following locations of the standard system shells
       are used in its place:


       tab();   lw(2.75i)   lw(2.75i)    /bin/bash/bin/csh    /bin/jsh/bin/ksh
       /bin/ksh93/bin/pfbash     /bin/pfcsh/bin/pfksh    /bin/pfksh93/bin/pfsh
       /bin/pftcsh/bin/pfzsh        /bin/sh/bin/tcsh         /bin/zsh/sbin/jsh
       /sbin/pfsh/sbin/sh  /usr/bin/bash/usr/bin/csh  /usr/bin/jsh/usr/bin/ksh
       /usr/bin/ksh93/usr/bin/pfbash              /usr/bin/pfcsh/usr/bin/pfksh
       /usr/bin/pfksh93/usr/bin/pfsh             /usr/bin/pftcsh/usr/bin/pfzsh
       /usr/bin/sh/usr/bin/tcsh                      /usr/bin/zsh/usr/sbin/jsh
       /usr/sbin/pfsh/usr/sbin/sh /usr/xpg4/bin/sh/usr/xpg4/bin/pfsh



       The  getusershell()  function opens the file /etc/shells, if it exists,
       and returns the next entry in the list of shells.


       The setusershell() function rewinds the file or the list.


       The endusershell() function closes the file, frees any memory  used  by
       getusershell() and setusershell(), and rewinds the file /etc/shells.

RETURN VALUES
       The getusershell() function returns a null pointer on EOF.

BUGS
       All  information  is  contained  in the memory that may be freed with a
       call to the endusershell() function, so it must be copied if it  is  to
       be saved.

NOTES
       Restricted shells should not be listed in /etc/shells.



Oracle Solaris 11.4               27 Apr 2017                 getusershell(3C)
맨 페이지 내용의 저작권은 맨 페이지 작성자에게 있습니다.
RSS ATOM XHTML 5 CSS3