Mercurial > hg > xemacs-beta
comparison lib-src/movemail.c @ 288:e11d67e05968 r21-0b42
Import from CVS: tag r21-0b42
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:35:54 +0200 |
parents | c5d627a313b1 |
children | 19dcec799385 |
comparison
equal
deleted
inserted
replaced
287:13a0bd77a29d | 288:e11d67e05968 |
---|---|
93 though the locking call succeeds (and indeed blocks local access from | 93 though the locking call succeeds (and indeed blocks local access from |
94 other NT programs). If you have direct file access using an NFS | 94 other NT programs). If you have direct file access using an NFS |
95 client or something other than Samba, the locking call might work | 95 client or something other than Samba, the locking call might work |
96 properly - make sure it does before you enable this! */ | 96 properly - make sure it does before you enable this! */ |
97 #define DISABLE_DIRECT_ACCESS | 97 #define DISABLE_DIRECT_ACCESS |
98 #include <io.h> | |
98 #endif /* WINDOWSNT */ | 99 #endif /* WINDOWSNT */ |
99 | 100 |
100 #if defined (HAVE_UNISTD_H) || defined (USG) | 101 #if defined (HAVE_UNISTD_H) || defined (USG) |
101 #include <unistd.h> | 102 #include <unistd.h> |
102 #endif /* unistd.h */ | 103 #endif /* unistd.h */ |
152 | 153 |
153 int | 154 int |
154 main (int argc, char *argv[]) | 155 main (int argc, char *argv[]) |
155 { | 156 { |
156 char *inname, *outname; | 157 char *inname, *outname; |
158 #ifndef DISABLE_DIRECT_ACCESS | |
157 int indesc, outdesc; | 159 int indesc, outdesc; |
158 int nread; | 160 int nread; |
159 int status; | 161 int status; |
162 #endif | |
160 | 163 |
161 #ifndef MAIL_USE_SYSTEM_LOCK | 164 #ifndef MAIL_USE_SYSTEM_LOCK |
162 struct stat st; | 165 struct stat st; |
163 long now; | 166 long now; |
164 int tem; | 167 int tem; |