~ubuntu-branches/debian/stretch/alpine/stretch

« back to all changes in this revision

Viewing changes to imap/src/osdep/mac/os_mac.c

  • Committer: Bazaar Package Importer
  • Author(s): Asheesh Laroia
  • Date: 2007-02-17 13:17:42 UTC
  • Revision ID: james.westby@ubuntu.com-20070217131742-99x5c6cpg1pbkdhw
Tags: upstream-0.82+dfsg
ImportĀ upstreamĀ versionĀ 0.82+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 */
 
13
 
 
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
 */
 
28
 
 
29
 
 
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
 */
 
35
 
 
36
/* PPC cretins broke the MachineLocation struct */
 
37
 
 
38
#define gmtFlags u
 
39
 
 
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
 
58
 
 
59
#include "tcp_mac.h"            /* must be before osdep.h */
 
60
#include "mail.h"
 
61
#include "osdep.h"
 
62
#include "misc.h"
 
63
 
 
64
static short TCPdriver = 0;     /* MacTCP's reference number */
 
65
short resolveropen = 0;         /* TCP's resolver open */
 
66
 
 
67
 
 
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"
 
73
 
 
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 ""
 
79
 
 
80
#include "auth_md5.c"
 
81
#include "auth_pla.c"
 
82
#include "auth_log.c"