]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/handle.h
Update copyright dates (again)
[thirdparty/xfsprogs-dev.git] / include / handle.h
CommitLineData
2bd0ea18 1/*
0d3e0b37 2 * Copyright (c) 1995, 2001-2002 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
37extern "C" {
38#endif
39
14290264
NS
40struct fsdmidata;
41struct attrlist_cursor;
42
2bd0ea18
NS
43extern int path_to_handle (char *__path, void **__hanp, size_t *__hlen);
44extern int path_to_fshandle (char *__path, void **__hanp, size_t *__hlen);
45extern int fd_to_handle (int __fd, void **__hanp, size_t *__hlen);
46extern int handle_to_fshandle (void *__hanp, size_t __hlen, void **__fshanp,
47 size_t *__fshlen);
89184fbc 48extern int handle_to_fsfd (void *__hanp);
2bd0ea18
NS
49extern void free_handle (void *__hanp, size_t __hlen);
50extern int open_by_handle (void *__hanp, size_t __hlen, int __rw);
51extern int readlink_by_handle (void *__hanp, size_t __hlen, void *__buf,
52 size_t __bs);
14290264
NS
53extern int attr_multi_by_handle (void *__hanp, size_t __hlen, void *__buf,
54 int __rtrvcnt, int __flags);
55extern int attr_list_by_handle (void *__hanp, size_t __hlen, void *__buf,
56 size_t __bufsize, int __flags,
57 struct attrlist_cursor *__cursor);
e1864286
DR
58extern int fssetdm_by_handle (void *__hanp, size_t __hlen,
59 struct fsdmidata *__fsdmi);
2bd0ea18
NS
60
61#ifdef __cplusplus
62}
63#endif
64
65#endif /* __HANDLE_H__ */