/illumos-gate/usr/src/cmd/backup/lib/ |
H A D | byteorder.c | 45 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/cmd/bdiff/ |
H A D | bdiff.c | 532 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/bhyve/ |
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/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/dladm/ |
H A D | dladm.c | 7273 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/file/ |
H A D | file.c | 215 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/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/krb5/kadmin/dbutil/ |
H A D | dump.c | 1774 FILE *filep; 1887 if (!error && (fscanf(filep, 1901 if (!error && read_string(filep, 2106 FILE *filep; 2220 read_octet_string(filep, 2254 nread = fscanf(filep, "%d", &t9); 2290 read_octet_string(filep, 2322 if (read_octet_string(filep, 2401 FILE *filep; 2449 FILE *filep; [all …]
|
H A D | kdb5_util.h | 102 FILE *filep, int verbose,
|
H A D | ovload.c | 117 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/newform/ |
H A D | newform.c | 324 *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/priocntl/ |
H A D | subr.c | 461 read_pidlist(size_t *npidsp, FILE *filep) in read_pidlist() argument 473 nitems = fread(pidlist + *npidsp, sizeof (pid_t), NPIDS, filep); in read_pidlist() 474 if (ferror(filep)) in read_pidlist()
|
/illumos-gate/usr/src/cmd/raidctl/ |
H A D | raidctl.c | 161 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/rmvolmgr/ |
H A D | vold.c | 761 FILE *filep; in create_one_notify_file() local 825 filep = fdopen(file_descriptor, "w"); in create_one_notify_file() 826 if (filep != NULL) { in create_one_notify_file() 828 (void) fprintf(filep, "%s %s %s", in create_one_notify_file() 832 (void) fclose(filep); in create_one_notify_file() 841 (void) fprintf(filep, "%s %s", in create_one_notify_file() 843 (void) fclose(filep); in create_one_notify_file()
|
/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() 215 aclcnt, filep); in get_acl_info() [all …]
|
/illumos-gate/usr/src/cmd/troff/ |
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;
|
H A D | n1.c | 77 filep ipl[NSO]; 687 return pushi((filep)contab[j].mx, a);
|
H A D | n3.c | 73 filep oldoff; in caseig() 213 filep savoff; in casede() 286 filep savip; 436 filep j; in alloc() 468 filep i; in ffree() 551 filep j, p; in rbf() 603 filep p; in rbf0() 606 filep i; 622 filep p; in incoff() 660 filep newip; in pushi() [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 | tdef.h | 303 typedef unsigned int filep; /* this is good for 32 bit machines */ typedef 387 filep op; 404 filep pip;
|
/illumos-gate/usr/src/common/fs/ |
H A D | decompress.c | 72 fileid_t *filep; in cf_alloc() local 81 ptr = &filep->fi_dcscrbuf[filep->fi_dcscrused]; in cf_alloc() 124 if ((filep->fi_getblock)(filep) == -1) in cf_check_compressed() 127 filep->fi_count = 0; in cf_check_compressed() 128 filep->fi_cfoff = 0; in cf_check_compressed() 155 zsp->opaque = filep; in cf_check_compressed() 199 filep->fi_cfoff = 0; in cf_rewind() 236 filep->fi_offset = filep->fi_cfoff; in cf_read() 238 if ((*filep->fi_getblock)(filep) == -1) in cf_read() 244 filep->fi_cfoff += filep->fi_count; in cf_read() [all …]
|
H A D | hsfs.c | 92 fileid_t *filep; member 148 while ((filep = filep->fi_forw) != head) in find_fp() 150 return (filep->fi_taken ? filep : 0); in find_fp() 253 dirp.filep = filep; in dlook() 290 fileid_t *filep; in readdir() local 295 filep = dirp->filep; in readdir() 521 if (filep->fi_taken == 0 || filep == head) { in bhsfs_close() 528 filep->fi_forw->fi_back = filep->fi_back; in bhsfs_close() 529 filep->fi_back->fi_forw = filep->fi_forw; in bhsfs_close() 532 bkmem_free(filep->fi_path, strlen(filep->fi_path) + 1); in bhsfs_close() [all …]
|
H A D | pcfs.c | 209 fileid_t *filep; in bpcfs_open() local 238 fileid_t *filep; in bpcfs_close() local 244 if (filep->fi_taken == 0 || filep == head) { in bpcfs_close() 250 filep->fi_forw->fi_back = filep->fi_back; in bpcfs_close() 251 filep->fi_back->fi_forw = filep->fi_forw; in bpcfs_close() 252 bkmem_free(filep->fi_path, strlen(filep->fi_path) + 1); in bpcfs_close() 261 fileid_t *filep; in bpcfs_closeall() local 264 if (filep->fi_taken && bpcfs_close(filep->fi_filedes)) in bpcfs_closeall() 356 fileid_t *filep; in bpcfs_lseek() local 386 while ((filep = filep->fi_forw) != head) in find_fp() [all …]
|
H A D | ufsops.c | 137 while ((filep = filep->fi_forw) != head) in find_fp() 139 return (filep->fi_taken ? filep : 0); in find_fp() 384 diff = filep->fi_inode->i_size - filep->fi_offset; in getblock() 402 filep->fi_memp = filep->fi_buf; in getblock() 449 diff = filep->fi_inode->i_size - filep->fi_offset; in getblock_noopt() 654 filep->fi_offset = filep->fi_count = 0; in bufs_open() 752 if (filep->fi_taken && (filep != head)) { in bufs_close() 755 filep->fi_blocknum = filep->fi_count = filep->fi_offset = 0; in bufs_close() 761 filep->fi_forw->fi_back = filep->fi_back; in bufs_close() 762 filep->fi_back->fi_forw = filep->fi_forw; in bufs_close() [all …]
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
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()
|