imapext-2007

view src/osdep/unix/os_cyg.h @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line source
1 /* ========================================================================
2 * Copyright 1988-2006 University of Washington
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *
11 * ========================================================================
12 */
14 /*
15 * Program: Operating-system dependent routines -- Cygwin version
16 *
17 * Author: Mark Crispin
18 * Networks and Distributed Computing
19 * Computing & Communications
20 * University of Washington
21 * Administration Building, AG-44
22 * Seattle, WA 98195
23 * Internet: MRC@CAC.Washington.EDU
24 *
25 * Date: 1 August 1988
26 * Last Edited: 30 August 2006
27 */
29 #include <string.h>
30 #include <stdlib.h>
31 #include <unistd.h>
32 #include <sys/types.h>
33 #include <dirent.h>
34 #include <fcntl.h>
35 #include <syslog.h>
36 #include <sys/file.h>
37 #include <time.h>
38 #include <sys/time.h>
40 #define direct dirent
43 #define CYGKLUDGEOFFSET 1 /* don't write 1st byte of shared-lock files */
45 /* Cygwin gets this wrong */
47 #define setpgrp setpgid
49 #define SYSTEMUID 18 /* Cygwin returns this for SYSTEM */
50 #define geteuid Geteuid
51 uid_t Geteuid (void);
53 /* Now Cygwin has reportedly joined this madness. Use ifndef in case it shares
54 the SVR4 <sys/file.h> silliness too */
55 #ifndef L_SET
56 #define L_SET SEEK_SET
57 #endif
58 #ifndef L_INCR
59 #define L_INCR SEEK_CUR
60 #endif
61 #ifndef L_XTND
62 #define L_XTND SEEK_END
63 #endif
66 #include "env_unix.h"
67 #include "fs.h"
68 #include "ftl.h"
69 #include "nl.h"
70 #include "tcp.h"
71 #include "flockcyg.h"

UW-IMAP'd extensions by yuuji