imapext-2007
diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/osdep/mac/os_mac.h Mon Sep 14 15:17:45 2009 +0900 1.3 @@ -0,0 +1,69 @@ 1.4 +/* ======================================================================== 1.5 + * Copyright 1988-2006 University of Washington 1.6 + * 1.7 + * Licensed under the Apache License, Version 2.0 (the "License"); 1.8 + * you may not use this file except in compliance with the License. 1.9 + * You may obtain a copy of the License at 1.10 + * 1.11 + * http://www.apache.org/licenses/LICENSE-2.0 1.12 + * 1.13 + * 1.14 + * ======================================================================== 1.15 + */ 1.16 + 1.17 +/* 1.18 + * Program: Operating-system dependent routines -- Macintosh version 1.19 + * 1.20 + * Author: Mark Crispin 1.21 + * Networks and Distributed Computing 1.22 + * Computing & Communications 1.23 + * University of Washington 1.24 + * Administration Building, AG-44 1.25 + * Seattle, WA 98195 1.26 + * Internet: MRC@CAC.Washington.EDU 1.27 + * 1.28 + * Date: 26 January 1992 1.29 + * Last Edited: 30 August 2006 1.30 + */ 1.31 + 1.32 + 1.33 +/* This is a totally new operating-system dependent module for the Macintosh, 1.34 + * written using THINK C on my Mac PowerBook-100 in my free time. 1.35 + * Unlike earlier efforts, this version requires no external TCP library. It 1.36 + * also takes advantage of the Map panel in System 7 for the timezone. 1.37 + */ 1.38 + 1.39 +#include <stdlib.h> 1.40 +#include <string.h> 1.41 +#include <types.h> 1.42 +#include <unix.h> 1.43 +#ifndef noErr 1.44 +#include <Desk.h> 1.45 +#include <Devices.h> 1.46 +#include <Errors.h> 1.47 +#include <Events.h> 1.48 +#include <Fonts.h> 1.49 +#include <Memory.h> 1.50 +#include <Menus.h> 1.51 +#include <ToolUtils.h> 1.52 +#include <Windows.h> 1.53 +#endif 1.54 + 1.55 +#define L_SET SEEK_SET 1.56 +#define L_INCR SEEK_CUR 1.57 +#define L_XTND SEEK_END 1.58 + 1.59 +extern short resolveropen; /* make this global so caller can sniff */ 1.60 + 1.61 +#include "env_mac.h" 1.62 +#include "fs.h" 1.63 +#include "ftl.h" 1.64 +#include "nl.h" 1.65 +#include "tcp.h" 1.66 + 1.67 +#define TCPDRIVER "\p.IPP" 1.68 + 1.69 +#define gethostid clock 1.70 + 1.71 +long wait (void); 1.72 +long random (void);