Mercurial > hg > xemacs-beta
comparison lib-src/movemail.c @ 163:0132846995bd r20-3b8
Import from CVS: tag r20-3b8
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:43:35 +0200 |
parents | 6b37e6ddd302 |
children | 8eaf7971accc |
comparison
equal
deleted
inserted
replaced
162:4de2936b4e77 | 163:0132846995bd |
---|---|
60 #include <sys/stat.h> | 60 #include <sys/stat.h> |
61 #include <sys/file.h> | 61 #include <sys/file.h> |
62 #include <stdio.h> | 62 #include <stdio.h> |
63 #include <errno.h> | 63 #include <errno.h> |
64 #include "../src/syswait.h" | 64 #include "../src/syswait.h" |
65 #include "../src/systime.h" | |
65 #include <stdlib.h> | 66 #include <stdlib.h> |
66 #include <string.h> | 67 #include <string.h> |
67 #ifdef MAIL_USE_POP | 68 #ifdef MAIL_USE_POP |
68 #include "pop.h" | 69 #include "pop.h" |
69 #endif | 70 #endif |
90 client or something other than Samba, the locking call might work | 91 client or something other than Samba, the locking call might work |
91 properly - make sure it does before you enable this! */ | 92 properly - make sure it does before you enable this! */ |
92 #define DISABLE_DIRECT_ACCESS | 93 #define DISABLE_DIRECT_ACCESS |
93 #endif /* WINDOWSNT */ | 94 #endif /* WINDOWSNT */ |
94 | 95 |
95 #ifdef USG | 96 #if defined (HAVE_UNISTD_H) || defined (USG) |
96 #include <fcntl.h> | |
97 #include <unistd.h> | 97 #include <unistd.h> |
98 #endif /* unistd.h */ | |
98 #ifndef F_OK | 99 #ifndef F_OK |
99 #define F_OK 0 | 100 #define F_OK 0 |
100 #define X_OK 1 | 101 #define X_OK 1 |
101 #define W_OK 2 | 102 #define W_OK 2 |
102 #define R_OK 4 | 103 #define R_OK 4 |
103 #endif | 104 #endif /* No F_OK */ |
104 #endif /* USG */ | 105 |
105 | 106 #if defined (HAVE_FCNTL_H) || defined (USG) |
106 #ifdef HAVE_UNISTD_H | 107 #include <fcntl.h> |
107 #include <unistd.h> | 108 #endif /* fcntl.h */ |
108 #endif | |
109 | 109 |
110 #if defined (XENIX) || defined (WINDOWSNT) | 110 #if defined (XENIX) || defined (WINDOWSNT) |
111 #include <sys/locking.h> | 111 #include <sys/locking.h> |
112 #endif | 112 #endif |
113 | 113 |
491 #include <winsock.h> | 491 #include <winsock.h> |
492 #endif | 492 #endif |
493 #include <stdio.h> | 493 #include <stdio.h> |
494 #include <pwd.h> | 494 #include <pwd.h> |
495 | 495 |
496 #ifdef USG | |
497 #include <fcntl.h> | |
498 /* Cancel substitutions made by config.h for Emacs. */ | |
499 #undef open | |
500 #undef read | |
501 #undef write | |
502 #undef close | |
503 #endif /* USG */ | |
504 | |
505 #define NOTOK (-1) | 496 #define NOTOK (-1) |
506 #define OK 0 | 497 #define OK 0 |
507 #define DONE 1 | 498 #define DONE 1 |
508 | 499 |
509 char *progname; | 500 char *progname; |