1/*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
5 *
6 * This file contains Original Code and/or Modifications of Original Code
7 * as defined in and that are subject to the Apple Public Source License
8 * Version 2.0 (the 'License'). You may not use this file except in
9 * compliance with the License. The rights granted to you under the License
10 * may not be used to create, or enable the creation or redistribution of,
11 * unlawful or unlicensed copies of an Apple operating system, or to
12 * circumvent, violate, or enable the circumvention or violation of, any
13 * terms of an Apple operating system software license agreement.
14 *
15 * Please obtain a copy of the License at
16 * http://www.opensource.apple.com/apsl/ and read it before using this file.
17 *
18 * The Original Code and all software distributed under the License are
19 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
20 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
21 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
22 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
23 * Please see the License for the specific language governing rights and
24 * limitations under the License.
25 *
26 * @APPLE_OSREFERENCE_LICENSE_HEADER_END@
27 */
28/*
29 * Mach Operating System
30 * Copyright (c) 1987 Carnegie-Mellon University
31 * All rights reserved.  The CMU software License Agreement specifies
32 * the terms and conditions for use and redistribution.
33 */
34
35/*
36 * Definitions for the mig interface to the network name service.
37 */
38
39/*
40 * HISTORY:
41 * 28-Jul-88  Mary R. Thompson (mrt) at Carnegie Mellon
42 *	Copied definitions of NAME_NOT_YOURS and NAME_NOT_CHECKED_IN
43 *	from the old netname_defs.h so that old code would not break
44 *
45 *  8-Mar-88  Daniel Julin (dpj) at Carnegie-Mellon University
46 *	Added NETNAME_INVALID_PORT.
47 *
48 * 28-Feb-88  Daniel Julin (dpj) at Carnegie-Mellon University
49 *	Added NETNAME_PENDING.
50 *
51 * 23-Dec-86  Robert Sansom (rds) at Carnegie Mellon University
52 *	Copied from the previous version of the network server.
53 *
54 */
55
56#ifndef	_NETNAME_DEFS_
57#define	_NETNAME_DEFS_
58
59#define NETNAME_SUCCESS		(0)
60#define	NETNAME_PENDING		(-1)
61#define NETNAME_NOT_YOURS	(1000)
62#define NAME_NOT_YOURS		(1000)
63#define NETNAME_NOT_CHECKED_IN	(1001)
64#define NAME_NOT_CHECKED_IN	(1001)
65#define NETNAME_NO_SUCH_HOST	(1002)
66#define NETNAME_HOST_NOT_FOUND	(1003)
67#define	NETNAME_INVALID_PORT	(1004)
68
69typedef char netname_name_t[80];
70
71#endif /* NETNAME_DEFS_ */
72