imapext-2007
diff src/osdep/amiga/env_ami.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/amiga/env_ami.h Mon Sep 14 15:17:45 2009 +0900 1.3 @@ -0,0 +1,95 @@ 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: UNIX 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: 1 August 1988 1.29 + * Last Edited: 30 August 2006 1.30 + */ 1.31 + 1.32 + 1.33 +typedef struct dotlock_base { 1.34 + char lock[MAILTMPLEN]; 1.35 + int pipei; 1.36 + int pipeo; 1.37 +} DOTLOCK; 1.38 + 1.39 + 1.40 +/* Bits that can be set in restrictBox */ 1.41 + 1.42 +#define RESTRICTROOT 0x1 /* restricted box doesn't allow root */ 1.43 +#define RESTRICTOTHERUSER 0x2 /* restricted box doesn't allow other user */ 1.44 + 1.45 +/* Subscription definitions for UNIX */ 1.46 + 1.47 +#define SUBSCRIPTIONFILE(t) sprintf (t,"%s/.mailboxlist",myhomedir ()) 1.48 +#define SUBSCRIPTIONTEMP(t) sprintf (t,"%s/.mlbxlsttmp",myhomedir ()) 1.49 + 1.50 + 1.51 +/* dorc() options */ 1.52 + 1.53 +#define SYSCONFIG "/etc/c-client.cf" 1.54 + 1.55 + 1.56 +/* Special users */ 1.57 + 1.58 +#define ANONYMOUSUSER "nobody" /* anonymous user */ 1.59 +#define UNLOGGEDUSER "root" /* unlogged-in user */ 1.60 +#define ADMINGROUP "mailadm" /* mail administrator group */ 1.61 + 1.62 +/* Function prototypes */ 1.63 + 1.64 +#include "env.h" 1.65 + 1.66 +void rfc822_fixed_date (char *date); 1.67 +long env_init (char *user,char *home); 1.68 +char *myusername_full (unsigned long *flags); 1.69 +#define MU_LOGGEDIN 0 1.70 +#define MU_NOTLOGGEDIN 1 1.71 +#define MU_ANONYMOUS 2 1.72 +#define myusername() \ 1.73 + myusername_full (NIL) 1.74 +char *sysinbox (); 1.75 +char *mailboxdir (char *dst,char *dir,char *name); 1.76 +long dotlock_lock (char *file,DOTLOCK *base,int fd); 1.77 +long dotlock_unlock (DOTLOCK *base); 1.78 +int lockname (char *lock,char *fname,int op,long *pid); 1.79 +int lockfd (int fd,char *lock,int op); 1.80 +int lock_work (char *lock,void *sbuf,int op,long *pid); 1.81 +long chk_notsymlink (char *name,void *sbuf); 1.82 +void unlockfd (int fd,char *lock); 1.83 +long set_mbx_protections (char *mailbox,char *path); 1.84 +long get_dir_protection (char *mailbox); 1.85 +MAILSTREAM *user_flags (MAILSTREAM *stream); 1.86 +char *default_user_flag (unsigned long i); 1.87 +void dorc (char *file,long flag); 1.88 +long path_create (MAILSTREAM *stream,char *mailbox); 1.89 +void grim_pid_reap_status (int pid,int killreq,void *status); 1.90 +#define grim_pid_reap(pid,killreq) \ 1.91 + grim_pid_reap_status (pid,killreq,NIL) 1.92 +long safe_write (int fd,char *buf,long nbytes); 1.93 +void *arm_signal (int sig,void *action); 1.94 +struct passwd *checkpw (struct passwd *pw,char *pass,int argc,char *argv[]); 1.95 +long loginpw (struct passwd *pw,int argc,char *argv[]); 1.96 +long pw_login (struct passwd *pw,char *auser,char *user,char *home,int argc, 1.97 + char *argv[]); 1.98 +void *mm_blocknotify (int reason,void *data);