glusterfs  8.2
About: GlusterFS is a network/cluster filesystem. The storage server (or each in a cluster) runs glusterfsd and the clients use mount command or glusterfs client to mount the exported filesystem. Release series 8.x (latest version).
  Fossies Dox: glusterfs-8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

strfd.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2014 Red Hat, Inc. <http://www.redhat.com>
3  This file is part of GlusterFS.
4 
5  This file is licensed to you under your choice of the GNU Lesser
6  General Public License, version 3 or any later version (LGPLv3 or
7  later), or the GNU General Public License, version 2 (GPLv2), in all
8  cases as published by the Free Software Foundation.
9 */
10 
11 #ifndef _STRFD_H
12 #define _STRFD_H
13 
14 typedef struct {
15  void *data;
16  size_t alloc_size;
17  size_t size;
18  off_t pos;
19 } strfd_t;
20 
21 strfd_t *
22 strfd_open();
23 
24 int
25 strprintf(strfd_t *strfd, const char *fmt, ...)
26  __attribute__((__format__(__printf__, 2, 3)));
27 
28 int
29 strvprintf(strfd_t *strfd, const char *fmt, va_list ap);
30 
31 int
32 strfd_close(strfd_t *strfd);
33 
34 #endif
strfd_t::size
size_t size
Definition: strfd.h:17
strfd_t::alloc_size
size_t alloc_size
Definition: strfd.h:16
strvprintf
int strvprintf(strfd_t *strfd, const char *fmt, va_list ap)
Definition: strfd.c:29
strfd_close
int strfd_close(strfd_t *strfd)
Definition: strfd.c:87
strfd_t::data
void * data
Definition: strfd.h:15
strprintf
int strprintf(strfd_t *strfd, const char *fmt,...)
Definition: strfd.c:74
strfd_t::pos
off_t pos
Definition: strfd.h:18
strfd_open
strfd_t * strfd_open()
Definition: strfd.c:19
strfd_t
Definition: strfd.h:14