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 / tops-20 / os_t20.c < prev    next >
C/C++ Source or Header  |  1998-12-16  |  2KB  |  76 lines

  1. /*
  2.  * Program:    Operating-system dependent routines -- TOPS-20 version
  3.  *
  4.  * Author:    Mark Crispin
  5.  *        6158 Lariat Loop NE
  6.  *        Bainbridge Island, WA  98110-2098
  7.  *        Internet: MRC@Panda.COM
  8.  *
  9.  * Date:    1 August 1988
  10.  * Last Edited:    15 December 1998
  11.  *
  12.  * Copyright 1998 by Mark Crispin
  13.  *
  14.  *  Permission to use, copy, modify, and distribute this software and its
  15.  * documentation for any purpose and without fee is hereby granted, provided
  16.  * that the above copyright notices appear in all copies and that both the
  17.  * above copyright notices and this permission notice appear in supporting
  18.  * documentation, and that the name of Mark Crispin not be used in advertising
  19.  * or publicity pertaining to distribution of the software without specific,
  20.  * written prior permission.  This software is made available "as is", and
  21.  * MARK CRISPIN DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, WITH REGARD TO
  22.  * THIS SOFTWARE, INCLUDING WITHOUT LIMITATION ALL IMPLIED WARRANTIES OF
  23.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE, AND IN NO EVENT SHALL
  24.  * MARK CRISPIN BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES
  25.  * OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  26.  * WHETHER IN AN ACTION OF CONTRACT, TORT (INCLUDING NEGLIGENCE) OR STRICT
  27.  * LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
  28.  * THIS SOFTWARE.
  29.  *
  30.  */
  31.  
  32.  
  33. /* Dedication:
  34.  * This file is dedicated with affection to the TOPS-20 operating system, which
  35.  * set standards for user and programmer friendliness that have still not been
  36.  * equaled by more `modern' operating systems.
  37.  * Wasureru mon ka!!!!
  38.  */
  39.  
  40. #include <jsys.h>        /* must be before tcp_t20.h */
  41. #include "tcp_t20.h"        /* must be before osdep include tcp.h */
  42. #include "mail.h"
  43. #include <time.h>
  44. #include "osdep.h"
  45. #include <sys/time.h>
  46. #include "misc.h"
  47. #include <stdio.h>
  48. #include <fcntl.h>
  49. #include <sys/stat.h>
  50.  
  51. #include "fs_t20.c"
  52. #include "ftl_t20.c"
  53. #include "nl_t20.c"
  54. #include "env_t20.c"
  55. #include "tcp_t20.c"
  56. #include "log_t20.c"
  57.  
  58. #define MD5ENABLE "PS:<SYSTEM>CRAM-MD5.PWD"
  59. #include "auth_md5.c"
  60. #include "auth_log.c"
  61.  
  62. /* Emulator for UNIX gethostid() call
  63.  * Returns: host id
  64.  */
  65.  
  66. long gethostid ()
  67. {
  68.   int argblk[5];
  69. #ifndef _APRID
  70. #define _APRID 28
  71. #endif
  72.   argblk[1] = _APRID;
  73.   jsys (GETAB,argblk);
  74.   return (long) argblk[1];
  75. }
  76.