Searched defs:filep (Results 1 - 25 of 36) sorted by relevance

12

/illumos-gate/usr/src/lib/libcurses/screen/
H A Dscr_dump.c56 FILE *filep; local
58 if ((filep = fopen(file, "wF")) == NULL) {
66 rv = scr_ll_dump(filep);
67 (void) fclose(filep);
H A Dscr_all.c53 FILE *filep; local
55 if ((filep = fopen(file, "rF")) == NULL)
57 rv = scr_reset(filep, which);
58 (void) fclose(filep);
H A Dputwin.c51 * filep: the file to write to.
55 putwin(WINDOW *win, FILE *filep) argument
65 if (fwrite((char *) &(win->_cury), 1, nelt, filep) != nelt)
73 maxx, filep) != maxx)
H A Dscr_ll_dump.c50 scr_ll_dump(FILE *filep) argument
57 if (fwrite((char *) &magic, sizeof (short), 1, filep) != 1)
67 1, filep) != 1)
73 if (putwin(curscr, filep) == ERR)
79 if (fwrite((char *) &magic, sizeof (int), 1, filep) != 1)
86 sizeof (short), 1, filep) != 1) ||
88 1, filep) != 1)) {
93 filep) != lablen) || (fwrite(slk->_lval[i],
94 sizeof (char), lablen, filep) != lablen)) {
108 if (fwrite((char *) &magic, sizeof (int), 1, filep) !
[all...]
H A Dgetwin.c52 getwin(FILE *filep) argument
65 if ((fread((char *) win_nums, sizeof (short), SEPARATE_READ, filep) !=
77 if (fread(&(win->_flags), 1, nelt, filep) != nelt)
88 if (fread((char *) *wcp++, sizeof (chtype), maxx, filep) !=
H A Dscr_reset.c55 * filep: pointer to the output stream
77 scr_reset(FILE *filep, int type) argument
100 if (fread((char *) &magic, sizeof (short), 1, filep) != 1)
106 if (fread((char *) &ttytime, sizeof (time_t), 1, filep) != 1)
127 if (((win = getwin(filep)) == NULL) ||
131 (fread((char *) &magic, sizeof (int), 1, filep) != 1))
149 if ((fread((char *) &labmax, sizeof (short), 1, filep) != 1) ||
150 (fread((char *) &lablen, sizeof (short), 1, filep) != 1)) {
162 * filep) != lablen) ||
164 * filep !
[all...]
/illumos-gate/usr/src/stand/lib/fs/common/
H A Ddiskread.c36 #include <sys/filep.h>
54 diskread(fileid_t *filep) argument
61 blocknum = filep->fi_blocknum + unix_startblk;
63 devp = filep->fi_devp;
72 if ((err = prom_read(devp->di_dcookie, filep->fi_memp, filep->fi_count,
73 blocknum, prom_dev_type)) != filep->fi_count) {
/illumos-gate/usr/src/cmd/getfacl/
H A Dgetfacl.c107 register char *filep; local
109 filep = argv[optind];
113 if ((aclcnt = acl(filep, GETACLCNT, 0, NULL)) < 0) {
122 perror(filep);
128 aclcnt, filep);
140 if (acl(filep, GETACL, aclcnt, aclp) < 0) {
141 perror(filep);
146 (void) printf("\n# file: %s\n", filep);
/illumos-gate/usr/src/common/fs/
H A Ddecompress.c35 #include <sys/filep.h>
72 fileid_t *filep; local
76 filep = (fileid_t *)opaque;
78 if (nbytes > (DECOMP_BUFSIZE - filep->fi_dcscrused)) {
81 ptr = &filep->fi_dcscrbuf[filep->fi_dcscrused];
82 filep->fi_dcscrused += nbytes;
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) argument
175 cf_close(fileid_t *filep) argument
190 cf_rewind(fileid_t *filep) argument
212 cf_read(fileid_t *filep, caddr_t buf, size_t count) argument
267 cf_seek(fileid_t *filep, off_t addr, int whence) argument
[all...]
H A Dpcfs.c47 #include <sys/filep.h>
211 fileid_t *filep; local
215 filep = (fileid_t *)bkmem_alloc(sizeof (fileid_t));
216 filep->fi_back = head->fi_back;
217 filep->fi_forw = head;
218 head->fi_back->fi_forw = filep;
219 head->fi_back = filep;
220 filep->fi_filedes = filedes++;
221 filep->fi_taken = 1;
222 filep
240 fileid_t *filep; local
263 fileid_t *filep; local
358 fileid_t *filep; local
385 fileid_t *filep = head; local
[all...]
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) argument
100 devid_t *devp = filep->fi_devp;
102 filep->fi_inode = get_cache((int)inode);
103 if (filep->fi_inode != 0)
106 filep->fi_offset = 0;
107 filep
131 fileid_t *filep = head; local
143 find(fileid_t *filep, char *path) argument
216 sbmap(fileid_t *filep, daddr32_t bn) argument
281 dlook(fileid_t *filep, char *path) argument
323 fileid_t *filep; local
365 getblock(fileid_t *filep, caddr_t buf, int count, int *rcount) argument
430 getblock_noopt(fileid_t *filep) argument
494 fileid_t *filep; local
613 fileid_t *filep; local
662 fileid_t *filep; local
695 fileid_t *filep; local
739 fileid_t *filep; local
771 fileid_t *filep = head; local
[all...]
H A Dhsfs.c47 #include <sys/filep.h>
94 fileid_t *filep; member in struct:dirstuff
147 fileid_t *filep = head; local
150 while ((filep = filep->fi_forw) != head)
151 if (fd == filep->fi_filedes)
152 return (filep->fi_taken ? filep : 0);
159 opendir(ino_t inode, fileid_t *filep) argument
165 filep
195 find(char *path, fileid_t *filep) argument
234 dlook(char *s, fileid_t *filep) argument
291 fileid_t *filep; local
323 getblock(fileid_t *filep) argument
356 fileid_t *filep; local
478 fileid_t *filep; local
516 fileid_t *filep; local
542 fileid_t *filep; local
560 fileid_t *filep; local
592 fileid_t *filep; local
641 parse_dir(fileid_t *filep, int offset, struct hs_direct *hsdep) argument
[all...]
/illumos-gate/usr/src/cmd/backup/lib/
H A Dbyteorder.c47 byteorder_banner(struct byteorder_ctx *ctx, FILE *filep) argument
49 if ((! ctx->initialized) || (filep == NULL))
53 (void) fprintf(filep, gettext("Note: doing byte swapping\n"));
/illumos-gate/usr/src/stand/lib/fs/nfs/
H A Dnfs2ops.c58 nfsread(struct nfs_file *filep, char *buf, size_t size) argument
73 read_args.file = filep->fh.fh2; /* structure copy */
74 read_args.offset = filep->offset;
164 filep->offset += readcnt;
H A Dnfsops.c99 struct nfs_files *filep; local
112 while ((filep = nfs_files->next) != NULL) {
113 nfs_files->next = filep->next;
114 bkmem_free((caddr_t)filep, sizeof (struct nfs_files));
132 struct nfs_files *filep; local
134 for (filep = nfs_files; filep; filep = filep->next) {
135 if (fd == filep
158 struct nfs_files *filep, *newfilep; local
229 struct nfs_files *filep; local
257 struct nfs_files *filep; local
309 struct nfs_files *filep; local
372 struct nfs_files *filep; local
436 struct nfs_files *filep; local
[all...]
H A Dnfs3ops.c56 nfs3read(struct nfs_file *filep, char *buf, size_t size) argument
71 read_args.file.data.data_len = filep->fh.fh3.len;
72 read_args.file.data.data_val = filep->fh.fh3.data;
73 read_args.offset = filep->offset;
168 filep->offset += readcnt;
H A Dnfs4ops.c58 nfs4read(struct nfs_file *filep, char *buf, size_t size) argument
93 if (filep->fh.fh4.len > 0)
94 compound_init(&readargs.r_arg, &str, 0, 2, &filep->fh.fh4);
103 readargs.r_offset = filep->offset;
165 filep->offset += readcnt;
H A Dmount.c141 nfsmountroot(char *path, struct nfs_file *filep) argument
174 * Since the mount succeeded, we'll mark the filep's
178 bcopy(&root_tmp.fhstatus_u.fhs_fhandle, &filep->fh.fh2, FHSIZE);
179 filep->ftype.type2 = NFDIR;
180 filep->version = NFS_VERSION;
317 nfs3mountroot(char *path, struct nfs_file *filep) argument
360 * Since the mount succeeded, we'll mark the filep's
364 filep->fh.fh3.len = res3.mountres3_u.mountinfo.fhandle.fhandle3_len;
366 filep->fh.fh3.data,
367 filep
[all...]
/illumos-gate/usr/src/uts/common/krtld/
H A Dbootrd.c32 #include <sys/filep.h>
135 diskread(fileid_t *filep) argument
141 blocknum = filep->fi_blocknum;
144 if (diskloc + filep->fi_count > (caddr_t)(uintptr_t)rd_end) {
146 diskloc, filep->fi_count);
151 if (filep->fi_memp) {
152 bcopy(diskloc, filep->fi_memp, filep->fi_count);
155 filep->fi_memp = diskloc;
/illumos-gate/usr/src/cmd/boot/installgrub/
H A Dpcfs_glue.c30 #include <sys/filep.h>
82 diskread(fileid_t *filep) argument
87 blocknum = filep->fi_blocknum;
90 diskread_callback(blocknum, filep->fi_count / DEV_BSIZE);
95 if (filep->fi_memp == NULL) {
96 filep->fi_memp = malloc(filep->fi_count);
98 if (filep->fi_memp == NULL) {
103 ret = pread(dev_fd, filep->fi_memp, filep
[all...]
/illumos-gate/usr/src/cmd/priocntl/
H A Dsubr.c461 read_pidlist(size_t *npidsp, FILE *filep) argument
473 nitems = fread(pidlist + *npidsp, sizeof (pid_t), NPIDS, filep);
474 if (ferror(filep))
/illumos-gate/usr/src/cmd/newform/
H A Dnewform.c326 *filep; /* Pointer to file name */ local
413 filep = --p;
555 if ((fp = fopen(filep, "r")) == NULL) {
557 "newform: can't open %s\n", filep);
/illumos-gate/usr/src/cmd/setfacl/
H A Dsetfacl.c50 static int get_acl_info(char *filep, aclent_t **aclpp);
133 register char *filep; local
135 filep = argv[optind];
161 aclcnt = get_acl_info(filep, &aclp);
165 work_dp, filep, rflag) == -1)
168 if (set_file_entries(aclfilep, filep, rflag) == -1)
181 if (set_online_entries(work_sp, filep, rflag) == -1)
192 get_acl_info(char *filep, aclent_t **aclpp) argument
196 if ((aclcnt = acl(filep, GETACLCNT, 0, NULL)) < 0) {
206 gettext("%s: failed to get acl count\n"), filep);
[all...]
/illumos-gate/usr/src/cmd/bdiff/
H A Dbdiff.c534 readline(char **bufferp, size_t *bufsizp, FILE *filep) argument
542 bufp = fgets(*bufferp, *bufsizp, filep);
557 bufp = fgets(*bufferp + oldsize -1, oldsize + 1, filep);
559 if (filep->_flag & _IOEOF) {
/illumos-gate/usr/src/stand/lib/fs/ufs/
H A Dlufsboot.c42 #include <sys/filep.h>
245 extern int diskread(fileid_t *filep);
473 lufs_boot_init(fileid_t *filep) argument
475 struct fs *sb = (struct fs *)filep->fi_memp;
480 * filep pointing to the superblock. Verify that this
486 sb != (struct fs *)&filep->fi_devp->un_fs.di_fs ||
507 logfp->fi_devp = filep->fi_devp;

Completed in 96 milliseconds

12