imapext-2007

view src/osdep/nt/env_nt.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: NT 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 */
30 #define SUBSCRIPTIONFILE(t) sprintf (t,"%s\\MAILBOX.LST",myhomedir ())
31 #define SUBSCRIPTIONTEMP(t) sprintf (t,"%s\\MAILBOX.TMP",myhomedir ())
33 /* Note: the \CRAM-MD5.PWD file only works on DOS-based Windows (Win9x/Me)
34 * and not on NT-based Windows (WinNT/2K/XP). If installed on NT-based
35 * Windows, servers will advertise CRAM-MD5 authentication but it will
36 * never succeed.
37 */
39 #define MD5ENABLE "\\cram-md5.pwd"
41 #define L_SET SEEK_SET
43 /* Function prototypes */
45 #include "env.h"
47 void rfc822_fixed_date (char *date);
48 long env_init (char *user,char *home);
49 int check_nt (void);
50 char *win_homedir (char *user);
51 static char *defaultDrive (void);
52 char *myusername_full (unsigned long *flags);
53 #define MU_LOGGEDIN 0
54 #define MU_NOTLOGGEDIN 1
55 #define MU_ANONYMOUS 2
56 #define myusername() \
57 myusername_full (NIL)
58 char *sysinbox ();
59 char *mailboxdir (char *dst,char *dir,char *name);
60 int lockname (char *lock,char *fname,int op);
61 char *lockdir (char *lock,char *first,char *last);
62 void unlockfd (int fd,char *lock);
63 long safe_write (int fd,char *buf,long nbytes);
64 void *mm_blocknotify (int reason,void *data);
65 long random ();
66 #if _MSC_VER < 700
67 #define getpid random
68 #endif

UW-IMAP'd extensions by yuuji