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 / mac / os_mac.h < prev    next >
C/C++ Source or Header  |  1998-09-16  |  2KB  |  73 lines

  1. /*
  2.  * Program:    Operating-system dependent routines -- Macintosh 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:    26 January 1992
  10.  * Last Edited:    8 August 1995
  11.  *
  12.  * Copyright 1995 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 notice appears 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. /*  This is a totally new operating-system dependent module for the Macintosh,
  34.  * written using THINK C on my Mac PowerBook-100 in my free time.
  35.  * Unlike earlier efforts, this version requires no external TCP library.  It
  36.  * also takes advantage of the Map panel in System 7 for the timezone.
  37.  */
  38.  
  39. #include <stdlib.h>
  40. #include <string.h>
  41. #include <types.h>
  42. #include <unix.h>
  43. #ifndef noErr
  44. #include <Desk.h>
  45. #include <Devices.h>
  46. #include <Errors.h>
  47. #include <Events.h>
  48. #include <Fonts.h>
  49. #include <Memory.h>
  50. #include <Menus.h>
  51. #include <ToolUtils.h>
  52. #include <Windows.h>
  53. #endif
  54.  
  55. #define L_SET SEEK_SET
  56. #define L_INCR SEEK_CUR
  57. #define L_XTND SEEK_END
  58.  
  59. extern short resolveropen;    /* make this global so caller can sniff */
  60.  
  61. #include "env_mac.h"
  62. #include "fs.h"
  63. #include "ftl.h"
  64. #include "nl.h"
  65. #include "tcp.h"
  66.  
  67. #define TCPDRIVER "\p.IPP"
  68.  
  69. #define gethostid clock
  70.  
  71. long wait (void);
  72. long random (void);
  73.