Back to index

glibc  2.9
Functions | Variables
getusershell.c File Reference
#include <sys/param.h>
#include <sys/file.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdio_ext.h>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include <paths.h>

Go to the source code of this file.

Functions

static char ** initshells (void)
void endusershell ()
void setusershell ()

Variables

static const char * okshells [3]
static char ** curshell
static char ** shells
static char * strings

Function Documentation

void endusershell ( )

Definition at line 78 of file getusershell.c.

static char ** initshells ( void  ) [static]

Definition at line 59 of file getusershell.c.

{
       char *ret;

       if (curshell == NULL)
              curshell = initshells();
       ret = *curshell;
       if (ret != NULL)
              curshell++;
       return (ret);
}

Here is the caller graph for this function:

void setusershell ( )

Definition at line 89 of file getusershell.c.

Here is the call graph for this function:


Variable Documentation

char** curshell [static]

Definition at line 58 of file getusershell.c.

const char* okshells[3] [static]

Definition at line 56 of file getusershell.c.

char ** shells [static]

Definition at line 58 of file getusershell.c.

char * strings [static]

Definition at line 58 of file getusershell.c.