/illumos-gate/usr/src/uts/common/syscall/ |
H A D | fdsync.c | 52 file_t *fp; in fdsync() local 56 if ((fp = getf(fd)) != NULL) { in fdsync() 65 if (error = VOP_FSYNC(fp->f_vnode, syncflag, fp->f_cred, NULL)) in fdsync()
|
/illumos-gate/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_wcb.c | 93 mdb_wcb_insert(mdb_wcb_t *wcb, mdb_frame_t *fp) in mdb_wcb_insert() argument 100 wcb->w_link = fp->f_wcbs; in mdb_wcb_insert() 101 fp->f_wcbs = wcb; in mdb_wcb_insert() 105 mdb_wcb_delete(mdb_wcb_t *wcb, mdb_frame_t *fp) in mdb_wcb_delete() argument 107 mdb_wcb_t **pp = &fp->f_wcbs; in mdb_wcb_delete() 114 for (w = fp->f_wcbs; w != NULL; pp = &w->w_link, w = w->w_link) { in mdb_wcb_delete()
|
H A D | mdb_ctf_open.c | 51 mdb_ctf_close(ctf_file_t *fp) in mdb_ctf_close() argument 53 ctf_close(fp); in mdb_ctf_close() 57 mdb_ctf_write(const char *filename, ctf_file_t *fp) in mdb_ctf_write() argument 64 if (ctf_write(fp, fd) == CTF_ERR) { in mdb_ctf_write()
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | fs_mounts.c | 163 FILE *fp; in fs_get_filtered_mount_list() local 180 (void) fclose(fp); in fs_get_filtered_mount_list() 194 (void) fclose(fp); in fs_get_filtered_mount_list() 209 (void) fclose(fp); in fs_get_filtered_mount_list() 274 FILE *fp; in fs_get_mounts_by_mntopt() local 300 (void) fclose(fp); in fs_get_mounts_by_mntopt() 314 (void) fclose(fp); in fs_get_mounts_by_mntopt() 327 FILE *fp; in fs_get_mount_list() local 339 resetmnttab(fp); in fs_get_mount_list() 356 (void) fclose(fp); in fs_get_mount_list() [all …]
|
/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | fput.c | 38 sm_io_fputs(fp, timeout, s) 39 SM_FILE_T *fp; 46 SM_REQUIRE_ISA(fp, SmFileMagic); 51 return sm_fvwrite(fp, timeout, &uio);
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | getdate.c | 68 FILE *fp; in getdate() local 90 if ((fp = fopen(datemsk, "r")) == NULL) { in getdate() 111 while ((line = fgets(buf, sizeof (buf), fp)) != NULL) { in getdate() 121 (void) fclose(fp); in getdate() 133 if (errno != 0 || ferror(fp)) { in getdate() 138 (void) fclose(fp); in getdate() 141 if (feof(fp) || (rp != NULL && *rp != '\0')) { in getdate() 145 (void) fclose(fp); in getdate()
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | driver-network-fp.p5m | 32 set name=pkg.fmri value=pkg:/driver/network/fp@$(PKGVERS) 34 set name=pkg.description value="fctl module and fp device driver" 40 file path=kernel/drv/$(ARCH64)/fp group=sys 41 file path=kernel/drv/fp.conf group=sys \ 42 original_name=SUNWfctl:kernel/drv/fp.conf preserve=true 49 file path=usr/share/man/man4d/fp.4d 50 driver name=fp perms="* 0600 root sys" 51 legacy pkg=SUNWfctl desc="fctl module and fp device driver" \
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | mci.c | 582 mci_dump(fp, mci, logit) in mci_dump() argument 583 SM_FILE_T *fp; in mci_dump() 666 mci_dump_all(fp, logit) in mci_dump_all() argument 667 SM_FILE_T *fp; in mci_dump_all() 838 SM_FILE_T *fp; local 870 if (fp == NULL) 916 SM_FILE_T *fp; in mci_read_persistent() 924 if (fp == NULL) 939 (unsigned long) fp); 1291 SM_FILE_T *fp; local [all …]
|
/illumos-gate/usr/src/cmd/fs.d/ |
H A D | deffs.c | 51 FILE *fp; in default_fstype() local 59 if ((fp = fopen(REMOTE, "r")) != NULL) { in default_fstype() 60 if (fgets(buf, sizeof (buf), fp) != NULL) in default_fstype() 62 fclose(fp); in default_fstype()
|
/illumos-gate/usr/src/lib/libnsl/saf/ |
H A D | checkver.c | 51 FILE *fp; /* file pointer for sactab */ in check_version() local 56 if ((fp = fopen(fname, "rF")) == NULL) in check_version() 59 while (fgets(p, BUFSIZ, fp)) { in check_version() 66 (void) fclose(fp); in check_version()
|
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/ |
H A D | dbtab.c | 387 debug_opaque_print(fp, key, ksize); in debug_print_key() 390 (void) fprintf(fp, ": inode "); in debug_print_key() 392 (void) fprintf(fp, ", gen "); in debug_print_key() 398 (void) fprintf(fp, "\n"); in debug_print_key() 406 (void) fprintf(fp, "linkinfo:\ndfh: "); in debug_print_linkinfo() 424 (void) fprintf(fp, "fhrec:\nfh: "); in debug_print_fhlist() 442 debug_print_linkinfo(fp, &inf); in debug_print_key_and_data() 447 debug_print_fhlist(fp, &inf); in debug_print_key_and_data() 450 debug_opaque_print(fp, data, dsize); in debug_print_key_and_data() 1698 (void) fprintf(fp, in db_print_all_keys() [all …]
|
/illumos-gate/usr/src/lib/libldap5/sources/ldap/common/ |
H A D | srchpref.c | 66 FILE *fp; in ldap_init_searchprefs() local 71 if (( fp = fopen( file, "rF" )) == NULL ) { in ldap_init_searchprefs() 75 if ( fseek( fp, 0L, SEEK_END ) != 0 ) { /* move to end to get len */ in ldap_init_searchprefs() 76 fclose( fp ); in ldap_init_searchprefs() 80 len = ftell( fp ); in ldap_init_searchprefs() 82 if ( fseek( fp, 0L, SEEK_SET ) != 0 ) { /* back to start of file */ in ldap_init_searchprefs() 83 fclose( fp ); in ldap_init_searchprefs() 88 fclose( fp ); in ldap_init_searchprefs() 92 rlen = fread( buf, 1, (size_t)len, fp ); in ldap_init_searchprefs() 93 eof = feof( fp ); in ldap_init_searchprefs() [all …]
|
/illumos-gate/usr/src/cmd/print/conv_fix/ |
H A D | conv_fix.c | 51 _file_getline(FILE *fp) in _file_getline() argument 60 while (fgets(tmp, size, fp)) { in _file_getline() 92 FILE *fp, *fp2; in main() local 117 if ((fp = fopen(file, "r")) != NULL) { in main() 133 while ((cp = _file_getline(fp)) != NULL) { in main()
|
/illumos-gate/usr/src/test/util-tests/tests/ctf/ |
H A D | check-function.c | 72 ctf_file_t *fp; in main() local 75 if ((fp = ctf_open(argv[i], &ret)) == NULL) { in main() 83 if (!ctftest_check_function(functions[j].cft_name, fp, in main() 91 if (!ctftest_check_fptr(fptrs[j].cft_name, fp, in main() 98 ctf_close(fp); in main()
|
/illumos-gate/usr/src/cmd/smbsrv/fksmbd/ |
H A D | fksmbd_shr.c | 75 FILE *fp; in shr_load_file() local 79 fp = fopen(shr_file, "r"); in shr_load_file() 80 if (fp == NULL) { in shr_load_file() 85 while ((p = fgets(linebuf, sizeof (linebuf), fp)) != NULL) { in shr_load_file() 107 (void) fclose(fp); in shr_load_file()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/bltins/ |
H A D | shiocmd_solaris.c | 190 Shfield_t *fp = ftable; in sh_findfield() local 199 for(i=0; i < nelem; i++,fp++) in sh_findfield() 201 if(memcmp(fp->name,name,n)==0 && fp->name[n]==0) in sh_findfield() 202 return(fp); in sh_findfield() 233 if(fp->size<0) in sh_newnode() 236 if(fp->make) in sh_newnode() 237 (*fp->make)(nq); in sh_newnode() 247 int n = fp-sp->fields; in fieldcreate() 248 int len = strlen(fp->name); in fieldcreate() 262 Shfield_t *fp = sp->fields; in genvalue() local [all …]
|
/illumos-gate/usr/src/boot/libsa/string/ |
H A D | swab.c | 46 char *fp, *tp; in swab() local 51 fp = (char *)from; in swab() 53 #define STEP temp = *fp++,*tp++ = *fp++,*tp++ = temp in swab()
|
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/ |
H A D | bash.c | 153 static void put_globignore(register Namval_t* np, const char *val, int flags, Namfun_t *fp) in put_globignore() argument 160 nv_putv(np,val,flags,fp); in put_globignore() 172 static void put_funcname(register Namval_t* np,const char *val,int flags,Namfun_t *fp) in put_funcname() argument 179 nv_putv(np,val,flags,fp); in put_funcname() 384 Namfun_t *fp = calloc(dp->dsize,1); in bash_init() local 385 fp->disc = dp; in bash_init() 386 nv_disc(np, fp, 0); in bash_init() 393 Namfun_t *fp = calloc(dp->dsize,1); in bash_init() local 394 fp->disc = dp; in bash_init() 395 nv_disc(np, fp, 0); in bash_init()
|
H A D | tdump.c | 160 struct fornod *fp; in p_arg() local 164 fp=0; in p_arg() 167 fp=(struct fornod*)arg->argchn.ap; in p_arg() 168 n = strlen(fp->fornam)+1; in p_arg() 171 if(fp) in p_arg() 174 outstring(outfile,fp->fornam,n-1); in p_arg() 179 if(fp) in p_arg() 181 sfputu(outfile,fp->fortyp); in p_arg() 182 p_tree(fp->fortre); in p_arg()
|
/illumos-gate/usr/src/cmd/lp/lib/lp/ |
H A D | alerts.c | 464 printalert(FILE *fp, FALERT *alertp, int isfault) in printalert() argument 468 (void)fprintf (fp, (char *)gettext("On fault: no alert\n")); in printalert() 470 (void)fprintf (fp, (char *)gettext("No alert\n")); in printalert() 477 (void)fprintf (fp, (char *)gettext("On fault: ")); in printalert() 481 fp, in printalert() 486 (void)fprintf (fp, (char *)gettext("Upon any being queued: ")); in printalert() 500 (void)fprintf (fp, "%s to %s ", copy, cp); in printalert() 502 (void)fprintf (fp, (char *)gettext("alert with \"%s\" "), alertp->shcmd); in printalert() 505 (void)fprintf (fp, (char *)gettext("every %d minutes\n"), alertp->W); in printalert() 507 (void)fprintf (fp, (char *)gettext("once\n")); in printalert()
|
/illumos-gate/usr/src/uts/common/inet/sctp/ |
H A D | sctp_error.c | 102 sctp_faddr_t *fp = sctp->sctp_current; in sctp_user_abort() local 103 ip_xmit_attr_t *ixa = fp->sf_ixa; in sctp_user_abort() 116 mp = sctp_make_mp(sctp, fp, 0); in sctp_user_abort() 126 if (fp->sf_isv4) { in sctp_user_abort() 135 if (len + hdrlen > fp->sf_pmss) { in sctp_user_abort() 136 len = fp->sf_pmss - hdrlen; in sctp_user_abort() 525 sctp_faddr_t *fp; in sctp_add_err() local 534 fp = dest; in sctp_add_err() 537 mss = fp->sf_pmss; in sctp_add_err() 580 sctp_faddr_t *fp; in sctp_process_err() local [all …]
|
/illumos-gate/usr/src/lib/libmvec/common/vis/ |
H A D | __vatanf.S | 269 stx %i1,[%fp+tmp_px] 295 ldx [%fp+tmp_px],%i3 582 add %fp,tmp0,%g1 1451 stx %l5,[%fp+tmp_px] 1466 stx %l5,[%fp+tmp_px] 1481 stx %l4,[%fp+tmp_px] 1496 stx %l4,[%fp+tmp_px] 1511 stx %l3,[%fp+tmp_px] 1526 stx %l3,[%fp+tmp_px] 1541 stx %i0,[%fp+tmp_px] [all …]
|
/illumos-gate/usr/src/common/ctf/ |
H A D | ctf_impl.h | 241 #define LCTF_INDEX_TO_TYPEPTR(fp, i) \ argument 242 ((ctf_type_t *)((uintptr_t)(fp)->ctf_buf + (fp)->ctf_txlate[(i)])) 244 #define LCTF_INFO_KIND(fp, info) ((fp)->ctf_fileops->ctfo_get_kind(info)) argument 245 #define LCTF_INFO_ROOT(fp, info) ((fp)->ctf_fileops->ctfo_get_root(info)) argument 246 #define LCTF_INFO_VLEN(fp, info) ((fp)->ctf_fileops->ctfo_get_vlen(info)) argument
|
/illumos-gate/usr/src/tools/protocmp/ |
H A D | depend.c | 145 FILE *fp; in find_dependencies() local 150 fp = fopen(dependfile, "r"); in find_dependencies() 151 if (fp == NULL) { in find_dependencies() 159 fp = fopen(dependfile, "r"); in find_dependencies() 160 if (fp == NULL) in find_dependencies() 163 while (fgets(buf, BUFSIZ, fp) != NULL) { in find_dependencies() 212 (void) fclose(fp); in find_dependencies()
|
/illumos-gate/usr/src/cmd/ypcmd/ |
H A D | stdhosts.c | 76 FILE *fp; in main() local 103 fp = fopen(argv[optind], "r"); in main() 104 if (fp == NULL) { in main() 110 fp = stdin; in main() 113 (fgetsp = fgets(line, sizeof (line), fp)) != NULL) { in main() 128 fp)) != NULL) { in main() 153 fp)) != NULL) in main()
|