imapext-2007

view src/osdep/mac/os_mac.h @ 0:ada5e610ab86

imap-2007e
author yuuji@gentei.org
date Mon, 14 Sep 2009 15:17:45 +0900
parents
children
line source
1 /* ========================================================================
2 * Copyright 1988-2006 University of Washington
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *
11 * ========================================================================
12 */
14 /*
15 * Program: Operating-system dependent routines -- Macintosh version
16 *
17 * Author: Mark Crispin
18 * Networks and Distributed Computing
19 * Computing & Communications
20 * University of Washington
21 * Administration Building, AG-44
22 * Seattle, WA 98195
23 * Internet: MRC@CAC.Washington.EDU
24 *
25 * Date: 26 January 1992
26 * Last Edited: 30 August 2006
27 */
30 /* This is a totally new operating-system dependent module for the Macintosh,
31 * written using THINK C on my Mac PowerBook-100 in my free time.
32 * Unlike earlier efforts, this version requires no external TCP library. It
33 * also takes advantage of the Map panel in System 7 for the timezone.
34 */
36 #include <stdlib.h>
37 #include <string.h>
38 #include <types.h>
39 #include <unix.h>
40 #ifndef noErr
41 #include <Desk.h>
42 #include <Devices.h>
43 #include <Errors.h>
44 #include <Events.h>
45 #include <Fonts.h>
46 #include <Memory.h>
47 #include <Menus.h>
48 #include <ToolUtils.h>
49 #include <Windows.h>
50 #endif
52 #define L_SET SEEK_SET
53 #define L_INCR SEEK_CUR
54 #define L_XTND SEEK_END
56 extern short resolveropen; /* make this global so caller can sniff */
58 #include "env_mac.h"
59 #include "fs.h"
60 #include "ftl.h"
61 #include "nl.h"
62 #include "tcp.h"
64 #define TCPDRIVER "\p.IPP"
66 #define gethostid clock
68 long wait (void);
69 long random (void);

UW-IMAP'd extensions by yuuji