Home
last modified time | relevance | path

Searched refs:filep (Results 1 – 25 of 44) sorted by relevance

12

/illumos-gate/usr/src/common/fs/
H A Dufsops.c137 while ((filep = filep->fi_forw) != head) in find_fp()
139 return (filep->fi_taken ? filep : 0); in find_fp()
384 diff = filep->fi_inode->i_size - filep->fi_offset; in getblock()
402 filep->fi_memp = filep->fi_buf; in getblock()
449 diff = filep->fi_inode->i_size - filep->fi_offset; in getblock_noopt()
654 filep->fi_offset = filep->fi_count = 0; in bufs_open()
752 if (filep->fi_taken && (filep != head)) { in bufs_close()
755 filep->fi_blocknum = filep->fi_count = filep->fi_offset = 0; in bufs_close()
761 filep->fi_forw->fi_back = filep->fi_back; in bufs_close()
762 filep->fi_back->fi_forw = filep->fi_forw; in bufs_close()
[all …]
H A Ddecompress.c72 fileid_t *filep; in cf_alloc() local
81 ptr = &filep->fi_dcscrbuf[filep->fi_dcscrused]; in cf_alloc()
124 if ((filep->fi_getblock)(filep) == -1) in cf_check_compressed()
127 filep->fi_count = 0; in cf_check_compressed()
128 filep->fi_cfoff = 0; in cf_check_compressed()
155 zsp->opaque = filep; in cf_check_compressed()
199 filep->fi_cfoff = 0; in cf_rewind()
236 filep->fi_offset = filep->fi_cfoff; in cf_read()
238 if ((*filep->fi_getblock)(filep) == -1) in cf_read()
244 filep->fi_cfoff += filep->fi_count; in cf_read()
[all …]
H A Dhsfs.c92 fileid_t *filep; member
148 while ((filep = filep->fi_forw) != head) in find_fp()
150 return (filep->fi_taken ? filep : 0); in find_fp()
253 dirp.filep = filep; in dlook()
290 fileid_t *filep; in readdir() local
295 filep = dirp->filep; in readdir()
521 if (filep->fi_taken == 0 || filep == head) { in bhsfs_close()
528 filep->fi_forw->fi_back = filep->fi_back; in bhsfs_close()
529 filep->fi_back->fi_forw = filep->fi_forw; in bhsfs_close()
532 bkmem_free(filep->fi_path, strlen(filep->fi_path) + 1); in bhsfs_close()
[all …]
H A Dpcfs.c209 fileid_t *filep; in bpcfs_open() local
238 fileid_t *filep; in bpcfs_close() local
244 if (filep->fi_taken == 0 || filep == head) { in bpcfs_close()
250 filep->fi_forw->fi_back = filep->fi_back; in bpcfs_close()
251 filep->fi_back->fi_forw = filep->fi_forw; in bpcfs_close()
252 bkmem_free(filep->fi_path, strlen(filep->fi_path) + 1); in bpcfs_close()
261 fileid_t *filep; in bpcfs_closeall() local
264 if (filep->fi_taken && bpcfs_close(filep->fi_filedes)) in bpcfs_closeall()
356 fileid_t *filep; in bpcfs_lseek() local
386 while ((filep = filep->fi_forw) != head) in find_fp()
[all …]
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dufsops.c131 filep->fi_memp = filep->fi_buf; in openi()
134 if ((filep->fi_memp = get_bcache(filep)) == NULL) { in openi()
160 while ((filep = filep->fi_forw) != head) in find_fp()
162 return (filep->fi_taken ? filep : 0); in find_fp()
492 filep->fi_memp = filep->fi_buf; in getblock()
708 filep->fi_offset = filep->fi_count = 0; in boot_ufs_open()
800 if (filep->fi_taken && (filep != head)) { in boot_ufs_close()
803 filep->fi_blocknum = filep->fi_count = filep->fi_offset = 0; in boot_ufs_close()
809 filep->fi_forw->fi_back = filep->fi_back; in boot_ufs_close()
810 filep->fi_back->fi_forw = filep->fi_forw; in boot_ufs_close()
[all …]
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dnfsops.c134 for (filep = nfs_files; filep; filep = filep->next) { in get_filep()
136 return (filep); in get_filep()
178 filep = nfs_files; in boot_nfs_open()
187 if (filep->next) in boot_nfs_open()
188 filep = filep->next; in boot_nfs_open()
189 } while (filep->next); in boot_nfs_open()
199 filep = newfilep; in boot_nfs_open()
210 filep->desc = 0; in boot_nfs_open()
213 bzero(&filep->file.cookie, sizeof (filep->file.cookie)); in boot_nfs_open()
220 return (filep->desc); in boot_nfs_open()
[all …]
/illumos-gate/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c135 if ((filep->fi_memp = get_bcache(filep)) == NULL) { in opendir()
211 while ((filep = filep->fi_forw) != head) in find_fp()
213 return (filep->fi_taken ? filep : 0); in find_fp()
301 if ((filep->fi_memp = get_bcache(filep)) == 0) in readdir()
353 filep->fi_memp = filep->fi_buf; in getblock()
601 filep->fi_offset = filep->fi_count = 0; in boot_hsfs_open()
684 filep->fi_blocknum = filep->fi_count = filep->fi_offset = 0; in boot_hsfs_close()
690 filep->fi_forw->fi_back = filep->fi_back; in boot_hsfs_close()
691 filep->fi_back->fi_forw = filep->fi_forw; in boot_hsfs_close()
716 while ((filep = filep->fi_forw) != head) in boot_hsfs_closeall()
[all …]
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dscr_ll_dump.c48 scr_ll_dump(FILE *filep) in scr_ll_dump() argument
65 1, filep) != 1) in scr_ll_dump()
71 if (putwin(curscr, filep) == ERR) in scr_ll_dump()
77 if (fwrite((char *) &magic, sizeof (int), 1, filep) != 1) in scr_ll_dump()
84 sizeof (short), 1, filep) != 1) || in scr_ll_dump()
86 1, filep) != 1)) { in scr_ll_dump()
91 filep) != lablen) || (fwrite(slk->_lval[i], in scr_ll_dump()
92 sizeof (char), lablen, filep) != lablen)) { in scr_ll_dump()
106 if (fwrite((char *) &magic, sizeof (int), 1, filep) != 1) in scr_ll_dump()
113 filep) != 1)) in scr_ll_dump()
[all …]
H A Dscr_reset.c75 scr_reset(FILE *filep, int type) in scr_reset() argument
125 if (((win = getwin(filep)) == NULL) || in scr_reset()
165 lablen, filep) != lablen) || in scr_reset()
167 sizeof (char), lablen, filep) != lablen)) { in scr_reset()
173 if (fseek(filep, (long)(2 * labmax * lablen * in scr_reset()
199 filep) != 1) || (fread((char *)&could_change, in scr_reset()
200 sizeof (char), 1, filep) != 1)) in scr_reset()
205 if (fseek(filep, (long)(colors * sizeof (_Color) + in scr_reset()
224 colors, filep) != colors) in scr_reset()
238 if (fseek(filep, (long)(colors * in scr_reset()
[all …]
H A Dscr_all.c51 FILE *filep; in _scr_all() local
53 if ((filep = fopen(file, "rF")) == NULL) in _scr_all()
55 rv = scr_reset(filep, which); in _scr_all()
56 (void) fclose(filep); in _scr_all()
H A Dscr_dump.c54 FILE *filep; in scr_dump() local
56 if ((filep = fopen(file, "wF")) == NULL) { in scr_dump()
64 rv = scr_ll_dump(filep); in scr_dump()
65 (void) fclose(filep); in scr_dump()
H A Dgetwin.c50 getwin(FILE *filep) in getwin() argument
63 if ((fread((char *) win_nums, sizeof (short), SEPARATE_READ, filep) != in getwin()
75 if (fread(&(win->_flags), 1, nelt, filep) != nelt) in getwin()
86 if (fread((char *) *wcp++, sizeof (chtype), maxx, filep) != in getwin()
H A Dputwin.c53 putwin(WINDOW *win, FILE *filep) in putwin() argument
63 if (fwrite((char *) &(win->_cury), 1, nelt, filep) != nelt) in putwin()
71 maxx, filep) != maxx) in putwin()
/illumos-gate/usr/src/uts/common/io/ib/clients/of/sol_ucma/
H A Dsol_ucma.c536 if (!filep) { in sol_ucma_close()
545 cv_wait(&filep->file_evt_close_cv, &filep->file_mutex); in sol_ucma_close()
783 ASSERT(filep); in sol_ucma_poll()
820 ASSERT(filep);
887 if (!filep) {
903 ASSERT(filep);
1330 ASSERT(filep);
1345 if (!cv_wait_sig(&filep->file_evt_cv, &filep->file_mutex)) {
1840 ASSERT(filep);
1859 if (filep)
[all …]
/illumos-gate/usr/src/stand/lib/fs/common/
H A Ddiskread.c54 diskread(fileid_t *filep) in diskread() argument
61 blocknum = filep->fi_blocknum + unix_startblk; in diskread()
63 devp = filep->fi_devp; in diskread()
72 if ((err = prom_read(devp->di_dcookie, filep->fi_memp, filep->fi_count, in diskread()
73 blocknum, prom_dev_type)) != filep->fi_count) { in diskread()
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dpcfs_glue.c82 diskread(fileid_t *filep) in diskread() argument
87 blocknum = filep->fi_blocknum; in diskread()
90 diskread_callback(blocknum, filep->fi_count / DEV_BSIZE); in diskread()
95 if (filep->fi_memp == NULL) { in diskread()
96 filep->fi_memp = malloc(filep->fi_count); in diskread()
98 if (filep->fi_memp == NULL) { in diskread()
103 ret = pread(dev_fd, filep->fi_memp, filep->fi_count, diskloc); in diskread()
/illumos-gate/usr/src/cmd/troff/
H A Dn3.c73 filep oldoff; in caseig()
213 filep savoff; in casede()
286 filep savip;
436 filep j; in alloc()
468 filep i; in ffree()
551 filep j, p; in rbf()
603 filep p; in rbf0()
606 filep i;
622 filep p; in incoff()
660 filep newip; in pushi()
[all …]
H A Dnii.c89 filep ip;
106 filep offset;
109 filep woff;
114 filep nextb;
120 filep apptr;
122 filep roff;
H A Dext.h62 extern filep apptr;
63 extern filep ip;
64 extern filep nextb;
65 extern filep offset;
66 extern filep roff;
67 extern filep woff;
/illumos-gate/usr/src/uts/common/krtld/
H A Dbootrd.c138 diskread(fileid_t *filep) in diskread() argument
144 blocknum = filep->fi_blocknum; in diskread()
147 if (diskloc + filep->fi_count > (caddr_t)(uintptr_t)rd_end) { in diskread()
149 diskloc, filep->fi_count); in diskread()
154 if (filep->fi_memp) { in diskread()
155 bcopy(diskloc, filep->fi_memp, filep->fi_count); in diskread()
158 filep->fi_memp = diskloc; in diskread()
/illumos-gate/usr/src/cmd/getfacl/
H A Dgetfacl.c102 register char *filep; in main() local
104 filep = argv[optind]; in main()
108 if ((aclcnt = acl(filep, GETACLCNT, 0, NULL)) < 0) { in main()
117 perror(filep); in main()
123 aclcnt, filep); in main()
135 if (acl(filep, GETACL, aclcnt, aclp) < 0) { in main()
136 perror(filep); in main()
141 (void) printf("\n# file: %s\n", filep); in main()
/illumos-gate/usr/src/cmd/setfacl/
H A Dsetfacl.c52 static int get_acl_info(char *filep, aclent_t **aclpp);
135 register char *filep; in main() local
137 filep = argv[optind]; in main()
163 aclcnt = get_acl_info(filep, &aclp); in main()
167 work_dp, filep, rflag) == -1) in main()
170 if (set_file_entries(aclfilep, filep, rflag) == -1) in main()
183 if (set_online_entries(work_sp, filep, rflag) == -1) in main()
194 get_acl_info(char *filep, aclent_t **aclpp) in get_acl_info() argument
198 if ((aclcnt = acl(filep, GETACLCNT, 0, NULL)) < 0) { in get_acl_info()
215 aclcnt, filep); in get_acl_info()
[all …]
/illumos-gate/usr/src/cmd/bhyve/
H A Ddebug.h34 #define FPRINTLN(filep, fmt, arg...) \ argument
37 fprintf(filep, fmt "\r\n", ##arg); \
39 fprintf(filep, fmt "\n", ##arg); \
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/
H A Ddump.c1774 FILE *filep;
1887 if (!error && (fscanf(filep,
1901 if (!error && read_string(filep,
2106 FILE *filep;
2220 read_octet_string(filep,
2254 nread = fscanf(filep, "%d", &t9);
2290 read_octet_string(filep,
2322 if (read_octet_string(filep,
2401 FILE *filep;
2449 FILE *filep;
[all …]
/illumos-gate/usr/src/lib/libdevinfo/
H A Ddevfsmap.c182 filep->filename, filep->linenum); in file_err()
196 FILE *fp = filep->fp; in lex()
290 file_err(filep, in lex()
494 file_err(filep, in parse_conf_entry()
502 file_err(filep, in parse_conf_entry()
510 file_err(filep, in parse_conf_entry()
518 file_err(filep, in parse_conf_entry()
526 file_err(filep, in parse_conf_entry()
535 file_err(filep, in parse_conf_entry()
563 file_err(filep, in parse_conf_entry()
[all …]

12