]>
Commit | Line | Data |
---|---|---|
959ef981 | 1 | // SPDX-License-Identifier: LGPL-2.1 |
2bd0ea18 | 2 | /* |
f302e9e4 NS |
3 | * Copyright (c) 1995, 2001-2003, 2005 Silicon Graphics, Inc. |
4 | * All Rights Reserved. | |
2bd0ea18 NS |
5 | */ |
6 | #ifndef __HANDLE_H__ | |
7 | #define __HANDLE_H__ | |
8 | ||
9 | #ifdef __cplusplus | |
10 | extern "C" { | |
11 | #endif | |
12 | ||
14290264 NS |
13 | struct fsdmidata; |
14 | struct attrlist_cursor; | |
258b00ea | 15 | struct parent; |
14290264 | 16 | |
2bd0ea18 | 17 | extern int path_to_handle (char *__path, void **__hanp, size_t *__hlen); |
a3cbe7cd | 18 | extern int path_to_fshandle (char *__path, void **__fshanp, size_t *__fshlen); |
502544b4 | 19 | extern int fd_to_handle (int fd, void **hanp, size_t *hlen); |
56f6ba21 | 20 | extern int handle_to_fsfd(void *, char **); |
2bd0ea18 NS |
21 | extern int handle_to_fshandle (void *__hanp, size_t __hlen, void **__fshanp, |
22 | size_t *__fshlen); | |
23 | extern void free_handle (void *__hanp, size_t __hlen); | |
a3cbe7cd | 24 | extern int open_by_fshandle (void *__fshanp, size_t __fshlen, int __rw); |
2bd0ea18 NS |
25 | extern int open_by_handle (void *__hanp, size_t __hlen, int __rw); |
26 | extern int readlink_by_handle (void *__hanp, size_t __hlen, void *__buf, | |
27 | size_t __bs); | |
14290264 NS |
28 | extern int attr_multi_by_handle (void *__hanp, size_t __hlen, void *__buf, |
29 | int __rtrvcnt, int __flags); | |
30 | extern int attr_list_by_handle (void *__hanp, size_t __hlen, void *__buf, | |
31 | size_t __bufsize, int __flags, | |
32 | struct attrlist_cursor *__cursor); | |
60ac13e8 TS |
33 | extern int parents_by_handle(void *__hanp, size_t __hlen, |
34 | struct parent *__buf, size_t __bufsize, | |
35 | unsigned int *__count); | |
36 | extern int parentpaths_by_handle(void *__hanp, size_t __hlen, | |
37 | struct parent *__buf, size_t __bufsize, | |
38 | unsigned int *__count); | |
e1864286 DR |
39 | extern int fssetdm_by_handle (void *__hanp, size_t __hlen, |
40 | struct fsdmidata *__fsdmi); | |
2bd0ea18 | 41 | |
852fe013 DW |
42 | void fshandle_destroy(void); |
43 | ||
2bd0ea18 NS |
44 | #ifdef __cplusplus |
45 | } | |
46 | #endif | |
47 | ||
48 | #endif /* __HANDLE_H__ */ |