1
/* ========================================================================
2
* Copyright 1988-2006 University of Washington
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
8
* http://www.apache.org/licenses/LICENSE-2.0
11
* ========================================================================
15
* Program: Operating-system dependent routines -- Macintosh version
17
* Author: Mark Crispin
18
* Networks and Distributed Computing
19
* Computing & Communications
20
* University of Washington
21
* Administration Building, AG-44
23
* Internet: MRC@CAC.Washington.EDU
25
* Date: 26 January 1992
26
* Last Edited: 30 August 2006
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.
36
/* PPC cretins broke the MachineLocation struct */
44
#define tcp_port MacTCP_port
45
#include <MacTCPCommonTypes.h>
46
#include <AddressXlation.h>
55
#include <ToolUtils.h>
59
#include "tcp_mac.h" /* must be before osdep.h */
64
static short TCPdriver = 0; /* MacTCP's reference number */
65
short resolveropen = 0; /* TCP's resolver open */
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 */