|
|
1.1 root 1: /*
2: * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3: *
4: * @APPLE_LICENSE_HEADER_START@
5: *
6: * Portions Copyright (c) 1999 Apple Computer, Inc. All Rights
7: * Reserved. This file contains Original Code and/or Modifications of
8: * Original Code as defined in and that are subject to the Apple Public
9: * Source License Version 1.1 (the "License"). You may not use this file
10: * except in compliance with the License. Please obtain a copy of the
11: * License at http://www.apple.com/publicsource and read it before using
12: * this file.
13: *
14: * The Original Code and all software distributed under the License are
15: * distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER
16: * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
17: * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
18: * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT. Please see the
19: * License for the specific language governing rights and limitations
20: * under the License.
21: *
22: * @APPLE_LICENSE_HEADER_END@
23: */
24:
25: /*
26: * Title: sysglue.h - AppleTalk protocol to streams interface
27: *
28: * Facility: AppleTalk Protocol Execution Environment
29: *
30: * Author: Gregory Burns, Creation Date: Jun-3-1988
31: *
32: ******************************************************************************
33: * *
34: * Copyright (c) 1988 Apple Computer, Inc. *
35: * *
36: * The information contained herein is subject to change without *
37: * notice and should not be construed as a commitment by Apple *
38: * Computer, Inc. Apple Computer, Inc. assumes no responsibility *
39: * for any errors that may appear. *
40: * *
41: * Confidential and Proprietary to Apple Computer, Inc. *
42: * *
43: ******************************************************************************
44: *
45: * History:
46: * X01-001 Gregory Burns 3-Jun-1988
47: * Initial Creation.
48: *
49: */
50:
51: #ifndef __SYSGLUE__
52: #define __SYSGLUE__
53:
54: #include <h/debug.h>
55: #include <h/at-config.h>
56: #include <h/localglue.h>
57:
58: /* Some basics ... */
59:
60: #ifndef TRUE
61: #define TRUE 1
62: #endif
63: #ifndef FALSE
64: #define FALSE 0
65: #endif
66:
67: #ifdef _KERNEL
68: #define SYS_HZ HZ /* Number of clock (SYS_SETTIMER) ticks per second */
69: #else
70: #define OPEN open
71: #define CLOSE close
72: #define READ read
73: #define WRITE write
74: #define READV readv
75: #define WRITEV writev
76: #define IOCTL ioctl
77: #define SELECT select
78: #define ERRNO errno
79: #endif
80:
81: #ifdef RHAPSODY
82: #ifndef I_STR
83: #define I_STR 666
84: #endif
85: #else
86: #ifdef LITTLE_ENDIAN
87: #else
88: #define htonl(x) (x)
89: #define htons(x) (x)
90: #define ntohl(x) (x)
91: #define ntohs(x) (x)
92: #endif
93: #endif
94:
95: #endif /* __SYSGLUE__ */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.