Home
last modified time | relevance | path

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

12

/titanic_52/usr/src/common/fs/
H A Dufsops.c35 #include <sys/filep.h>
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 in openi()
131 fileid_t *filep = head; find_fp() local
143 find(fileid_t * filep,char * path) find() argument
216 sbmap(fileid_t * filep,daddr32_t bn) sbmap() argument
281 dlook(fileid_t * filep,char * path) dlook() argument
323 fileid_t *filep; readdir() local
365 getblock(fileid_t * filep,caddr_t buf,int count,int * rcount) getblock() argument
430 getblock_noopt(fileid_t * filep) getblock_noopt() argument
494 fileid_t *filep; bufs_read() local
613 fileid_t *filep; bufs_open() local
662 fileid_t *filep; bufs_lseek() local
695 fileid_t *filep; bufs_fstat() local
739 fileid_t *filep; bufs_close() local
771 fileid_t *filep = head; bufs_closeall() local
[all...]
H A Ddecompress.c35 #include <sys/filep.h>
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()
99 * Read the first block of the file described by filep and determine if
101 * in the fileid_t struct pointed to by filep and it will be initialized
105 cf_check_compressed(fileid_t *filep) in cf_check_compressed() argument
175 cf_close(fileid_t * filep) cf_close() argument
190 cf_rewind(fileid_t * filep) cf_rewind() argument
212 cf_read(fileid_t * filep,caddr_t buf,size_t count) cf_read() argument
267 cf_seek(fileid_t * filep,off_t addr,int whence) cf_seek() argument
[all...]
H A Dhsfs.c47 #include <sys/filep.h>
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 in opendir()
195 find(char * path,fileid_t * filep) find() argument
234 dlook(char * s,fileid_t * filep) dlook() argument
291 fileid_t *filep; readdir() local
323 getblock(fileid_t * filep) getblock() argument
356 fileid_t *filep; bhsfs_read() local
478 fileid_t *filep; bhsfs_open() local
516 fileid_t *filep; bhsfs_close() local
542 fileid_t *filep; bhsfs_closeall() local
560 fileid_t *filep; bhsfs_lseek() local
592 fileid_t *filep; bhsfs_fstat() local
641 parse_dir(fileid_t * filep,int offset,struct hs_direct * hsdep) parse_dir() argument
[all...]
H A Dpcfs.c47 #include <sys/filep.h>
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 in bpcfs_open()
240 fileid_t *filep; bpcfs_close() local
263 fileid_t *filep; bpcfs_closeall() local
358 fileid_t *filep; bpcfs_lseek() local
385 fileid_t *filep = head; find_fp() local
[all...]
/titanic_52/usr/src/stand/lib/fs/ufs/
H A Dufsops.c89 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 in openi()
156 fileid_t *filep = head; find_fp() local
168 find(fileid_t * filep,char * path) find() argument
248 sbmap(fileid_t * filep,daddr32_t bn) sbmap() argument
320 dlook(fileid_t * filep,char * path) dlook() argument
407 fileid_t *filep; readdir() local
449 getblock(fileid_t * filep,caddr_t buf,int count,int * rcount) getblock() argument
552 fileid_t *filep; boot_ufs_read() local
679 fileid_t *filep; boot_ufs_open() local
720 fileid_t *filep; boot_ufs_lseek() local
752 fileid_t *filep; boot_ufs_fstat() local
793 fileid_t *filep; boot_ufs_close() local
825 fileid_t *filep = head; boot_ufs_closeall() local
[all...]
/titanic_52/usr/src/stand/lib/fs/nfs/
H A Dnfsops.c99 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 in get_filep()
158 struct nfs_files *filep, *newfilep; boot_nfs_open() local
229 struct nfs_files *filep; boot_nfs_close() local
257 struct nfs_files *filep; boot_nfs_read() local
309 struct nfs_files *filep; boot_nfs_lseek() local
372 struct nfs_files *filep; boot_nfs_fstat() local
436 struct nfs_files *filep; boot_nfs_getdents() local
[all...]
H A Dmount.c141 nfsmountroot(char *path, struct nfs_file *filep) in nfsmountroot() argument
174 * Since the mount succeeded, we'll mark the filep's in nfsmountroot()
178 bcopy(&root_tmp.fhstatus_u.fhs_fhandle, &filep->fh.fh2, FHSIZE); in nfsmountroot()
179 filep->ftype.type2 = NFDIR; in nfsmountroot()
180 filep->version = NFS_VERSION; in nfsmountroot()
317 nfs3mountroot(char *path, struct nfs_file *filep) in nfs3mountroot() argument
360 * Since the mount succeeded, we'll mark the filep's in nfs3mountroot()
364 filep->fh.fh3.len = res3.mountres3_u.mountinfo.fhandle.fhandle3_len; in nfs3mountroot()
366 filep->fh.fh3.data, in nfs3mountroot()
367 filep in nfs3mountroot()
[all...]
/titanic_52/usr/src/stand/lib/fs/hsfs/
H A Dhsfsops.c33 #include <sys/filep.h>
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 in opendir()
156 find(fileid_t * filep,char * path) find() argument
208 fileid_t *filep = head; find_fp() local
220 dlook(fileid_t * filep,char * path) dlook() argument
285 register fileid_t *filep; readdir() local
319 getblock(fileid_t * filep,caddr_t buf,int count,int * rcount) getblock() argument
407 fileid_t *filep; boot_hsfs_read() local
573 fileid_t *filep; boot_hsfs_open() local
615 fileid_t *filep; boot_hsfs_fstat() local
661 fileid_t *filep; boot_hsfs_lseek() local
676 fileid_t *filep; boot_hsfs_close() local
707 fileid_t *filep = head; boot_hsfs_closeall() local
735 parse_dir(fileid_t * filep,int offset,struct hs_direct * hsdep) parse_dir() argument
953 hs_seti(fileid_t * filep,struct hs_direct * hsdep,ino_t inode) hs_seti() argument
979 print_io_req(fileid_t * filep,char * str) print_io_req() argument
[all...]
/titanic_52/usr/src/lib/libcurses/screen/
H A Dscr_ll_dump.c50 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) ! in scr_ll_dump()
[all...]
H A Dscr_reset.c55 * filep: pointer to the output stream
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()
162 * filep) != lablen) || in scr_reset()
164 * filep ! in scr_reset()
[all...]
H A Dscr_all.c53 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 Dscr_dump.c56 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 Dgetwin.c52 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 Dputwin.c51 * filep: the file to write to.
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_52/usr/src/uts/common/io/ib/clients/of/sol_ucma/
H A Dsol_ucma.c526 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 in sol_ucma_close()
773 sol_ucma_file_t *filep; sol_ucma_poll() local
804 sol_ucma_file_t *filep; global() local
870 sol_ucma_file_t *filep; global() local
1315 sol_ucma_file_t *filep; global() local
1798 ucma_alloc_chan(sol_ucma_file_t * filep,sol_ucma_create_id_t * create_id_inp) global() argument
1833 sol_ucma_file_t *filep; global() local
1852 get_file_chan(uint32_t ucma_id,sol_ucma_file_t ** filep,sol_ucma_chan_t ** chanp,char * caller,int flag_err) global() argument
[all...]
/titanic_52/usr/src/stand/lib/fs/common/
H A Ddiskread.c36 #include <sys/filep.h>
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_52/usr/src/cmd/boot/installgrub/
H A Dpcfs_glue.c30 #include <sys/filep.h>
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 in diskread()
[all...]
/titanic_52/usr/src/cmd/troff/
H A Dn3.c58 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)
[all...]
H A Dnii.c92 filep ip;
109 filep offset;
112 filep woff;
117 filep nextb;
123 filep apptr;
125 filep roff;
H A Dext.h64 extern filep apptr;
65 extern filep ip;
66 extern filep nextb;
67 extern filep offset;
68 extern filep roff;
69 extern filep woff;
/titanic_52/usr/src/uts/common/krtld/
H A Dbootrd.c32 #include <sys/filep.h>
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_52/usr/src/cmd/getfacl/
H A Dgetfacl.c107 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_52/usr/src/cmd/setfacl/
H A Dsetfacl.c50 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_52/usr/src/cmd/krb5/kadmin/dbutil/
H A Ddump.c1771 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,
2103 process_k5beta6_record(fname,kcontext,filep,verbose,linenop) process_k5beta6_record() argument
2398 process_k5beta7_policy(fname,kcontext,filep,verbose,linenop,pol_db) process_k5beta7_policy() argument
2446 process_k5beta7_record(fname,kcontext,filep,verbose,linenop) process_k5beta7_record() argument
2483 process_ov_record(fname,kcontext,filep,verbose,linenop) process_ov_record() argument
[all...]
/titanic_52/usr/src/lib/libdevinfo/
H A Ddevfsmap.c175 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_er in parse_conf_entry()
[all...]

12