imapext-2007
diff src/osdep/mac/env_mac.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/mac/env_mac.h Mon Sep 14 15:17:45 2009 +0900 1.3 @@ -0,0 +1,58 @@ 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: Macintosh 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: 25 May 1995 1.29 + * Last Edited: 30 August 2006 1.30 + */ 1.31 + 1.32 + 1.33 +#define SUBSCRIPTIONFILE(t) sprintf (t,"%s:Mailbox List",myhomedir ()) 1.34 +#define SUBSCRIPTIONTEMP(t) sprintf (t,"%s:Mailbox List Temp",myhomedir ()) 1.35 + 1.36 +/* Function prototypes */ 1.37 + 1.38 +#include "env.h" 1.39 + 1.40 + 1.41 +/* syslog() emulation */ 1.42 + 1.43 +#define LOG_MAIL (2<<3) /* mail system */ 1.44 +#define LOG_DAEMON (3<<3) /* system daemons */ 1.45 +#define LOG_AUTH (4<<3) /* security/authorization messages */ 1.46 +#define LOG_EMERG 0 /* system is unusable */ 1.47 +#define LOG_ALERT 1 /* action must be taken immediately */ 1.48 +#define LOG_CRIT 2 /* critical conditions */ 1.49 +#define LOG_ERR 3 /* error conditions */ 1.50 +#define LOG_WARNING 4 /* warning conditions */ 1.51 +#define LOG_NOTICE 5 /* normal but signification condition */ 1.52 +#define LOG_INFO 6 /* informational */ 1.53 +#define LOG_DEBUG 7 /* debug-level messages */ 1.54 +#define LOG_PID 0x01 /* log the pid with each message */ 1.55 +#define LOG_CONS 0x02 /* log on the console if errors in sending */ 1.56 +#define LOG_ODELAY 0x04 /* delay open until syslog() is called */ 1.57 +#define LOG_NDELAY 0x08 /* don't delay open */ 1.58 +#define LOG_NOWAIT 0x10 /* if forking to log on console, don't wait() */ 1.59 + 1.60 +void openlog (const char *ident,int logopt,int facility); 1.61 +void syslog (int priority,const char *message,...);