home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / xfs / handle.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-10-04  |  2.1 KB  |  57 lines

  1. /*
  2.  * Copyright (c) 1995, 2001-2003, 2005 Silicon Graphics, Inc.
  3.  * All Rights Reserved.
  4.  *
  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.
  8.  *
  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.
  13.  *
  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
  17.  */
  18. #ifndef __HANDLE_H__
  19. #define __HANDLE_H__
  20.  
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24.  
  25. struct fsdmidata;
  26. struct attrlist_cursor;
  27. struct parent;
  28.  
  29. extern int  path_to_handle (char *__path, void **__hanp, size_t *__hlen);
  30. extern int  path_to_fshandle (char *__path, void **__fshanp, size_t *__fshlen);
  31. extern int  handle_to_fshandle (void *__hanp, size_t __hlen, void **__fshanp,
  32.                 size_t *__fshlen);
  33. extern void free_handle (void *__hanp, size_t __hlen);
  34. extern int  open_by_fshandle (void *__fshanp, size_t __fshlen, int __rw);
  35. extern int  open_by_handle (void *__hanp, size_t __hlen, int __rw);
  36. extern int  readlink_by_handle (void *__hanp, size_t __hlen, void *__buf,
  37.                 size_t __bs);
  38. extern int  attr_multi_by_handle (void *__hanp, size_t __hlen, void *__buf,
  39.                   int __rtrvcnt, int __flags);
  40. extern int  attr_list_by_handle (void *__hanp, size_t __hlen, void *__buf,
  41.                  size_t __bufsize, int __flags,
  42.                  struct attrlist_cursor *__cursor);
  43. extern int  parents_by_handle(void *__hanp, size_t __hlen,
  44.                   struct parent *__buf, size_t __bufsize,
  45.                   unsigned int *__count);
  46. extern int  parentpaths_by_handle(void *__hanp, size_t __hlen,
  47.                   struct parent *__buf, size_t __bufsize,
  48.                   unsigned int *__count);
  49. extern int  fssetdm_by_handle (void *__hanp, size_t __hlen,
  50.                    struct fsdmidata *__fsdmi);
  51.  
  52. #ifdef __cplusplus
  53. }
  54. #endif
  55.  
  56. #endif    /* __HANDLE_H__ */
  57.