/titanic_41/usr/src/common/fs/ |
H A D | ufsops.c | 77 static ino_t find(fileid_t *filep, char *path); 78 static ino_t dlook(fileid_t *filep, char *path); 79 static daddr32_t sbmap(fileid_t *filep, daddr32_t bn); 97 openi(fileid_t *filep, ino_t inode) in openi() argument 100 devid_t *devp = filep->fi_devp; in openi() 102 filep->fi_inode = get_cache((int)inode); in openi() 103 if (filep->fi_inode != 0) in openi() 106 filep->fi_offset = 0; in openi() 107 filep->fi_blocknum = fsbtodb(&devp->un_fs.di_fs, in openi() 111 filep->fi_count = devp->un_fs.di_fs.fs_bsize; in openi() [all …]
|
H A D | decompress.c | 72 fileid_t *filep; in cf_alloc() local 76 filep = (fileid_t *)opaque; in cf_alloc() 78 if (nbytes > (DECOMP_BUFSIZE - filep->fi_dcscrused)) { in cf_alloc() 81 ptr = &filep->fi_dcscrbuf[filep->fi_dcscrused]; in cf_alloc() 82 filep->fi_dcscrused += nbytes; in cf_alloc() 105 cf_check_compressed(fileid_t *filep) in cf_check_compressed() argument 121 if (filep->fi_inode->i_size < 3) in cf_check_compressed() 123 filep->fi_offset = 0; in cf_check_compressed() 124 if ((filep->fi_getblock)(filep) == -1) in cf_check_compressed() 126 filep->fi_offset = 0; in cf_check_compressed() [all …]
|
H A D | hsfs.c | 94 fileid_t *filep; member 147 fileid_t *filep = head; in find_fp() local 150 while ((filep = filep->fi_forw) != head) in find_fp() 151 if (fd == filep->fi_filedes) in find_fp() 152 return (filep->fi_taken ? filep : 0); in find_fp() 159 opendir(ino_t inode, fileid_t *filep) in opendir() argument 165 filep->fi_offset = 0; in opendir() 166 filep->fi_blocknum = hdbtodb(inode); in opendir() 167 filep->fi_count = ISO_SECTOR_SIZE; in opendir() 168 filep->fi_memp = 0; in opendir() [all …]
|
H A D | pcfs.c | 211 fileid_t *filep; in bpcfs_open() local 215 filep = (fileid_t *)bkmem_alloc(sizeof (fileid_t)); in bpcfs_open() 216 filep->fi_back = head->fi_back; in bpcfs_open() 217 filep->fi_forw = head; in bpcfs_open() 218 head->fi_back->fi_forw = filep; in bpcfs_open() 219 head->fi_back = filep; in bpcfs_open() 220 filep->fi_filedes = filedes++; in bpcfs_open() 221 filep->fi_taken = 1; in bpcfs_open() 222 filep->fi_path = (char *)bkmem_alloc(strlen(str) + 1); in bpcfs_open() 223 (void) strcpy(filep->fi_path, str); in bpcfs_open() [all …]
|
/titanic_41/usr/src/stand/lib/fs/ufs/ |
H A D | ufsops.c | 89 static ino_t find(fileid_t *filep, char *path); 90 static ino_t dlook(fileid_t *filep, char *path); 91 static daddr32_t sbmap(fileid_t *filep, daddr32_t bn); 114 openi(fileid_t *filep, ino_t inode) in openi() argument 118 devid_t *devp = filep->fi_devp; in openi() 121 if ((filep->fi_inode = get_icache(devp->di_dcookie, inode)) != NULL) in openi() 124 filep->fi_offset = 0; in openi() 125 filep->fi_blocknum = fsbtodb(&devp->un_fs.di_fs, in openi() 129 filep->fi_count = devp->un_fs.di_fs.fs_bsize; in openi() 130 filep->fi_memp = filep->fi_buf; in openi() [all …]
|
/titanic_41/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 …]
|
/titanic_41/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 …]
|
/titanic_41/usr/src/lib/libcurses/screen/ |
H A D | scr_ll_dump.c | 50 scr_ll_dump(FILE *filep) in scr_ll_dump() argument 57 if (fwrite((char *) &magic, sizeof (short), 1, filep) != 1) in scr_ll_dump() 67 1, filep) != 1) in scr_ll_dump() 73 if (putwin(curscr, filep) == ERR) in scr_ll_dump() 79 if (fwrite((char *) &magic, sizeof (int), 1, filep) != 1) in scr_ll_dump() 86 sizeof (short), 1, filep) != 1) || in scr_ll_dump() 88 1, filep) != 1)) { in scr_ll_dump() 93 filep) != lablen) || (fwrite(slk->_lval[i], in scr_ll_dump() 94 sizeof (char), lablen, filep) != lablen)) { in scr_ll_dump() 108 if (fwrite((char *) &magic, sizeof (int), 1, filep) != 1) in scr_ll_dump() [all …]
|
H A D | scr_reset.c | 77 scr_reset(FILE *filep, int type) in scr_reset() argument 100 if (fread((char *) &magic, sizeof (short), 1, filep) != 1) in scr_reset() 106 if (fread((char *) &ttytime, sizeof (time_t), 1, filep) != 1) in scr_reset() 127 if (((win = getwin(filep)) == NULL) || in scr_reset() 131 (fread((char *) &magic, sizeof (int), 1, filep) != 1)) in scr_reset() 149 if ((fread((char *) &labmax, sizeof (short), 1, filep) != 1) || in scr_reset() 150 (fread((char *) &lablen, sizeof (short), 1, filep) != 1)) { in scr_reset() 167 lablen, filep) != lablen) || in scr_reset() 169 sizeof (char), lablen, filep) != lablen)) { in scr_reset() 175 if (fseek(filep, (long) (2 * labmax * lablen * in scr_reset() [all …]
|
H A D | scr_all.c | 53 FILE *filep; in _scr_all() local 55 if ((filep = fopen(file, "rF")) == NULL) in _scr_all() 57 rv = scr_reset(filep, which); in _scr_all() 58 (void) fclose(filep); in _scr_all()
|
H A D | scr_dump.c | 56 FILE *filep; in scr_dump() local 58 if ((filep = fopen(file, "wF")) == NULL) { in scr_dump() 66 rv = scr_ll_dump(filep); in scr_dump() 67 (void) fclose(filep); in scr_dump()
|
H A D | getwin.c | 52 getwin(FILE *filep) in getwin() argument 65 if ((fread((char *) win_nums, sizeof (short), SEPARATE_READ, filep) != in getwin() 77 if (fread(&(win->_flags), 1, nelt, filep) != nelt) in getwin() 88 if (fread((char *) *wcp++, sizeof (chtype), maxx, filep) != in getwin()
|
H A D | putwin.c | 55 putwin(WINDOW *win, FILE *filep) in putwin() argument 65 if (fwrite((char *) &(win->_cury), 1, nelt, filep) != nelt) in putwin() 73 maxx, filep) != maxx) in putwin()
|
/titanic_41/usr/src/uts/common/io/ib/clients/of/sol_ucma/ |
H A D | sol_ucma.c | 526 sol_ucma_file_t *filep; in sol_ucma_close() local 533 filep = (sol_ucma_file_t *)sol_ofs_uobj_get_read( in sol_ucma_close() 535 if (!filep) { in sol_ucma_close() 542 mutex_enter(&filep->file_mutex); in sol_ucma_close() 543 if (filep->file_evt_close_flag == SOL_UCMA_EVT_PROGRESS) { in sol_ucma_close() 544 cv_wait(&filep->file_evt_close_cv, &filep->file_mutex); in sol_ucma_close() 546 filep->file_evt_close_flag = SOL_UCMA_EVT_DISABLED; in sol_ucma_close() 547 mutex_exit(&filep->file_mutex); in sol_ucma_close() 555 entry = remove_genlist_head(&filep->file_id_list); in sol_ucma_close() 576 entry = remove_genlist_head(&filep->file_id_list); in sol_ucma_close() [all …]
|
/titanic_41/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()
|
/titanic_41/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()
|
/titanic_41/usr/src/cmd/troff/ |
H A D | n3.c | 58 filep blist[NBLIST]; 75 filep oldoff; in caseig() 215 filep savoff; in casede() 216 extern filep finds(); in casede() 273 ffree((filep)contab[i].mx); 284 filep finds(mn) in finds() 288 filep savip; 289 extern filep alloc(); 290 extern filep incoff(); 294 apptr = (filep)0; [all …]
|
H A D | nii.c | 92 filep ip; 109 filep offset; 112 filep woff; 117 filep nextb; 123 filep apptr; 125 filep roff;
|
H A D | ext.h | 64 extern filep apptr; 65 extern filep ip; 66 extern filep nextb; 67 extern filep offset; 68 extern filep roff; 69 extern filep woff;
|
/titanic_41/usr/src/uts/common/krtld/ |
H A D | bootrd.c | 135 diskread(fileid_t *filep) in diskread() argument 141 blocknum = filep->fi_blocknum; in diskread() 144 if (diskloc + filep->fi_count > (caddr_t)(uintptr_t)rd_end) { in diskread() 146 diskloc, filep->fi_count); in diskread() 151 if (filep->fi_memp) { in diskread() 152 bcopy(diskloc, filep->fi_memp, filep->fi_count); in diskread() 155 filep->fi_memp = diskloc; in diskread()
|
/titanic_41/usr/src/cmd/getfacl/ |
H A D | getfacl.c | 107 register char *filep; in main() local 109 filep = argv[optind]; in main() 113 if ((aclcnt = acl(filep, GETACLCNT, 0, NULL)) < 0) { in main() 122 perror(filep); in main() 128 aclcnt, filep); in main() 140 if (acl(filep, GETACL, aclcnt, aclp) < 0) { in main() 141 perror(filep); in main() 146 (void) printf("\n# file: %s\n", filep); in main()
|
/titanic_41/usr/src/cmd/fs.d/cachefs/common/ |
H A D | subr.c | 204 cachefs_label_file_get(const char *filep, struct cache_label *clabelp) in cachefs_label_file_get() argument 211 xx = lstat64(filep, &statinfo); in cachefs_label_file_get() 215 filep, strerror(errno)); in cachefs_label_file_get() 217 pr_err(gettext("File %s does not exist."), filep); in cachefs_label_file_get() 225 pr_err(gettext("Cache label file %s corrupted"), filep); in cachefs_label_file_get() 231 pr_err(gettext("Cache label file %s wrong size"), filep); in cachefs_label_file_get() 236 fd = open(filep, O_RDONLY); in cachefs_label_file_get() 238 pr_err(gettext("Error opening %s: %s"), filep, in cachefs_label_file_get() 246 pr_err(gettext("Reading %s failed: %s\n"), filep, in cachefs_label_file_get() 274 cachefs_label_file_put(const char *filep, struct cache_label *clabelp) in cachefs_label_file_put() argument [all …]
|
H A D | subr.h | 73 int cachefs_label_file_get(const char *filep, struct cache_label *clabelp); 74 int cachefs_label_file_put(const char *filep, struct cache_label *clabelp); 76 int cachefs_label_file_vcheck(char *filep, struct cache_label *clabelp);
|
/titanic_41/usr/src/cmd/setfacl/ |
H A D | setfacl.c | 50 static int get_acl_info(char *filep, aclent_t **aclpp); 133 register char *filep; in main() local 135 filep = argv[optind]; in main() 161 aclcnt = get_acl_info(filep, &aclp); in main() 165 work_dp, filep, rflag) == -1) in main() 168 if (set_file_entries(aclfilep, filep, rflag) == -1) in main() 181 if (set_online_entries(work_sp, filep, rflag) == -1) in main() 192 get_acl_info(char *filep, aclent_t **aclpp) in get_acl_info() argument 196 if ((aclcnt = acl(filep, GETACLCNT, 0, NULL)) < 0) { in get_acl_info() 206 gettext("%s: failed to get acl count\n"), filep); in get_acl_info() [all …]
|
/titanic_41/usr/src/cmd/krb5/kadmin/dbutil/ |
H A D | dump.c | 1771 process_k5beta_record(fname, kcontext, filep, verbose, linenop) in process_k5beta_record() argument 1774 FILE *filep; 1813 nmatched = fscanf(filep, "%d\t%d\t%d\t%d\t%d\t%d\t", 1844 if (read_string(filep, name, name_len, linenop)) { 1849 if (!error && (fscanf(filep, "\t%d\t", &tmpint1) != 1)) { 1855 if (!error && read_octet_string(filep, 1887 if (!error && (fscanf(filep, 1901 if (!error && read_string(filep, 1909 if (!error && (fscanf(filep, "\t%u\t%u\t%u\t", 1917 if (!error && read_octet_string(filep, [all …]
|