ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/CCSAdmin/common.h
Revision: 562
Committed: 2005-08-27T21:46:39-07:00 (19 years, 9 months ago) by douglas
Content type: text/x-c
File size: 715 byte(s)
Log Message:
Moo!

File Contents

# User Rev Content
1 douglas 562 // Douglas Thrift
2     //
3     // CCS Computer Science
4     //
5     // Common Functions
6    
7     #ifndef _common_h_
8     #define _common_h_
9    
10     #include <pwd.h>
11     #include <regex.h>
12     #include <setjmp.h>
13     #include <stdio.h>
14     #include <stdlib.h>
15     #include <string.h>
16     #include <sys/param.h>
17     #include <sys/stat.h>
18     #include <sys/wait.h>
19     #include <unistd.h>
20    
21     int check(int value, jmp_buf environment);
22     int regcheck(int value, const regex_t *regex, jmp_buf environment);
23     char *fcheck(char *value, FILE *stream, jmp_buf environment);
24     void authenticate(const char *program, jmp_buf environment);
25     void getpassword(char password[_PASSWORD_LEN], jmp_buf environment);
26     void putpassword(char password[_PASSWORD_LEN], char *name, jmp_buf environment);
27    
28     #endif//_common_h_