X7ROOT File Manager
Current Path:
/opt/alt/libc-client11/include/c-client
opt
/
alt
/
libc-client11
/
include
/
c-client
/
??
..
??
c-client.h
(1.65 KB)
??
dummy.h
(1.49 KB)
??
env.h
(1.47 KB)
??
env_unix.h
(2.86 KB)
??
fdstring.h
(1.05 KB)
??
flockcyg.h
(1.34 KB)
??
flocksim.h
(4.29 KB)
??
flstring.h
(799 B)
??
fs.h
(905 B)
??
ftl.h
(825 B)
??
imap4r1.h
(8.01 KB)
??
linkage.c
(1.2 KB)
??
linkage.h
(541 B)
??
mail.h
(66.8 KB)
??
misc.h
(3.27 KB)
??
netmsg.h
(987 B)
??
newsrc.h
(1.45 KB)
??
nl.h
(939 B)
??
nntp.h
(1.58 KB)
??
os_a32.h
(1.2 KB)
??
os_a41.h
(1.2 KB)
??
os_a52.h
(1.27 KB)
??
os_aix.h
(1.1 KB)
??
os_aos.h
(1.26 KB)
??
os_art.h
(2.01 KB)
??
os_asv.h
(1.91 KB)
??
os_aux.h
(1.18 KB)
??
os_bsd.h
(1.33 KB)
??
os_bsf.h
(1.05 KB)
??
os_bsi.h
(1.03 KB)
??
os_cvx.h
(1.09 KB)
??
os_cyg.h
(1.6 KB)
??
os_d-g.h
(1.35 KB)
??
os_do4.h
(1.23 KB)
??
os_drs.h
(1.42 KB)
??
os_dyn.h
(1.5 KB)
??
os_hpp.h
(1.36 KB)
??
os_isc.h
(1.68 KB)
??
os_lnx.h
(1.45 KB)
??
os_lyn.h
(1.03 KB)
??
os_mct.h
(1.05 KB)
??
os_mnt.h
(1.18 KB)
??
os_nto.h
(1.64 KB)
??
os_nxt.h
(1.18 KB)
??
os_os4.h
(1.17 KB)
??
os_osf.h
(1.17 KB)
??
os_osx.h
(1.26 KB)
??
os_ptx.h
(1.7 KB)
??
os_pyr.h
(1.42 KB)
??
os_qnx.h
(1.42 KB)
??
os_s40.h
(957 B)
??
os_sc5.h
(1.72 KB)
??
os_sco.h
(1.76 KB)
??
os_sgi.h
(1.36 KB)
??
os_shp.h
(1.36 KB)
??
os_slx.h
(1.45 KB)
??
os_soln.h
(1.93 KB)
??
os_solo.h
(1.9 KB)
??
os_sos.h
(1.17 KB)
??
os_sua.h
(1.16 KB)
??
os_sun.h
(1.28 KB)
??
os_sv2.h
(2.91 KB)
??
os_sv4.h
(1.79 KB)
??
os_ult.h
(1.01 KB)
??
os_vu2.h
(2.34 KB)
??
osdep.h
(1.45 KB)
??
pseudo.h
(838 B)
??
rfc822.h
(5.29 KB)
??
shortsym.h
(17.65 KB)
??
smtp.h
(2.48 KB)
??
sslio.h
(2.25 KB)
??
tcp.h
(1.73 KB)
??
tcp_unix.h
(1.2 KB)
??
unix.h
(6.55 KB)
??
utf8.h
(22.43 KB)
??
utf8aux.h
(1.49 KB)
Editing: env_unix.h
/* ======================================================================== * Copyright 1988-2006 University of Washington * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * * ======================================================================== */ /* * Program: UNIX environment routines * * Author: Mark Crispin * Networks and Distributed Computing * Computing & Communications * University of Washington * Administration Building, AG-44 * Seattle, WA 98195 * Internet: MRC@CAC.Washington.EDU * * Date: 1 August 1988 * Last Edited: 30 August 2006 */ typedef struct dotlock_base { char lock[MAILTMPLEN]; int pipei; int pipeo; } DOTLOCK; /* Bits that can be set in restrictBox */ #define RESTRICTROOT 0x1 /* restricted box doesn't allow root */ #define RESTRICTOTHERUSER 0x2 /* restricted box doesn't allow other user */ /* Subscription definitions for UNIX */ #define SUBSCRIPTIONFILE(t) sprintf (t,"%s/.mailboxlist",myhomedir ()) #define SUBSCRIPTIONTEMP(t) sprintf (t,"%s/.mlbxlsttmp",myhomedir ()) /* dorc() options */ #define SYSCONFIG "/etc/c-client.cf" /* Special users */ #define ANONYMOUSUSER "nobody" /* anonymous user */ #define UNLOGGEDUSER "root" /* unlogged-in user */ #define ADMINGROUP "mailadm" /* mail administrator group */ /* Function prototypes */ #include "env.h" void rfc822_fixed_date (char *date); long env_init (char *user,char *home); char *myusername_full (unsigned long *flags); #define MU_LOGGEDIN 0 #define MU_NOTLOGGEDIN 1 #define MU_ANONYMOUS 2 #define myusername() \ myusername_full (NIL) char *sysinbox (); char *mailboxdir (char *dst,char *dir,char *name); long dotlock_lock (char *file,DOTLOCK *base,int fd); long dotlock_unlock (DOTLOCK *base); int lockname (char *lock,char *fname,int op,long *pid); int lockfd (int fd,char *lock,int op); int lock_work (char *lock,void *sbuf,int op,long *pid); long chk_notsymlink (char *name,void *sbuf); void unlockfd (int fd,char *lock); long set_mbx_protections (char *mailbox,char *path); long get_dir_protection (char *mailbox); MAILSTREAM *user_flags (MAILSTREAM *stream); char *default_user_flag (unsigned long i); void dorc (char *file,long flag); long path_create (MAILSTREAM *stream,char *mailbox); void grim_pid_reap_status (int pid,int killreq,void *status); #define grim_pid_reap(pid,killreq) \ grim_pid_reap_status (pid,killreq,NIL) long safe_write (int fd,char *buf,long nbytes); void *arm_signal (int sig,void *action); struct passwd *checkpw (struct passwd *pw,char *pass,int argc,char *argv[]); long loginpw (struct passwd *pw,int argc,char *argv[]); long pw_login (struct passwd *pw,char *auser,char *user,char *home,int argc, char *argv[]); void *mm_blocknotify (int reason,void *data);
Upload File
Create Folder