imapext-2007

view src/osdep/mac/os_mac.c @ 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 /* PPC cretins broke the MachineLocation struct */
38 #define gmtFlags u
40 #include <limits.h>
41 #include <time.h>
42 #include <stdio.h>
43 #include <fcntl.h>
44 #define tcp_port MacTCP_port
45 #include <MacTCPCommonTypes.h>
46 #include <AddressXlation.h>
47 #include <TCPPB.h>
48 #include <Desk.h>
49 #include <Devices.h>
50 #include <Errors.h>
51 #include <Files.h>
52 #include <Fonts.h>
53 #include <Menus.h>
54 #include <Script.h>
55 #include <ToolUtils.h>
56 #include <Windows.h>
57 #undef tcp_port
59 #include "tcp_mac.h" /* must be before osdep.h */
60 #include "mail.h"
61 #include "osdep.h"
62 #include "misc.h"
64 static short TCPdriver = 0; /* MacTCP's reference number */
65 short resolveropen = 0; /* TCP's resolver open */
68 #include "env_mac.c"
69 #include "fs_mac.c"
70 #include "ftl_mac.c"
71 #include "nl_mac.c"
72 #include "tcp_mac.c"
74 #define open(a,b,c) open (a,b)
75 #define server_login(user,pass,authuser,argc,argv) NIL
76 #define authserver_login(user,authuser,argc,argv) NIL
77 #define myusername() "" /* dummy definition to prevent build errors */
78 #define MD5ENABLE ""
80 #include "auth_md5.c"
81 #include "auth_pla.c"
82 #include "auth_log.c"

UW-IMAP'd extensions by yuuji