]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/handle.h
xfsprogs: Release v6.15.0
[thirdparty/xfsprogs-dev.git] / include / handle.h
CommitLineData
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
10extern "C" {
11#endif
12
14290264
NS
13struct fsdmidata;
14struct attrlist_cursor;
258b00ea 15struct parent;
14290264 16
2bd0ea18 17extern int path_to_handle (char *__path, void **__hanp, size_t *__hlen);
a3cbe7cd 18extern int path_to_fshandle (char *__path, void **__fshanp, size_t *__fshlen);
502544b4 19extern int fd_to_handle (int fd, void **hanp, size_t *hlen);
56f6ba21 20extern int handle_to_fsfd(void *, char **);
2bd0ea18
NS
21extern int handle_to_fshandle (void *__hanp, size_t __hlen, void **__fshanp,
22 size_t *__fshlen);
23extern void free_handle (void *__hanp, size_t __hlen);
a3cbe7cd 24extern int open_by_fshandle (void *__fshanp, size_t __fshlen, int __rw);
2bd0ea18
NS
25extern int open_by_handle (void *__hanp, size_t __hlen, int __rw);
26extern int readlink_by_handle (void *__hanp, size_t __hlen, void *__buf,
27 size_t __bs);
14290264
NS
28extern int attr_multi_by_handle (void *__hanp, size_t __hlen, void *__buf,
29 int __rtrvcnt, int __flags);
30extern 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
33extern int parents_by_handle(void *__hanp, size_t __hlen,
34 struct parent *__buf, size_t __bufsize,
35 unsigned int *__count);
36extern int parentpaths_by_handle(void *__hanp, size_t __hlen,
37 struct parent *__buf, size_t __bufsize,
38 unsigned int *__count);
e1864286
DR
39extern int fssetdm_by_handle (void *__hanp, size_t __hlen,
40 struct fsdmidata *__fsdmi);
2bd0ea18 41
852fe013
DW
42void fshandle_destroy(void);
43
2bd0ea18
NS
44#ifdef __cplusplus
45}
46#endif
47
48#endif /* __HANDLE_H__ */