diff options
| author | Dan Nicolaescu | 2008-01-18 15:15:07 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-01-18 15:15:07 +0000 |
| commit | 76ed5e0157c14cf9fcd075db08296bd692a43fc7 (patch) | |
| tree | e6dca82a012b542099e98543c36894d8fabc6ca8 /lib-src/movemail.c | |
| parent | 36ad15539d7521ce6146d0569ceec94592a9d0ff (diff) | |
| download | emacs-76ed5e0157c14cf9fcd075db08296bd692a43fc7.tar.gz emacs-76ed5e0157c14cf9fcd075db08296bd692a43fc7.zip | |
* movemail.c: Remove references to XENIX.
* m/intel386.h: Remove references to XENIX.
Diffstat (limited to 'lib-src/movemail.c')
| -rw-r--r-- | lib-src/movemail.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index daf8c6166e6..1f95735878d 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -113,7 +113,7 @@ Boston, MA 02110-1301, USA. */ | |||
| 113 | #define R_OK 4 | 113 | #define R_OK 4 |
| 114 | #endif | 114 | #endif |
| 115 | 115 | ||
| 116 | #if defined (XENIX) || defined (WINDOWSNT) | 116 | #ifdef WINDOWSNT |
| 117 | #include <sys/locking.h> | 117 | #include <sys/locking.h> |
| 118 | #endif | 118 | #endif |
| 119 | 119 | ||
| @@ -388,13 +388,13 @@ main (argc, argv) | |||
| 388 | if (indesc < 0) | 388 | if (indesc < 0) |
| 389 | pfatal_with_name (inname); | 389 | pfatal_with_name (inname); |
| 390 | 390 | ||
| 391 | #if defined (BSD_SYSTEM) || defined (XENIX) | 391 | #ifdef BSD_SYSTEM |
| 392 | /* In case movemail is setuid to root, make sure the user can | 392 | /* In case movemail is setuid to root, make sure the user can |
| 393 | read the output file. */ | 393 | read the output file. */ |
| 394 | /* This is desirable for all systems | 394 | /* This is desirable for all systems |
| 395 | but I don't want to assume all have the umask system call */ | 395 | but I don't want to assume all have the umask system call */ |
| 396 | umask (umask (0) & 0333); | 396 | umask (umask (0) & 0333); |
| 397 | #endif /* BSD_SYSTEM || XENIX */ | 397 | #endif /* BSD_SYSTEM */ |
| 398 | outdesc = open (outname, O_WRONLY | O_CREAT | O_EXCL, 0666); | 398 | outdesc = open (outname, O_WRONLY | O_CREAT | O_EXCL, 0666); |
| 399 | if (outdesc < 0) | 399 | if (outdesc < 0) |
| 400 | pfatal_with_name (outname); | 400 | pfatal_with_name (outname); |
| @@ -422,15 +422,11 @@ main (argc, argv) | |||
| 422 | #ifdef MAIL_USE_LOCKF | 422 | #ifdef MAIL_USE_LOCKF |
| 423 | status = lockf (indesc, F_LOCK, 0); | 423 | status = lockf (indesc, F_LOCK, 0); |
| 424 | #else /* not MAIL_USE_LOCKF */ | 424 | #else /* not MAIL_USE_LOCKF */ |
| 425 | #ifdef XENIX | ||
| 426 | status = locking (indesc, LK_RLCK, 0L); | ||
| 427 | #else | ||
| 428 | #ifdef WINDOWSNT | 425 | #ifdef WINDOWSNT |
| 429 | status = locking (indesc, LK_RLCK, -1L); | 426 | status = locking (indesc, LK_RLCK, -1L); |
| 430 | #else | 427 | #else |
| 431 | status = flock (indesc, LOCK_EX); | 428 | status = flock (indesc, LOCK_EX); |
| 432 | #endif | 429 | #endif |
| 433 | #endif | ||
| 434 | #endif /* not MAIL_USE_LOCKF */ | 430 | #endif /* not MAIL_USE_LOCKF */ |
| 435 | #endif /* MAIL_USE_SYSTEM_LOCK */ | 431 | #endif /* MAIL_USE_SYSTEM_LOCK */ |
| 436 | } | 432 | } |