Searched refs:fh (Results 1 - 25 of 35) sorted by relevance

12

/barrelfish-2018-10-04/usr/tests/filetests/
H A Dfscanf_test.c31 FILE *fh = fopen("/filetests/fscanf_test.dat", "w"); local
32 if (!fh) {
37 fprintf(fh, "a %d\n", 1234);
38 fprintf(fh, "b %x\n", 1234);
39 fprintf(fh, "c %ld\n", 1234567890UL);
41 fclose(fh);
44 fh = fopen("/filetests/fscanf_test.dat", "r");
45 if (!fh) {
51 r = fscanf(fh, "a %d\n", &val);
56 r = fscanf(fh, "
[all...]
H A Dfread_test.c34 FILE *fh = fopen("/filetests/fread_test.dat", "w"); local
35 if (!fh) {
40 fprintf(fh, "h");
42 fclose(fh);
45 fh = fopen("/filetests/fread_test.dat", "r");
46 if (!fh) {
52 size_t size = fread(ptr, 10, 1, fh);
57 size = fread(ptr, AMOUNT - 10, 1, fh);
62 size = fread(ptr, AMOUNT, 1, fh);
/barrelfish-2018-10-04/lib/vfs/
H A Dvfs_nfs.c75 typedef void resolve_cont_fn(void *st, errval_t err, struct nfs_fh3 fh,
205 struct nfs_file_io_handle *fh; member in struct:nfs_file_parallel_io_handle
217 pfh->fh->status = result->status;
228 memcpy((char *)pfh->fh->data + pfh->chunk_start, res->data.data_val,
230 pfh->fh->size_complete += res->data.data_len;
236 if (pfh->fh->size > newsize) {
237 pfh->fh->size = newsize;
246 errval_t e = nfs_read(client, pfh->fh->handle,
247 pfh->fh->offset + pfh->chunk_start,
254 assert(pfh->fh
344 open_resolve_cont(void *st, errval_t err, struct nfs_fh3 fh, struct fattr3 *fattr) argument
418 create_resolve_cont(void *st, errval_t err, struct nfs_fh3 fh, struct fattr3 *fattr) argument
544 struct nfs_file_io_handle fh; local
640 struct nfs_file_io_handle *fh = &the_fh; local
642 struct nfs_file_io_handle *fh = malloc(sizeof(struct nfs_file_io_handle)); local
997 remove_resolve_cont(void *st, errval_t err, struct nfs_fh3 fh, struct fattr3 *fattr) argument
1085 mkdir_resolve_cont(void *st, errval_t err, struct nfs_fh3 fh, struct fattr3 *fattr) argument
1192 struct nfs_file_io_handle fh; local
[all...]
H A Dvfs_nfs.h16 struct nfs_fh3 fh; member in struct:nfs_handle
H A Dvfs_ramfs.c40 trivfs_fh_t fh; member in struct:ramfs_handle
52 trivfs_fh_t fh = cl->rootfh; local
76 err = cl->rpc->rpc_tx_vtbl.lookup(cl->rpc, fh, pathbuf, &msgerr, &nextfh, &isdir);
82 if (fh == cl->rootfh) { // revalidate root
85 USER_PANIC_ERR(err, "failed to get root fh");
87 fh = cl->rootfh;
100 fh = nextfh;
106 fh = nextfh;
119 *retfh = fh;
130 trivfs_fh_t fh; local
159 trivfs_fh_t fh; local
206 trivfs_fh_t fh; local
554 trivfs_fh_t fh; local
688 trivfs_fh_t fh; local
[all...]
H A Dcache.c135 vfs_handle_t fh; member in struct:dir_entry
153 bool *haveit, bool *deleted, vfs_handle_t *fh)
170 *fh = malloc(sizeof(struct nfs_handle));
171 assert(*fh != NULL);
173 memcpy(*fh, e->fh, sizeof(struct nfs_handle));
175 struct nfs_handle *dest = *fh, *src = e->fh;
176 nfs_copyfh(&dest->fh, src->fh);
152 meta_data_lookup(const char *fname, bool *haveit, bool *deleted, vfs_handle_t *fh) argument
190 meta_data_create(vfs_handle_t fh, const char *fname) argument
[all...]
/barrelfish-2018-10-04/tools/harness/
H A Dresults.py50 def to_file(self, fh):
52 fh.write('%d error(s) in %s\n' % (len(self.errors), self.name))
54 fh.write(error)
70 def to_file(self, fh):
72 fh.write('# %s\n' % '\t'.join(self.colnames))
74 fh.write('\t'.join(map(str, r)) + '\n')
H A Dbuilds.py81 with open(os.path.join(srcdir, 'hake', 'Config.hs.template')) as fh:
82 conf_template = fh.readlines()
108 with open(os.path.join(hakedir, 'Config.hs'), 'r') as fh:
109 if fh.readlines() == newconf:
114 with open(os.path.join(hakedir, 'Config.hs'), 'w') as fh:
115 fh.writelines(newconf)
/barrelfish-2018-10-04/include/nfs/
H A Dnfs.h197 errval_t nfs_getattr(struct nfs_client *client, struct nfs_fh3 fh,
199 errval_t nfs_setattr(struct nfs_client *client, struct nfs_fh3 fh,
202 errval_t nfs_readdir(struct nfs_client *client, struct nfs_fh3 fh,
205 errval_t nfs_readdirplus(struct nfs_client *client, struct nfs_fh3 fh,
210 errval_t nfs_access(struct nfs_client *client, struct nfs_fh3 fh, uint32_t access,
212 errval_t nfs_read(struct nfs_client *client, struct nfs_fh3 fh, offset3 offset,
214 errval_t nfs_write(struct nfs_client *client, struct nfs_fh3 fh, offset3 offset,
228 void nfs_freefh(struct nfs_fh3 fh);
/barrelfish-2018-10-04/usr/ramfsd/
H A Dservice.c69 // construct fh: generation and index
70 trivfs_fh_t fh = ((trivfs_fh_t)st->fhgen << FHTAB_SIZE_BITS) | st->fhindex; local
78 return fh;
81 static struct dirent *fh_get(struct client_state *st, trivfs_fh_t fh) argument
83 // unpack fh
84 unsigned gen = fh >> FHTAB_SIZE_BITS;
85 unsigned idx = fh & FHTAB_SIZE_MASK;
232 static errval_t getattr(struct trivfs_binding *b, trivfs_fh_t fh, argument
240 struct dirent *e = fh_get(st, fh);
251 static errval_t read(struct trivfs_binding *b, trivfs_fh_t fh, argument
281 write(struct trivfs_binding *b, trivfs_fh_t fh, trivfs_offset_t offset, const uint8_t *data, size_t len, errval_t *reterr) argument
307 read_bulk(struct trivfs_binding *b, trivfs_fh_t fh, trivfs_offset_t offset, trivfs_fsize_t maxlen, trivfs_bulkid_t bulkid, errval_t *reterr, trivfs_fsize_t *retlen) argument
357 write_bulk(struct trivfs_binding *b, trivfs_fh_t fh, trivfs_offset_t offset, trivfs_fsize_t len, trivfs_bulkid_t bulkid, errval_t *reterr) argument
398 trivfs_truncate(struct trivfs_binding *b, trivfs_fh_t fh, trivfs_fsize_t newsize, errval_t *reterr) argument
413 create(struct trivfs_binding *b, trivfs_fh_t dir, const char *name, errval_t *reterr, trivfs_fh_t *fh) argument
443 mkdir(struct trivfs_binding *b, trivfs_fh_t dir, const char *name, errval_t *reterr, trivfs_fh_t *fh) argument
473 delete(struct trivfs_binding *b, trivfs_fh_t fh, errval_t *reterr) argument
[all...]
/barrelfish-2018-10-04/usr/drivers/xeon_phi/
H A Dboot.c177 vfs_handle_t fh; local
192 err = vfs_open(path, &fh);
198 return fh;
201 err = vfs_open(file, &fh);
203 return fh;
214 static errval_t file_load(vfs_handle_t fh, void *buf, size_t length) argument
219 err = vfs_read(fh, buf+pos, length - pos, &readlen);
238 vfs_handle_t fh = file_open(file, use_nfs); local
239 if (fh == NULL) {
244 err = vfs_stat(fh,
605 vfs_handle_t fh = file_open(mod_list, use_nfs); local
[all...]
/barrelfish-2018-10-04/lib/nfs/
H A Dnfs.c53 struct nfs_fh3 fh = { .data_len = 0, .data_val = NULL }; local
109 rb = xdr_nfs_fh3(xdr, &fh);
117 client->mount_callback(client->mount_cbarg, client, mountstat, fh);
127 client->mount_callback(client->mount_cbarg, NULL, -1, fh);
204 void nfs_freefh(struct nfs_fh3 fh) argument
206 free(fh.data_val);
239 * \param fh Filehandle for directory to stat
245 errval_t nfs_getattr(struct nfs_client *client, struct nfs_fh3 fh, argument
251 .object = fh,
256 &args, sizeof(args) + RNDUP(fh
300 nfs_setattr(struct nfs_client *client, struct nfs_fh3 fh, sattr3 new_attributes, bool guarded, nfs_setattr_callback_t callback, void *cbarg) argument
361 nfs_readdir(struct nfs_client *client, struct nfs_fh3 fh, cookie3 cookie, cookieverf3 cookieverf, nfs_readdir_callback_t callback, void *cbarg) argument
422 nfs_readdirplus(struct nfs_client *client, struct nfs_fh3 fh, cookie3 cookie, cookieverf3 cookieverf, nfs_readdirplus_callback_t callback, void *cbarg) argument
542 nfs_access(struct nfs_client *client, struct nfs_fh3 fh, uint32_t access, nfs_access_callback_t callback, void *cbarg) argument
597 nfs_read(struct nfs_client *client, struct nfs_fh3 fh, offset3 offset, count3 count, nfs_read_callback_t callback, void *cbarg) argument
659 nfs_write(struct nfs_client *client, struct nfs_fh3 fh, offset3 offset, const void *data, count3 count, stable_how stable, nfs_write_callback_t callback, void *cbarg) argument
[all...]
/barrelfish-2018-10-04/tools/harness/tests/
H A Dcommon.py166 def _readline(self, fh, timeout=None):
173 return fh.readline()
176 fhArray = [fh]
191 c = fh.read(1)
192 # can see EOF if fh is a telnet socket that was closed in the meantime
198 def _read_until_block(self, fh):
204 yield self._readline(fh, timeout=timeout)
209 fh = machine.get_output()
210 if fh is None:
215 line = self._readline(fh)
[all...]
/barrelfish-2018-10-04/usr/arrakismon/
H A Dvmkitmon.c41 vfs_handle_t fh; local
42 err = vfs_open(path, &fh);
48 err = vfs_stat(fh, &info);
50 vfs_close(fh);
57 vfs_close(fh);
63 err = vfs_read(fh, &image[pos], info.size - pos, &readlen);
65 vfs_close(fh);
69 vfs_close(fh);
77 err = vfs_close(fh);
/barrelfish-2018-10-04/usr/slideshow/
H A Dmain.c179 vfs_handle_t fh; local
180 err = vfs_open(paths[i], &fh);
186 err = vfs_stat(fh, &info);
195 err = vfs_read(fh, buf, info.size, &len);
202 vfs_close(fh);
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/bf/
H A Dbfs.cpp26 __asm _emit 0fh
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/cast/
H A Dcasts.cpp26 __asm _emit 0fh
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/des/
H A Ddes3s.cpp26 __asm _emit 0fh
H A Ddess.cpp26 __asm _emit 0fh
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/md4/
H A Dmd4s.cpp26 __asm _emit 0fh
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/md5/
H A Dmd5s.cpp26 __asm _emit 0fh
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/rc4/
H A Drc4s.cpp26 __asm _emit 0fh
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/rc5/
H A Drc5s.cpp26 __asm _emit 0fh
/barrelfish-2018-10-04/lib/openssl-1.0.0d/crypto/ripemd/asm/
H A Drips.cpp26 __asm _emit 0fh
/barrelfish-2018-10-04/lib/openssl-1.0.0d/times/x86/
H A Dbfs.cpp26 __asm _emit 0fh

Completed in 104 milliseconds

12