home *** CD-ROM | disk | FTP | other *** search
/ ftp.uv.es / 2014.11.ftp.uv.es.tar / ftp.uv.es / pub / unix / pine4.10.tar.gz / pine4.10.tar / pine4.10 / imap / src / osdep / amiga / env_ami.h < prev    next >
C/C++ Source or Header  |  1998-12-11  |  3KB  |  71 lines

  1. /*
  2.  * Program:    UNIX environment routines
  3.  *
  4.  * Author:    Mark Crispin
  5.  *        Networks and Distributed Computing
  6.  *        Computing & Communications
  7.  *        University of Washington
  8.  *        Administration Building, AG-44
  9.  *        Seattle, WA  98195
  10.  *        Internet: MRC@CAC.Washington.EDU
  11.  *
  12.  * Date:    1 August 1988
  13.  * Last Edited:    10 December 1998
  14.  *
  15.  * Copyright 1998 by the University of Washington
  16.  *
  17.  *  Permission to use, copy, modify, and distribute this software and its
  18.  * documentation for any purpose and without fee is hereby granted, provided
  19.  * that the above copyright notice appears in all copies and that both the
  20.  * above copyright notice and this permission notice appear in supporting
  21.  * documentation, and that the name of the University of Washington not be
  22.  * used in advertising or publicity pertaining to distribution of the software
  23.  * without specific, written prior permission.  This software is made available
  24.  * "as is", and
  25.  * THE UNIVERSITY OF WASHINGTON DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED,
  26.  * WITH REGARD TO THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED
  27.  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN
  28.  * NO EVENT SHALL THE UNIVERSITY OF WASHINGTON BE LIABLE FOR ANY SPECIAL,
  29.  * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  30.  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, TORT
  31.  * (INCLUDING NEGLIGENCE) OR STRICT LIABILITY, ARISING OUT OF OR IN CONNECTION
  32.  * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  33.  *
  34.  */
  35.  
  36.  
  37. #define SUBSCRIPTIONFILE(t) sprintf (t,"%s/.mailboxlist",myhomedir ())
  38. #define SUBSCRIPTIONTEMP(t) sprintf (t,"%s/.mlbxlsttmp",myhomedir ())
  39.  
  40. /* Function prototypes */
  41.  
  42. #include "env.h"
  43.  
  44. long env_init (char *user,char *home);
  45. char *myusername_full (unsigned long *flags);
  46. #define MU_LOGGEDIN 0
  47. #define MU_NOTLOGGEDIN 1
  48. #define MU_ANONYMOUS 2
  49. #define myusername() \
  50.   myusername_full (NIL)
  51. char *sysinbox ();
  52. char *mailboxdir (char *dst,char *dir,char *name);
  53. int lockname (char *lock,char *fname,int op);
  54. int lockfd (int fd,char *lock,int op);
  55. int lock_work (char *lock,void *sbuf,int op);
  56. long chk_notsymlink (char *name);
  57. void unlockfd (int fd,char *lock);
  58. long set_mbx_protections (char *mailbox,char *path);
  59. MAILSTREAM *user_flags (MAILSTREAM *stream);
  60. char *default_user_flag (unsigned long i);
  61. void dorc (char *file,long flag);
  62. long path_create (MAILSTREAM *stream,char *mailbox);
  63. void grim_pid_reap_status (int pid,int killreq,void *status);
  64. #define grim_pid_reap(pid,killreq) \
  65.   grim_pid_reap_status (pid,killreq,NIL)
  66. long safe_write (int fd,char *buf,long nbytes);
  67. void *arm_signal (int sig,void *action);
  68. struct passwd *checkpw (struct passwd *pw,char *pass,int argc,char *argv[]);
  69. long loginpw (struct passwd *pw,int argc,char *argv[]);
  70. long pw_login (struct passwd *pw,char *user,char *home,int argc,char *argv[]);
  71.