imapext-2007

diff src/osdep/os2/env_os2.h @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/osdep/os2/env_os2.h	Mon Sep 14 15:17:45 2009 +0900
     1.3 @@ -0,0 +1,62 @@
     1.4 +/* ========================================================================
     1.5 + * Copyright 1988-2006 University of Washington
     1.6 + *
     1.7 + * Licensed under the Apache License, Version 2.0 (the "License");
     1.8 + * you may not use this file except in compliance with the License.
     1.9 + * You may obtain a copy of the License at
    1.10 + *
    1.11 + *     http://www.apache.org/licenses/LICENSE-2.0
    1.12 + *
    1.13 + * 
    1.14 + * ========================================================================
    1.15 + */
    1.16 +
    1.17 +/*
    1.18 + * Program:	OS/2 environment routines
    1.19 + *
    1.20 + * Author:	Mark Crispin
    1.21 + *		Networks and Distributed Computing
    1.22 + *		Computing & Communications
    1.23 + *		University of Washington
    1.24 + *		Administration Building, AG-44
    1.25 + *		Seattle, WA  98195
    1.26 + *		Internet: MRC@CAC.Washington.EDU
    1.27 + *
    1.28 + * Date:	14 March 1996
    1.29 + * Last Edited:	30 August 2006
    1.30 + */
    1.31 +
    1.32 +
    1.33 +/* Function prototypes */
    1.34 +
    1.35 +#include "env.h"
    1.36 +
    1.37 +long random (void);
    1.38 +
    1.39 +
    1.40 +/* syslog() emulation */
    1.41 +
    1.42 +#define LOG_MAIL	(2<<3)	/* mail system */
    1.43 +#define LOG_DAEMON	(3<<3)	/* system daemons */
    1.44 +#define LOG_AUTH	(4<<3)	/* security/authorization messages */
    1.45 +#define LOG_EMERG	0	/* system is unusable */
    1.46 +#define LOG_ALERT	1	/* action must be taken immediately */
    1.47 +#define LOG_CRIT	2	/* critical conditions */
    1.48 +#define LOG_ERR		3	/* error conditions */
    1.49 +#define LOG_WARNING	4	/* warning conditions */
    1.50 +#define LOG_NOTICE	5	/* normal but signification condition */
    1.51 +#define LOG_INFO	6	/* informational */
    1.52 +#define LOG_DEBUG	7	/* debug-level messages */
    1.53 +#define LOG_PID		0x01	/* log the pid with each message */
    1.54 +#define LOG_CONS	0x02	/* log on the console if errors in sending */
    1.55 +#define LOG_ODELAY	0x04	/* delay open until syslog() is called */
    1.56 +#define LOG_NDELAY	0x08	/* don't delay open */
    1.57 +#define LOG_NOWAIT	0x10	/* if forking to log on console, don't wait() */
    1.58 +
    1.59 +void openlog (const char *ident,int logopt,int facility);
    1.60 +void syslog (int priority,const char *message,...);
    1.61 +
    1.62 +void rfc822_fixed_date (char *date);
    1.63 +int lockname (char *lock,char *fname,int op);
    1.64 +char *lockdir (char *lock,char *first,char *last);
    1.65 +void unlockfd (int fd,char *lock);

UW-IMAP'd extensions by yuuji