ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/CCSAdmin/common.h
(Generate patch)

Comparing CCSAdmin/common.h (file contents):
Revision 582 by douglas, 2005-09-25T17:43:17-07:00 vs.
Revision 583 by douglas, 2005-11-21T12:56:05-08:00

# Line 32 | Line 32
32   #define MAXLOGNAME 17
33   #endif
34  
35 + typedef struct
36 + {
37 +        const char *name;
38 +        char *freebsd, *linux, *darwin, *solaris;
39 + }
40 + Shells;
41 +
42 + typedef enum { sh, csh, tcsh, bash, ksh, zsh, _3sh, custom } Shell;
43 +
44 + extern Shells shells[];
45 +
46   int check(int value, jmp_buf environment);
47   int regcheck(int value, const regex_t *regex, jmp_buf environment);
48   char *fcheck(char *value, FILE *stream, jmp_buf environment);
# Line 39 | Line 50 | void authenticate(const char *program, j
50   void getpassword(char password[_PASSWORD_LEN], jmp_buf environment);
51   void putpassword(char password[_PASSWORD_LEN], char *name, jmp_buf environment);
52   void get(const char *prompt, regex_t *regex, char **string, jmp_buf environment);
53 + void setshells(Shells *shells, jmp_buf environment);
54  
55   #ifndef __FreeBSD__
56   size_t strlcpy(char *dst, const char *src, size_t size);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines