#include <sys/types.h>#include <string.h>#include <sys/stat.h>#include <pwd.h>#include <signal.h>#include <stdlib.h>#include <unistd.h>#include <time.h>#include <fcntl.h>#include <sys/wait.h>#include <stdio.h>Include dependency graph for ci.c:

Go to the source code of this file.
Defines | |
| #define | SUFFIX ",S" |
| #define | SVCDIR "SVC" |
| #define | LINELEN 256 |
| #define | FIX "fix $1 Fix.$1 > New.$1; mv New.$1 $1\n" |
| #define | PATHLEN 128 |
Functions | |
| _PROTOTYPE (int main,(int argc, char **argv)) | |
| _PROTOTYPE (void rundiff,(void)) | |
| _PROTOTYPE (void logmsg,(FILE *fp)) | |
| _PROTOTYPE (void fname,(char *src, char *dst)) | |
| _PROTOTYPE (int lockcheck,(FILE *fp, int rev)) | |
| _PROTOTYPE (void onintr,(int dummy)) | |
| _PROTOTYPE (char *whoami,(void)) | |
| int | main (int argc, char **argv) |
| void | rundiff () |
| void | logmsg (FILE *fp) |
| void | fname (char *src, char *dst) |
| void | svcname (char *src, char *dst) |
| int | lockcheck (FILE *fp, int rev) |
| void | onintr (int dummy) |
| void | clean () |
| char * | whoami () |
Variables | |
| int | unlocked = 0 |
| int | relock = 0 |
| char | file [PATHLEN] |
| char | svc [PATHLEN] |
| char | newsvc [PATHLEN] |
| char | line [LINELEN] |
| char * | p |
| FILE * | svcfp |
| FILE * | origfp |
| FILE * | newfp |
| FILE * | srcfp |
| int | rev |
| int | status |
| stat stb1 | stb2 |
| char | original [] = "/tmp/cioXXXXXX" |
| char | diffout [] = "/tmp/cidXXXXXX" |
|
|
Definition at line 21 of file ci.c. Referenced by main(). |
|
|
Definition at line 18 of file ci.c. Referenced by decode(), dodir(), extract(), getcommand(), getfile(), getline(), gettable(), main(), and read_line(). |
|
|
Definition at line 29 of file ci.c. Referenced by deliver(), main(), svcname(), updatebox(), wcs(), and wctxpn(). |
|
|
|
|
|
Definition at line 16 of file ci.c. Referenced by svcname(). |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 300 of file ci.c. References check, fgets(), fseek(), ftell(), lock, pos, sprintf(), strcmp, strlen(), and whoami(). Referenced by main(). |
|
|
Definition at line 251 of file ci.c. References ctime(), fprintf(), gets(), now, NULL, rev, stderr, strcmp, and time. Referenced by domark(), logerror(), main(), printkline(), and printline(). |
|
||||||||||||
|
Definition at line 59 of file ci.c. References BUFSIZ, chmod, clean(), diffout, exit(), fclose(), ferror, fgets(), FIX, fname, fopen(), fprintf(), fputs(), LINELEN, link, lockcheck(), logmsg(), mktemp(), newfp, newsvc, NULL, origfp, original, p, perror(), relock, rev, rundiff(), setbuf(), SIG_IGN, SIGHUP, SIGINT, signal(), SIGTERM, srcfp, sscanf(), stat::st_mode, stat::st_size, stat, stb2, stderr, strcmp, strcpy(), strlen(), strncmp(), strrchr(), svc, svcfp, svcname(), unlink, unlocked, and whoami(). |
|
|
|
|
|
Definition at line 220 of file ci.c. References clean(), close, creat, diffout, dup2, execlp, exit(), fork, fprintf(), original, perror(), status, stderr, and wait. Referenced by main(). |
|
||||||||||||
|
Definition at line 272 of file ci.c. References access, NULL, p, PATHLEN, strcat(), strcpy(), strncpy(), strrchr(), SUFFIX, and SVCDIR. Referenced by main(). |
|
|
Definition at line 335 of file ci.c. References getpwuid(), getuid, NULL, and passwd::pw_name. Referenced by lockcheck(), main(), and updatebox(). |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 41 of file ci.c. Referenced by main(). |
|
|
Definition at line 46 of file ci.c. Referenced by clean(), main(), rundiff(), strcat(), strcpy(), and strlen(). |
|
|
|
Definition at line 33 of file ci.c. Referenced by main(). |
|
|
Definition at line 43 of file ci.c. Referenced by drawtext(), fxp_probe(), fxp_report_link(), logmsg(), and main(). |
|
|
Definition at line 42 of file ci.c. Referenced by main(). |
|
|
|
|
|
Definition at line 45 of file ci.c. Referenced by main(). |
|
|
Definition at line 35 of file ci.c. Referenced by main(). |
|
|
|
|
|
Definition at line 32 of file ci.c. Referenced by main(). |
1.4.6