Searched defs:fh (Results 1 - 25 of 78) sorted by relevance

1234

/freebsd-head/contrib/opie/libopie/
H A Dunlock.c47 int fh, rval = -1, pid, t, i; variable
56 if (!(fh = open(__opie_lockfilename, O_RDWR, 0600)))
59 if ((i = read(fh, buffer, sizeof(buffer))) < 0)
92 if (fh)
93 close(fh); variable
H A Dlock.c93 int fh, waits = 0, rval = -1, pid, t, i; local
145 fh = -1;
146 while (fh < 0) {
151 if ((fh = open(__opie_lockfilename, O_WRONLY | O_CREAT | O_EXCL, 0600)) < 0) {
158 if ((fh = open(__opie_lockfilename, O_RDONLY, 0600)) < 0)
160 if ((i = read(fh, buffer, sizeof(buffer))) <= 0)
188 close(fh);
189 fh = 0;
200 if (fstat(fh, &statbuf[1]) < 0)
209 if (lseek(fh,
[all...]
/freebsd-head/contrib/smbfs/lib/smb/
H A Dfile.c55 smb_read(struct smb_ctx *ctx, smbfh fh, off_t offset, size_t count, char *dst) argument
59 rwrq.ioc_fh = fh;
69 smb_write(struct smb_ctx *ctx, smbfh fh, off_t offset, size_t count, argument
74 rwrq.ioc_fh = fh;
H A Dprint.c82 smb_smb_close_print_file(struct smb_ctx *ctx, smbfh fh) argument
92 mb_put_mem(mbp, (char*)&fh, 2);
/freebsd-head/tools/regression/priv/
H A Dpriv_vfs_getfh.c60 fhandle_t fh; local
63 error = getfh(fpath, &fh);
H A Dpriv_vfs_fhopen.c50 static fhandle_t fh; variable
59 if (getfh(fpath, &fh) < 0) {
71 fd = fhopen(&fh, O_RDONLY);
H A Dpriv_vfs_fhstat.c50 static fhandle_t fh; variable
59 if (getfh(fpath, &fh) < 0) {
72 error = fhstat(&fh, &sb);
H A Dpriv_vfs_fhstatfs.c49 static fhandle_t fh; variable
58 if (getfh(fpath, &fh) < 0) {
71 error = fhstatfs(&fh, &sf);
/freebsd-head/contrib/netbsd-tests/usr.bin/xlint/lint1/
H A Dd_typename_as_var.c6 } fh; typedef in typeref:struct:__anon78
9 fh h;
/freebsd-head/sys/arm/arm/
H A Dfiq.c96 fiq_claim(struct fiqhandler *fh) argument
102 if (fh->fh_size > 0x100)
119 if (fh->fh_regs != NULL)
120 fiq_setregs(fh->fh_regs);
122 TAILQ_INSERT_HEAD(&fiqhandler_stack, fh, fh_list);
125 fiq_installhandler(fh->fh_func, fh->fh_size);
141 fiq_release(struct fiqhandler *fh) argument
153 if (fh == TAILQ_FIRST(&fiqhandler_stack)) {
154 if (fh
[all...]
/freebsd-head/crypto/heimdal/lib/roken/
H A Dget_window_size.c104 intptr_t fh = 0; local
107 fh = _get_osfhandle(fd);
108 if (fh != (intptr_t) INVALID_HANDLE_VALUE &&
109 GetConsoleScreenBufferInfo((HANDLE) fh, &sb_info)) {
/freebsd-head/contrib/smbfs/smbutil/
H A Dprint.c61 smbfh fh; local
112 error = smb_smb_open_print_file(ctx, 0, 1, fnamebuf, &fh);
128 i = smb_write(ctx, fh, offset, count, buf);
142 error = smb_smb_close_print_file(ctx, fh);
/freebsd-head/tests/sys/fs/fusefs/
H A Dallow_other.cc138 const static uint64_t fh = 100; local
154 out.body.open.fh = fh;
/freebsd-head/contrib/llvm-project/lldb/source/Core/
H A DStreamFile.cpp26 StreamFile::StreamFile(FILE *fh, bool transfer_ownership) argument
27 : Stream(), m_file(fh, transfer_ownership) {}
/freebsd-head/contrib/opie/
H A Dpermsfile.c149 FILE *fh; local
151 if (!(fh = fopen(HAVE_LOGIN_PERMFILE, "r"))) {
157 if (feof(fh))
159 if (fgets(buf, BUFSIZE, fh) == NULL)
/freebsd-head/tools/regression/tmpfs/
H A Dh_tools.c74 fhandle_t fh; local
79 error = getfh(argv[1], &fh);
83 error = write(STDOUT_FILENO, &fh, sizeof(fh));
/freebsd-head/contrib/netbsd-tests/fs/tmpfs/
H A Dh_tools.c71 void *fh; local
83 fh = NULL;
86 fh = malloc(fh_size);
87 if (fh == NULL) {
98 error = getfh(argv[1], fh);
100 error = getfh(argv[1], fh, &fh_size);
105 if (fh != NULL)
106 free(fh);
114 error = write(STDOUT_FILENO, fh, fh_size);
119 free(fh);
[all...]
/freebsd-head/tools/tools/vt/mkkfont/
H A Dmkkfont.c57 print_glyphs(struct file_header *fh) argument
62 gbytes = howmany(fh->width, 8) * fh->height;
63 glyph_count = be32toh(fh->glyph_count);
91 print_mappings(struct file_header *fh, int map_index) argument
97 nmappings = be32toh(fh->map_count[map_index]);
124 print_info(struct file_header *fh) argument
133 fh->width, fh->height);
137 if (fh
156 struct file_header fh; local
[all...]
/freebsd-head/contrib/tcpdump/
H A Dparsenfsfh.c108 Parse_fh(register const unsigned char *fh, u_int len, my_fsid *fsidp, argument
114 register const unsigned char *fhp = fh;
371 memcpy((char *)fsidp, (const char *)fh, 14);
377 memcpy((char *)tempa, (const char *)fh, 14); /* ensure alignment */
/freebsd-head/sys/nfs/
H A Dnfsdiskless.h81 u_char *fh; /* File handle to be mounted */ member in struct:onfs_args
82 int fhsize; /* Size, in bytes, of fh */
H A Dnfs_diskless.c66 static int decode_nfshandle(char *ev, u_char *fh, int maxfh);
394 decode_nfshandle(char *ev, u_char *fh, int maxfh) argument
417 *(fh++) = val;
/freebsd-head/sys/fs/nfsserver/
H A Dnfs_fha_new.c46 int fhanew_get_fh(uint64_t *fh, int v3, struct mbuf **md, caddr_t *dpos);
133 fhanew_get_fh(uint64_t *fh, int v3, struct mbuf **md, caddr_t *dpos) argument
164 *fh = t;
/freebsd-head/contrib/bearssl/src/ssl/
H A Dssl_scert_single_rsa.c36 int fh; local
42 fh = 1;
46 fh = (hash_id != 0);
62 if ((pc->allowed_usages & BR_KEYTYPE_SIGN) != 0 && fh) {
/freebsd-head/contrib/processor-trace/libipt/src/windows/
H A Dpt_section_windows.c129 HANDLE fh, mh; local
155 fh = (HANDLE) _get_osfhandle(fd);
157 mh = CreateFileMapping(fh, NULL, PAGE_READONLY, 0, 0, NULL);
234 HANDLE fh; local
259 fh = CreateFileA(filename, GENERIC_READ, FILE_SHARE_READ, NULL,
261 if (fh == INVALID_HANDLE_VALUE) {
268 fh = CreateFileA(filename, GENERIC_READ, FILE_SHARE_WRITE,
271 if (fh == INVALID_HANDLE_VALUE) {
277 fd = _open_osfhandle((intptr_t) fh, _O_RDONLY);
318 CloseHandle(fh);
[all...]
/freebsd-head/contrib/llvm-project/lldb/include/lldb/Host/
H A DFile.h60 File(FILE *fh, bool transfer_ownership) argument
62 m_stream(fh), m_options(0), m_own_stream(transfer_ownership),
132 void SetStream(FILE *fh, bool transfer_ownership);

Completed in 320 milliseconds

1234