~ubuntu-branches/debian/squeeze/alpine/squeeze

« back to all changes in this revision

Viewing changes to imap/src/osdep/dos/env_dos.h

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2007-02-17 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070217131742-99x5c6cpg1pbkdhw
Tags: upstream-0.82+dfsg
ImportĀ upstreamĀ versionĀ 0.82+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 */
 
13
 
 
14
/*
 
15
 * Program:     DOS environment routines
 
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
 */
 
28
 
 
29
 
 
30
#define SUBSCRIPTIONFILE(t) sprintf (t,"%s/MAILBOX.LST",myhomedir ())
 
31
#define SUBSCRIPTIONTEMP(t) sprintf (t,"%s/MAILBOX.TMP",myhomedir ())
 
32
 
 
33
#define L_SET SEEK_SET
 
34
 
 
35
/* Function prototypes */
 
36
 
 
37
#include "env.h"
 
38
 
 
39
char *dos_default_gets (readfn_t f,void *stream,unsigned long size,
 
40
                        GETS_DATA *md);
 
41
long safe_write (int fd,char *buf,long nbytes);
 
42
long random ();
 
43
#if _MSC_VER < 700
 
44
#define getpid random
 
45
#endif
 
46
 
 
47
 
 
48
/* syslog() emulation */
 
49
 
 
50
#define LOG_MAIL        (2<<3)  /* mail system */
 
51
#define LOG_DAEMON      (3<<3)  /* system daemons */
 
52
#define LOG_AUTH        (4<<3)  /* security/authorization messages */
 
53
#define LOG_EMERG       0       /* system is unusable */
 
54
#define LOG_ALERT       1       /* action must be taken immediately */
 
55
#define LOG_CRIT        2       /* critical conditions */
 
56
#define LOG_ERR         3       /* error conditions */
 
57
#define LOG_WARNING     4       /* warning conditions */
 
58
#define LOG_NOTICE      5       /* normal but signification condition */
 
59
#define LOG_INFO        6       /* informational */
 
60
#define LOG_DEBUG       7       /* debug-level messages */
 
61
#define LOG_PID         0x01    /* log the pid with each message */
 
62
#define LOG_CONS        0x02    /* log on the console if errors in sending */
 
63
#define LOG_ODELAY      0x04    /* delay open until syslog() is called */
 
64
#define LOG_NDELAY      0x08    /* don't delay open */
 
65
#define LOG_NOWAIT      0x10    /* if forking to log on console, don't wait() */
 
66
 
 
67
void openlog (const char *ident,int logopt,int facility);
 
68
void syslog (int priority,const char *message,...);