/alps/fastwriter

To get this branch, use:
bzr branch http://suren.me/webbzr/alps/fastwriter

« back to all changes in this revision

Viewing changes to default.c

  • Committer: Suren A. Chilingaryan
  • Date: 2011-12-13 14:09:17 UTC
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: csa@dside.dyndns.org-20111213140917-9kb5rny3tii9zp2n
Compile-in default api descriptor

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
#include "fastwriter.h"
31
31
#include "private.h"
32
32
#include "sysinfo.h"
 
33
#include "default.h"
33
34
 
34
35
#define SYNC_MODE
35
36
#define HAVE_FALLOCATE
48
49
} fastwriter_default_t;
49
50
 
50
51
 
51
 
int fastwriter_open_default(fastwriter_t *fw, const char *name, fastwriter_flags_t flags) {
 
52
int fastwriter_default_open(fastwriter_t *fw, const char *name, fastwriter_flags_t flags) {
52
53
    int err;
53
54
    char fs[16];
54
55
 
108
109
}
109
110
 
110
111
 
111
 
void fastwriter_close_default(fastwriter_t *fw) {
 
112
void fastwriter_default_close(fastwriter_t *fw) {
112
113
    if (fw->ctx) {
113
114
        fastwriter_default_t *ctx = (fastwriter_default_t*)fw->ctx;
114
115
 
127
128
}
128
129
 
129
130
 
130
 
int fastwriter_write_default(fastwriter_t *fw, fastwriter_write_flags_t flags, size_t size, void *data, size_t *written) {
 
131
int fastwriter_default_write(fastwriter_t *fw, fastwriter_write_flags_t flags, size_t size, void *data, size_t *written) {
131
132
    size_t sum = 0;
132
133
    ssize_t res;
133
134
    fastwriter_default_t *ctx = (fastwriter_default_t*)fw->ctx;