]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - include/jdm.h
2 * Copyright (c) 2000-2002, 2005 Silicon Graphics, Inc.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation.
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
22 typedef void jdm_fshandle_t
; /* filesystem handle */
23 typedef void jdm_filehandle_t
; /* filehandle */
26 struct attrlist_cursor
;
29 extern jdm_fshandle_t
*
30 jdm_getfshandle( char *mntpnt
);
33 jdm_new_filehandle( jdm_filehandle_t
**handlep
, /* new filehandle */
34 size_t *hlen
, /* new filehandle size */
35 jdm_fshandle_t
*fshandlep
, /* filesystem filehandle */
36 struct xfs_bstat
*sp
); /* bulkstat info */
39 jdm_delete_filehandle( jdm_filehandle_t
*handlep
,/* filehandle to delete */
40 size_t hlen
); /* filehandle size */
43 jdm_open( jdm_fshandle_t
*fshandlep
,
48 jdm_readlink( jdm_fshandle_t
*fshandlep
,
54 jdm_attr_multi( jdm_fshandle_t
*fshp
,
56 char *bufp
, int rtrvcnt
, int flags
);
59 jdm_attr_list( jdm_fshandle_t
*fshp
,
61 char *bufp
, size_t bufsz
, int flags
,
62 struct attrlist_cursor
*cursor
);
65 jdm_parents( jdm_fshandle_t
*fshp
,
67 struct parent
*bufp
, size_t bufsz
,
71 jdm_parentpaths( jdm_fshandle_t
*fshp
,
73 struct parent
*bufp
, size_t bufsz
,
76 /* macro for determining the size of a structure member */
77 #define sizeofmember( t, m ) sizeof( ( ( t * )0 )->m )
79 /* macro for calculating the offset of a structure member */
80 #define offsetofmember( t, m ) ( ( size_t )( char * )&( ( ( t * )0 )->m ) )
82 #endif /* __JDM_H__ */