]>
Commit | Line | Data |
---|---|---|
2bd0ea18 | 1 | /* |
93d9f139 | 2 | * Copyright (c) 1995, 2001-2003 Silicon Graphics, Inc. All Rights Reserved. |
a32ec6a8 | 3 | * |
2bd0ea18 | 4 | * This program is free software; you can redistribute it and/or modify it |
a32ec6a8 DR |
5 | * under the terms of version 2.1 of the GNU Lesser General Public License |
6 | * as published by the Free Software Foundation. | |
7 | * | |
2bd0ea18 NS |
8 | * This program is distributed in the hope that it would be useful, but |
9 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
a32ec6a8 | 11 | * |
2bd0ea18 NS |
12 | * Further, this software is distributed without any warranty that it is |
13 | * free of the rightful claim of any third person regarding infringement | |
14 | * or the like. Any license provided herein, whether implied or | |
15 | * otherwise, applies only to this software file. Patent licenses, if | |
16 | * any, provided herein do not apply to combinations of this program with | |
17 | * other software, or any other product whatsoever. | |
a32ec6a8 DR |
18 | * |
19 | * You should have received a copy of the GNU Lesser General Public | |
20 | * License along with this program; if not, write the Free Software | |
21 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, | |
22 | * USA. | |
23 | * | |
2bd0ea18 NS |
24 | * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy, |
25 | * Mountain View, CA 94043, or: | |
a32ec6a8 DR |
26 | * |
27 | * http://www.sgi.com | |
28 | * | |
29 | * For further information regarding this notice, see: | |
30 | * | |
2bd0ea18 NS |
31 | * http://oss.sgi.com/projects/GenInfo/SGIGPLNoticeExplan/ |
32 | */ | |
33 | #ifndef __HANDLE_H__ | |
34 | #define __HANDLE_H__ | |
35 | ||
36 | #ifdef __cplusplus | |
37 | extern "C" { | |
38 | #endif | |
39 | ||
14290264 NS |
40 | struct fsdmidata; |
41 | struct attrlist_cursor; | |
42 | ||
2bd0ea18 NS |
43 | extern int path_to_handle (char *__path, void **__hanp, size_t *__hlen); |
44 | extern int path_to_fshandle (char *__path, void **__hanp, size_t *__hlen); | |
2bd0ea18 NS |
45 | extern int handle_to_fshandle (void *__hanp, size_t __hlen, void **__fshanp, |
46 | size_t *__fshlen); | |
47 | extern void free_handle (void *__hanp, size_t __hlen); | |
48 | extern int open_by_handle (void *__hanp, size_t __hlen, int __rw); | |
49 | extern int readlink_by_handle (void *__hanp, size_t __hlen, void *__buf, | |
50 | size_t __bs); | |
14290264 NS |
51 | extern int attr_multi_by_handle (void *__hanp, size_t __hlen, void *__buf, |
52 | int __rtrvcnt, int __flags); | |
53 | extern int attr_list_by_handle (void *__hanp, size_t __hlen, void *__buf, | |
54 | size_t __bufsize, int __flags, | |
55 | struct attrlist_cursor *__cursor); | |
e1864286 DR |
56 | extern int fssetdm_by_handle (void *__hanp, size_t __hlen, |
57 | struct fsdmidata *__fsdmi); | |
2bd0ea18 NS |
58 | |
59 | #ifdef __cplusplus | |
60 | } | |
61 | #endif | |
62 | ||
63 | #endif /* __HANDLE_H__ */ |