Home
last modified time | relevance | path

Searched refs:filep (Results 1 – 25 of 44) sorted by last modified time

12

/illumos-gate/usr/src/uts/common/fs/fifofs/
H A Dfifosubr.c910 struct file *filep; in fifo_connld() local
925 if (error = falloc(vp1, FWRITE|FREAD, &filep, NULL)) { in fifo_connld()
930 mutex_exit(&filep->f_tlock); in fifo_connld()
939 if ((error = fifo_stropen(&vp1, FREAD|FWRITE, filep->f_cred, 0, 0)) != in fifo_connld()
941 (error = fifo_stropen(&vp2, flag, filep->f_cred, 0, 0)) != 0) { in fifo_connld()
948 (void) closef(filep); in fifo_connld()
991 if (error = do_sendfp((*vpp)->v_stream, filep, crp)) { in fifo_connld()
1032 (void) closef(filep); in fifo_connld()
1035 c = filep->f_cred; in fifo_connld()
1037 (void) closef(filep); in fifo_connld()
/illumos-gate/usr/src/cmd/raidctl/
H A Draidctl.c161 static int do_flash(uint8_t f_flag, char *filep, char **ctls_argpp,
1101 do_flash(uint8_t f_flag, char *filep, char **ctls_argpp, in do_flash() argument
1146 if ((ret = raidcfg_update_fw(ctl_handle, filep, NULL)) < 0) { in do_flash()
/illumos-gate/usr/src/cmd/dladm/
H A Ddladm.c7273 dladm_secobj_class_t class, FILE *filep) in get_secobj_val() argument
7279 if (filep == NULL) { in get_secobj_val()
7290 if (fgets(buf, sizeof (buf), filep) == NULL) in get_secobj_val()
7302 (void) fclose(filep); in get_secobj_val()
7373 FILE *filep = NULL; in do_create_secobj() local
7391 filep = fopen(optarg, "r"); in do_create_secobj()
7392 if (filep == NULL) { in do_create_secobj()
7441 rval = get_secobj_val(obj_name, obj_val, &obj_len, class, filep); in do_create_secobj()
/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/troff/
H A Dn1.c77 filep ipl[NSO];
687 return pushi((filep)contab[j].mx, a);
H A Dnii.c89 filep ip;
106 filep offset;
109 filep woff;
114 filep nextb;
120 filep apptr;
122 filep roff;
H A Dtdef.h303 typedef unsigned int filep; /* this is good for 32 bit machines */ typedef
387 filep op;
404 filep pip;
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;
H A Dn3.c56 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 …]
/illumos-gate/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,
[all …]
H A Dkdb5_util.h102 FILE *filep, int verbose,
H A Dovload.c117 int process_ov_principal(fname, kcontext, filep, verbose, linenop) in process_ov_principal() argument
120 FILE *filep;
136 if (fgets(line, LINESIZE, filep) == (char *) NULL) {
/illumos-gate/usr/src/cmd/file/
H A Dfile.c215 char **filep; in main() local
319 for (filep = mlist1; filep < mlist1p; filep++) { in main()
320 if (f_mkmtab(*filep, cflg, 1) == -1) { in main()
346 for (filep = mlist1; filep < mlist1p; filep++) { in main()
347 if (f_mkmtab(*filep, cflg, 0) == -1) { in main()
361 for (filep = mlist1; filep && (filep < mlist1p); filep++) { in main()
362 if (f_mkmtab(*filep, cflg, 1) == -1) { in main()
366 for (filep = mlist2; filep && (filep < mlist2p); filep++) { in main()
367 if (f_mkmtab(*filep, cflg, 0) == -1) { in main()
/illumos-gate/usr/src/lib/libcurses/screen/
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()
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 Dscr_ll_dump.c48 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 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()
/illumos-gate/usr/src/cmd/newform/
H A Dnewform.c324 *filep; /* Pointer to file name */ in cnvtspec() local
411 filep = --p; in cnvtspec()
553 if ((fp = fopen(filep, "r")) == NULL) { in cnvtspec()
555 "newform: can't open %s\n", filep); in cnvtspec()
/illumos-gate/usr/src/cmd/bdiff/
H A Dbdiff.c532 readline(char **bufferp, size_t *bufsizp, FILE *filep) in readline() argument
540 bufp = fgets(*bufferp, *bufsizp, filep); in readline()
555 bufp = fgets(*bufferp + oldsize -1, oldsize + 1, filep); in readline()
557 if (filep->_flag & _IOEOF) { in readline()
/illumos-gate/usr/src/cmd/backup/lib/
H A Dbyteorder.c45 byteorder_banner(struct byteorder_ctx *ctx, FILE *filep) in byteorder_banner() argument
47 if ((! ctx->initialized) || (filep == NULL)) in byteorder_banner()
51 (void) fprintf(filep, gettext("Note: doing byte swapping\n")); in byteorder_banner()
/illumos-gate/usr/src/common/fs/
H A Dpcfs.c209 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 …]
H A Dufsops.c80 static ino_t find(fileid_t *filep, char *path);
81 static ino_t dlook(fileid_t *filep, char *path);
82 static daddr32_t sbmap(fileid_t *filep, daddr32_t bn);
100 openi(fileid_t *filep, ino_t inode) in openi() argument
103 devid_t *devp = filep->fi_devp; in openi()
105 filep->fi_inode = get_cache((int)inode); in openi()
106 if (filep->fi_inode != 0) in openi()
109 filep->fi_offset = 0; in openi()
110 filep->fi_blocknum = fsbtodb(&devp->un_fs.di_fs, in openi()
114 filep->fi_count = devp->un_fs.di_fs.fs_bsize; in openi()
[all …]
/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/uts/common/io/ib/clients/of/sol_ucma/
H A Dsol_ucma.c527 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 …]

12