imapext-2007

view src/osdep/unix/os_vu2.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 -- VAX Ultrix 2.3 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: 11 May 1989
26 * Last Edited: 30 August 2006
27 */
29 #include <memory.h>
30 #include <sys/types.h>
31 #include <sys/dir.h>
32 #include <string.h>
33 #include <fcntl.h>
34 #include <syslog.h>
35 #include <sys/file.h>
38 /* syslog() emulation */
40 #define LOG_MAIL (2<<3) /* mail system */
41 #define LOG_DAEMON (3<<3) /* system daemons */
42 #define LOG_AUTH (4<<3) /* security/authorization messages */
43 #define LOG_EMERG 0 /* system is unusable */
44 #define LOG_ALERT 1 /* action must be taken immediately */
45 #define LOG_CRIT 2 /* critical conditions */
46 #define LOG_ERR 3 /* error conditions */
47 #define LOG_WARNING 4 /* warning conditions */
48 #define LOG_NOTICE 5 /* normal but signification condition */
49 #define LOG_INFO 6 /* informational */
50 #define LOG_DEBUG 7 /* debug-level messages */
51 #define LOG_PID 0x01 /* log the pid with each message */
52 #define LOG_CONS 0x02 /* log on the console if errors in sending */
53 #define LOG_ODELAY 0x04 /* delay open until syslog() is called */
54 #define LOG_NDELAY 0x08 /* don't delay open */
55 #define LOG_NOWAIT 0x10 /* if forking to log on console, don't wait() */
58 #define isodigit(c) (((unsigned)(c)>=060)&((unsigned)(c)<=067))
59 #define toint(c) ((c)-'0')
61 extern int sys_nerr;
62 extern char *sys_errlist[];
65 char *getenv (char *name);
66 char *strstr (char *cs,char *ct);
67 char *strerror (int n);
68 void *memmove (void *s,void *ct,size_t n);
69 unsigned long strtoul (char *s,char **endp,int base);
70 void *malloc (size_t byteSize);
71 void free (void *ptr);
72 void *realloc (void *oldptr,size_t newsize);
73 u_long portable_inet_addr (char *hostname);
75 #include "env_unix.h"
76 #include "fs.h"
77 #include "ftl.h"
78 #include "nl.h"
79 #include "tcp.h"

UW-IMAP'd extensions by yuuji