]> git.saurik.com Git - apple/libinfo.git/blob - lookup.subproj/lookup.defs
Libinfo-173.tar.gz
[apple/libinfo.git] / lookup.subproj / lookup.defs
1 /*
2 * Copyright (c) 1999 Apple Computer, Inc. All rights reserved.
3 *
4 * @APPLE_LICENSE_HEADER_START@
5 *
6 * Copyright (c) 1999-2003 Apple Computer, Inc. All Rights Reserved.
7 *
8 * This file contains Original Code and/or Modifications of Original Code
9 * as defined in and that are subject to the Apple Public Source License
10 * Version 2.0 (the 'License'). You may not use this file except in
11 * compliance with the License. Please obtain a copy of the License at
12 * http://www.opensource.apple.com/apsl/ and read it before using this
13 * file.
14 *
15 * The Original Code and all software distributed under the License are
16 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER
17 * EXPRESS OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES,
18 * INCLUDING WITHOUT LIMITATION, ANY WARRANTIES OF MERCHANTABILITY,
19 * FITNESS FOR A PARTICULAR PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT.
20 * Please see the License for the specific language governing rights and
21 * limitations under the License.
22 *
23 * @APPLE_LICENSE_HEADER_END@
24 */
25 /*
26 * Lookup protocol specification - internal to NeXT
27 * Copyright (C) 1989 by NeXT, Inc.
28 *
29 * History:
30 * 25-Jun-1998 Umesh Vaishampayan (umeshv@apple.com)
31 * Ported to MacOSX.
32 */
33
34 subsystem lookup 4241775;
35 serverprefix _;
36
37 import <netinfo/lookup_types.h>;
38
39 #include <mach/std_types.defs>
40 #include <mach/mach_types.defs>
41
42 type lookup_name = array [256] of MACH_MSG_TYPE_CHAR;
43 type unit = array [4] of MACH_MSG_TYPE_CHAR;
44
45 /*
46 * Can't reduce the size of the following without blowing binary compatibility
47 * with libc (but not libsys, since it is always shared).
48 */
49 type inline_data = array [ * : 4096 ] of unit;
50 type ooline_data = ^ array [] of unit;
51
52 routine _lookup_link_secure
53 (
54 server : mach_port_t;
55 name : lookup_name;
56 out procno : int;
57 UserSecToken token : security_token_t
58 );
59
60 routine _lookup_all_secure
61 (
62 server : mach_port_t;
63 proc : int;
64 indata : inline_data;
65 out outdata : ooline_data;
66 UserSecToken token : security_token_t
67 );
68
69 routine _lookup_one_secure
70 (
71 server : mach_port_t;
72 proc : int;
73 indata : inline_data;
74 out outdata : inline_data;
75 UserSecToken token : security_token_t
76 );
77
78 routine _lookup_ooall_secure
79 (
80 server : mach_port_t;
81 proc : int;
82 indata : ooline_data;
83 out outdata : ooline_data;
84 UserSecToken token : security_token_t
85 );