| /illumos-gate/usr/src/common/fs/ |
| H A D | ufsops.c | 68 static ino_t find(fileid_t *filep, char *path); 69 static ino_t dlook(fileid_t *filep, char *path); 70 static daddr32_t sbmap(fileid_t *filep, daddr32_t bn); 88 openi(fileid_t *filep, ino_t inode) in openi() argument 91 devid_t *devp = filep->fi_devp; in openi() 93 filep->fi_inode = get_cache((int)inode); in openi() 94 if (filep->fi_inode != 0) in openi() 97 filep->fi_offset = 0; in openi() 98 filep->fi_blocknum = fsbtodb(&devp->un_fs.di_fs, in openi() 102 filep->fi_count = devp->un_fs.di_fs.fs_bsize; in openi() [all …]
|
| H A D | decompress.c | 60 fileid_t *filep; in cf_alloc() local 64 filep = (fileid_t *)opaque; in cf_alloc() 66 if (nbytes > (DECOMP_BUFSIZE - filep->fi_dcscrused)) { in cf_alloc() 69 ptr = &filep->fi_dcscrbuf[filep->fi_dcscrused]; in cf_alloc() 70 filep->fi_dcscrused += nbytes; in cf_alloc() 92 cf_check_compressed(fileid_t *filep) in cf_check_compressed() argument 108 if (filep->fi_inode->i_size < 3) in cf_check_compressed() 110 filep->fi_offset = 0; in cf_check_compressed() 111 if ((filep->fi_getblock)(filep) == -1) in cf_check_compressed() 113 filep->fi_offset = 0; in cf_check_compressed() [all …]
|
| H A D | hsfs.c | 79 fileid_t *filep; member 132 fileid_t *filep = head; in find_fp() local 135 while ((filep = filep->fi_forw) != head) in find_fp() 136 if (fd == filep->fi_filedes) in find_fp() 137 return (filep->fi_taken ? filep : 0); in find_fp() 144 opendir(ino_t inode, fileid_t *filep) in opendir() argument 151 filep->fi_offset = 0; in opendir() 152 filep->fi_blocknum = hdbtodb(inode); in opendir() 153 filep->fi_count = ISO_SECTOR_SIZE; in opendir() 154 filep->fi_memp = 0; in opendir() [all …]
|
| H A D | pcfs.c | 209 fileid_t *filep; in bpcfs_open() local 213 filep = (fileid_t *)bkmem_alloc(sizeof (fileid_t)); in bpcfs_open() 214 filep->fi_back = head->fi_back; in bpcfs_open() 215 filep->fi_forw = head; in bpcfs_open() 216 head->fi_back->fi_forw = filep; in bpcfs_open() 217 head->fi_back = filep; in bpcfs_open() 218 filep->fi_filedes = filedes++; in bpcfs_open() 219 filep->fi_taken = 1; in bpcfs_open() 220 filep->fi_path = (char *)bkmem_alloc(strlen(str) + 1); in bpcfs_open() 221 (void) strcpy(filep->fi_path, str); in bpcfs_open() [all …]
|
| /illumos-gate/usr/src/stand/lib/fs/ufs/ |
| H A D | ufsops.c | 90 static ino_t find(fileid_t *filep, char *path); 91 static ino_t dlook(fileid_t *filep, char *path); 92 static daddr32_t sbmap(fileid_t *filep, daddr32_t bn); 115 openi(fileid_t *filep, ino_t inode) in openi() argument 119 devid_t *devp = filep->fi_devp; in openi() 122 if ((filep->fi_inode = get_icache(devp->di_dcookie, inode)) != NULL) in openi() 125 filep->fi_offset = 0; in openi() 126 filep->fi_blocknum = fsbtodb(&devp->un_fs.di_fs, in openi() 130 filep->fi_count = devp->un_fs.di_fs.fs_bsize; in openi() 131 filep->fi_memp = filep->fi_buf; in openi() [all …]
|
| /illumos-gate/usr/src/stand/lib/fs/hsfs/ |
| H A D | hsfsops.c | 124 opendir(fileid_t *filep, ino_t inode) in opendir() argument 130 filep->fi_offset = 0; in opendir() 131 filep->fi_blocknum = hdbtodb(inode); in opendir() 132 filep->fi_count = ISO_SECTOR_SIZE; in opendir() 135 if ((filep->fi_memp = get_bcache(filep)) == NULL) { in opendir() 137 if (retval = set_bcache(filep)) { in opendir() 142 filep->fi_offset = 0; in opendir() 143 filep->fi_blocknum = hdbtodb(inode); in opendir() 148 if ((int)(parse_dir(filep, 0, &hsdep)) > 0) { in opendir() 149 hs_seti(filep, &hsdep, inode); in opendir() [all …]
|
| /illumos-gate/usr/src/stand/lib/fs/nfs/ |
| H A D | nfsops.c | 99 struct nfs_files *filep; in boot_nfs_closeall() local 112 while ((filep = nfs_files->next) != NULL) { in boot_nfs_closeall() 113 nfs_files->next = filep->next; in boot_nfs_closeall() 114 bkmem_free((caddr_t)filep, sizeof (struct nfs_files)); in boot_nfs_closeall() 132 struct nfs_files *filep; in get_filep() local 134 for (filep = nfs_files; filep; filep = filep->next) { in get_filep() 135 if (fd == filep->desc) in get_filep() 136 return (filep); in get_filep() 158 struct nfs_files *filep, *newfilep; in boot_nfs_open() local 178 filep = nfs_files; in boot_nfs_open() [all …]
|
| /illumos-gate/usr/src/lib/libcurses/screen/ |
| H A D | scr_ll_dump.c | 48 scr_ll_dump(FILE *filep) in scr_ll_dump() argument 55 if (fwrite((char *) &magic, sizeof (short), 1, filep) != 1) in scr_ll_dump() 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() [all …]
|
| H A D | scr_reset.c | 75 scr_reset(FILE *filep, int type) in scr_reset() argument 98 if (fread((char *)&magic, sizeof (short), 1, filep) != 1) in scr_reset() 104 if (fread((char *)&ttytime, sizeof (time_t), 1, filep) != 1) in scr_reset() 125 if (((win = getwin(filep)) == NULL) || in scr_reset() 129 (fread((char *)&magic, sizeof (int), 1, filep) != 1)) in scr_reset() 147 if ((fread((char *)&labmax, sizeof (short), 1, filep) != 1) || in scr_reset() 148 (fread((char *)&lablen, sizeof (short), 1, filep) != 1)) { 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() [all …]
|
| H A D | scr_all.c | 51 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 D | scr_dump.c | 54 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 D | getwin.c | 50 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 D | putwin.c | 53 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 D | sol_ucma.c | 527 sol_ucma_file_t *filep; in sol_ucma_close() local 534 filep = (sol_ucma_file_t *)sol_ofs_uobj_get_read( in sol_ucma_close() 536 if (!filep) { in sol_ucma_close() 543 mutex_enter(&filep->file_mutex); in sol_ucma_close() 544 if (filep->file_evt_close_flag == SOL_UCMA_EVT_PROGRESS) { in sol_ucma_close() 545 cv_wait(&filep->file_evt_close_cv, &filep->file_mutex); in sol_ucma_close() 547 filep->file_evt_close_flag = SOL_UCMA_EVT_DISABLED; in sol_ucma_close() 548 mutex_exit(&filep->file_mutex); in sol_ucma_close() 556 entry = remove_genlist_head(&filep->file_id_list); in sol_ucma_close() 577 entry = remove_genlist_head(&filep->file_id_list); in sol_ucma_close() [all …]
|
| /illumos-gate/usr/src/cmd/boot/installgrub/ |
| H A D | pcfs_glue.c | 82 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 D | n3.c | 56 filep blist[NBLIST]; 73 filep oldoff; in caseig() 213 filep savoff; in casede() 214 extern filep finds(); in casede() 271 ffree((filep)contab[i].mx); 282 filep finds(mn) in finds() 286 filep savip; 287 extern filep alloc(); 288 extern filep incoff(); 292 apptr = (filep)0; [all …]
|
| H A D | nii.c | 89 filep ip; 106 filep offset; 109 filep woff; 114 filep nextb; 120 filep apptr; 122 filep roff;
|
| H A D | ext.h | 62 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/stand/lib/fs/common/ |
| H A D | diskread.c | 54 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/uts/common/krtld/ |
| H A D | bootrd.c | 139 diskread(fileid_t *filep) in diskread() argument 145 blocknum = filep->fi_blocknum; in diskread() 148 if (diskloc + filep->fi_count > (caddr_t)(uintptr_t)rd_end) { in diskread() 150 diskloc, filep->fi_count); in diskread() 155 if (filep->fi_memp) { in diskread() 156 bcopy(diskloc, filep->fi_memp, filep->fi_count); in diskread() 159 filep->fi_memp = diskloc; in diskread()
|
| /illumos-gate/usr/src/cmd/getfacl/ |
| H A D | getfacl.c | 102 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 D | setfacl.c | 52 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() 208 gettext("%s: failed to get acl count\n"), filep); in get_acl_info() [all …]
|
| /illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/ |
| H A D | dump.c | 1769 process_k5beta_record(fname, kcontext, filep, verbose, linenop) in process_k5beta_record() argument 1772 FILE *filep; 1811 nmatched = fscanf(filep, "%d\t%d\t%d\t%d\t%d\t%d\t", 1842 if (read_string(filep, name, name_len, linenop)) { 1847 if (!error && (fscanf(filep, "\t%d\t", &tmpint1) != 1)) { 1853 if (!error && read_octet_string(filep, 1885 if (!error && (fscanf(filep, 1899 if (!error && read_string(filep, 1907 if (!error && (fscanf(filep, "\t%u\t%u\t%u\t", 1915 if (!error && read_octet_string(filep, [all …]
|
| /illumos-gate/usr/src/cmd/bhyve/common/ |
| H A D | debug.h | 34 #define FPRINTLN(filep, fmt, arg...) \ argument 37 fprintf(filep, fmt "\r\n", ##arg); \ 39 fprintf(filep, fmt "\n", ##arg); \
|
| /illumos-gate/usr/src/lib/libdevinfo/ |
| H A D | devfsmap.c | 175 file_err(struct conf_file *filep, char *fmt, ...) in file_err() argument 182 filep->filename, filep->linenum); in file_err() 190 lex(struct conf_file *filep, char *val, size_t size) in lex() argument 196 FILE *fp = filep->fp; in lex() 261 file_err(filep, "Missing \"\n"); in lex() 290 file_err(filep, in lex() 442 parse_conf_entry(struct conf_file *filep, char *tokbuf, size_t linesize) in parse_conf_entry() argument 472 file_err(filep, tok_err, tokbuf); in parse_conf_entry() 481 file_err(filep, tok_err, tokbuf); in parse_conf_entry() 494 file_err(filep, in parse_conf_entry() [all …]
|