* Do not define _BSD_SOURCE but define _DEFAULT_SOURCE instead.
[alpine.git] / imap / src / osdep / vms / env_vms.h
blob314333bdfa27c5ab15ca4bf14c32ed24834658a4
1 /* ========================================================================
2 * Copyright 2008-2010 Mark Crispin
3 * ========================================================================
4 */
6 /*
7 * Program: VMS environment routines
9 * Author: Mark Crispin
11 * Date: 2 August 1994
12 * Last Edited: 15 November 2010
14 * Previous versions of this file were:
16 * Copyright 1988-2006 University of Washington
18 * Licensed under the Apache License, Version 2.0 (the "License");
19 * you may not use this file except in compliance with the License.
20 * You may obtain a copy of the License at
22 * http://www.apache.org/licenses/LICENSE-2.0
27 #define SUBSCRIPTIONFILE(t) sprintf (t,"%s\\SUBSCRIPTIONS.TXT",myhomedir ())
28 #define SUBSCRIPTIONTEMP(t) sprintf (t,"%s\\SUBSCRIPTIONS.TMP",myhomedir ())
30 /* Function prototypes */
32 #include "env.h"
34 char *myusername (void);
37 /* syslog() emulation */
39 #define LOG_MAIL (2<<3) /* mail system */
40 #define LOG_DAEMON (3<<3) /* system daemons */
41 #define LOG_AUTH (4<<3) /* security/authorization messages */
42 #define LOG_EMERG 0 /* system is unusable */
43 #define LOG_ALERT 1 /* action must be taken immediately */
44 #define LOG_CRIT 2 /* critical conditions */
45 #define LOG_ERR 3 /* error conditions */
46 #define LOG_WARNING 4 /* warning conditions */
47 #define LOG_NOTICE 5 /* normal but signification condition */
48 #define LOG_INFO 6 /* informational */
49 #define LOG_DEBUG 7 /* debug-level messages */
50 #define LOG_PID 0x01 /* log the pid with each message */
51 #define LOG_CONS 0x02 /* log on the console if errors in sending */
52 #define LOG_ODELAY 0x04 /* delay open until syslog() is called */
53 #define LOG_NDELAY 0x08 /* don't delay open */
54 #define LOG_NOWAIT 0x10 /* if forking to log on console, don't wait() */
56 void openlog (const char *ident,int logopt,int facility);
57 void syslog (int priority,const char *message,...);