Searched defs:fp (Results 576 - 600 of 1010) sorted by relevance

<<21222324252627282930>>

/illumos-gate/usr/src/cmd/fs.d/
H A Dfslib.c393 int fp = open("/", O_RDONLY); local
402 if (fp == -1) {
406 if (ioctl(fp, _FIOGETMAXPHYS, maxphys) == -1) {
408 (void) close(fp);
412 (void) close(fp);
/illumos-gate/usr/src/cmd/saf/
H A Dpmadm.c420 FILE *fp; /* scratch file pointer */ local
428 fp = fopen(SACTAB, "r");
429 if (fp == NULL) {
433 if (tag && !find_pm(fp, tag)) {
438 if (type && !(tp = find_type(fp, type))) {
443 (void) fclose(fp);
475 fp = fopen(fname, "r");
476 if (fp == NULL) {
481 if (find_svc(fp, tp->t_tag, svctag)) {
491 (void) fclose(fp);
554 FILE *fp; /* scratch file pointer */ local
642 FILE *fp; /* scratch file pointer */ local
784 FILE *fp; /* scratch file pointer */ local
944 FILE *fp; /* scratch file pointer */ local
1043 find_svc(FILE *fp, char *tag, char *svctag) argument
[all...]
H A Dsac.c138 FILE *fp; /* scratch file pointer */ local
140 fp = fopen("/dev/console", "w");
141 if (fp)
142 (void) fprintf(fp, "SAC: Usage: sac -t sanity_interval\n");
/illumos-gate/usr/src/cmd/sendmail/src/
H A Dmci.c541 ** fp -- output file pointer
584 mci_dump(fp, mci, logit)
585 SM_FILE_T *fp;
653 (void) sm_io_fprintf(fp, SM_TIME_DEFAULT, "%s\n", buf);
659 ** fp -- output file pointer
668 mci_dump_all(fp, logit)
669 SM_FILE_T *fp;
678 mci_dump(fp, MciCache[i], logit);
840 SM_FILE_T *fp; local
870 fp
1293 SM_FILE_T *fp; local
[all...]
H A Drecipient.c1426 SM_FILE_T *volatile fp = NULL; local
1663 else if ((fp = sm_io_open(SmFtStdio, SM_TIME_DEFAULT, fname,
1670 else if (filechanged(fname, sm_io_getinfo(fp,SM_IO_WHAT_FD, NULL), &st))
1714 if (fp == NULL)
1717 if (fstat(sm_io_getinfo(fp, SM_IO_WHAT_FD, NULL), &st) < 0)
1721 (void) sm_io_close(fp, SM_TIME_DEFAULT);
1726 safechown = chownsafe(sm_io_getinfo(fp, SM_IO_WHAT_FD, NULL), safedir);
1789 (void) sm_io_close(fp, SM_TIME_DEFAULT);
1829 while (sm_io_fgets(fp, SM_TIME_DEFAULT, buf, sizeof(buf)) != NULL &&
1882 if (sm_io_error(fp)
[all...]
/illumos-gate/usr/src/cmd/avs/dscfg/
H A Ddscfg.c163 FILE *fp; local
172 if ((fp = fopen(buff, "r")) == NULL) {
183 while (((buff = fgets(inbuf, (sizeof (inbuf) - 1), fp)) != NULL)) {
193 (void) fclose(fp);
197 (void) fclose(fp);
204 FILE *fp; local
211 if ((fp = fopen(input_file, "r")) == NULL) {
219 while (((buff = fgets(inbuf, (sizeof (inbuf) - 1), fp)) != NULL)) {
244 (void) fclose(fp);
320 FILE *fp; local
[all...]
/illumos-gate/usr/src/cmd/bdiff/
H A Dbdiff.c389 addgen(char **lpp, size_t *bufsizp, FILE *fp) argument
396 saverest(lpp, bufsizp, fp);
410 delgen(char **lpp, size_t *bufsizp, FILE *fp) argument
418 saverest(lpp, bufsizp, fp);
/illumos-gate/usr/src/cmd/bnu/
H A Dcallers.c189 char *fp, *tp; local
205 for(fp=phone; *tp = *fp++; tp++)
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dutil.c513 FILE *fp; local
516 fp = fopen(path, "r");
517 if (fp == NULL)
530 while (fgets(ifline, sizeof (ifline), fp) != NULL) {
535 (void) fclose(fp);
540 (void) fclose(fp);
547 (void) fclose(fp);
568 (void) fclose(fp);
574 (void) fclose(fp);
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dnfslog_config.c235 FILE *fp; local
245 fp = fopen(NFSL_CONFIG_FILE_PATH, "r");
246 if (fp == NULL) {
269 if (fcntl(fileno(fp), F_SETLKW, &flock) == -1) {
286 while (gataline(fp, NFSL_CONFIG_FILE_PATH, linebuf, sizeof (linebuf))) {
332 if (error = fstat(fileno(fp), &st)) {
348 (void) fclose(fp);
945 gataline(FILE *fp, char *path, char *line, int linesz) { argument
953 if (fgets(p, linesz - (p-line), fp) == NULL) {
974 (void) ungetc(*p, fp);
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/nfslog/
H A Dnfslogd.h81 FILE *fp; /* file pointer */ member in struct:nfsl_log_file
/illumos-gate/usr/src/cmd/fs.d/udfs/fsck/
H A Dutilities.c167 struct file_entry *fp; local
181 fp = (struct file_entry *)bp->b_un.b_buf;
182 err = verifytag(&fp->fe_tag, block, &fp->fe_tag, UD_FILE_ENTRY);
185 "tag=%d\n"), tagerrs[err], fp->fe_tag.tag_id);
195 struct file_entry *fp; local
198 fp = (struct file_entry *)bp->b_un.b_buf;
199 maketag(&fp->fe_tag, &fp->fe_tag);
232 getaline(FILE *fp, cha argument
[all...]
/illumos-gate/usr/src/cmd/genmsg/
H A Dutil.c139 FILE *fp; local
154 if ((fp = fopen(file, mode)) == NULL) {
168 (void) fprintf(fp, "\n$quote %s\n\n", pquote);
184 (void) fprintf(fp, "\n");
185 print_prefix(fp, "$ ", TRUE,
187 (void) fprintf(fp, "$set\t%d\n",
190 (void) fprintf(fp, "\n$set\t%d\n",
195 print_prefix(fp, "$ ", TRUE,
198 (void) fprintf(fp, "\n");
210 (void) fprintf(fp,
389 print_prefix(FILE *fp, char *prefix, int rm_blank, char *str) argument
412 FILE *fp; local
456 FILE *fp; local
555 FILE *fp; local
[all...]
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dipfcomp.c75 FILE *fp; local
91 fp = cfile;
93 fprintf(fp, "/*\n");
94 fprintf(fp, "* Copyright (C) 1993-2000 by Darren Reed.\n");
95 fprintf(fp, "*\n");
96 fprintf(fp, "* Redistribution and use in source and binary forms are permitted\n");
97 fprintf(fp, "* provided that this notice is preserved and due credit is given\n");
98 fprintf(fp, "* to the original author and the contributors.\n");
99 fprintf(fp, "*/\n\n");
101 fprintf(fp, "#includ
452 static FILE *fp = NULL; local
[all...]
/illumos-gate/usr/src/cmd/latencytop/common/
H A Dtable.c622 FILE *fp; local
623 fp = fopen(g_config.lt_cfg_config_name, "r");
625 if (NULL == fp) {
631 (void) fseek(fp, 0, SEEK_END);
632 config_loaded_len = (int)ftell(fp);
634 (void) fseek(fp, 0, SEEK_SET);
638 fread(config_loaded, config_loaded_len, 1, fp) == 0) {
641 (void) fclose(fp);
646 (void) fclose(fp);
801 lt_table_append_trans(FILE *fp) argument
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dpkgops.c243 FILE *fp; local
254 fp = pkgOpenInGzOnlyFile(a_rootPath);
255 if (fp == (FILE *)NULL) {
263 in_gz_only = pkgIsPkgInGzOnlyFP(fp, a_pkgInst);
267 (void) fclose(fp);
/illumos-gate/usr/src/cmd/svr4pkg/pkgremove/
H A Dmain.c154 FILE *fp; local
626 if ((fp = fopen(path, "r")) == NULL) {
659 while (value = fpkgparam(fp, param)) {
703 (void) fclose(fp);
1123 FILE *fp; local
1159 if ((fp = fdopen(td, "w")) == NULL) {
1210 (void) fprintf(fp, "%s\n", ept->path);
1281 (void) fclose(fp);
/illumos-gate/usr/src/cmd/tic/
H A Dtic_parse.c527 FILE *fp; local
570 fp = fopen(filename, "w");
571 if (fp == NULL) {
588 if (write_object(fp, Booleans, Numbers, Strings) < 0) {
592 fclose(fp);
656 * write_object(fp, Booleans, Numbers, Strings)
669 write_object(fp, Booleans, Numbers, Strings)
670 FILE *fp;
709 if (fwrite(&header, sizeof (header), 1, fp) != 1 ||
710 fwrite(namelist, sizeof (char), namelen, fp) !
[all...]
/illumos-gate/usr/src/cmd/tsol/tnchkdb/
H A Dtnchkdb.c273 FILE *fp; local
285 if ((fp = fopen(file, "r")) == NULL) {
295 while (fgets(line, sizeof (line), fp) != NULL) {
424 (void) fclose(fp);
434 FILE *fp; local
443 if ((fp = fopen(file, "r")) == NULL) {
456 while (fgets(line, sizeof (line), fp) != NULL) {
497 (void) fclose(fp);
576 FILE *fp; local
584 if ((fp
[all...]
/illumos-gate/usr/src/uts/common/fs/namefs/
H A Dnamevfs.c310 struct file *fp; local
333 if ((fp = getf(namefdp.fd)) == NULL)
368 filevp = fp->f_vnode;
444 mutex_enter(&fp->f_tlock);
445 fp->f_count++;
446 mutex_exit(&fp->f_tlock);
449 nodep->nm_filep = fp;
559 struct file *fp = NULL; local
585 fp = nodep->nm_filep;
603 if (fp !
[all...]
/illumos-gate/usr/src/tools/findunref/
H A Dfindunref.c197 FILE *fp = NULL; local
208 fp = popen(hgcmd, "r");
209 if (fp == NULL)
212 while (fgets(path, sizeof (path), fp) != NULL) {
221 (void) pclose(fp);
226 if (fp != NULL)
227 (void) pclose(fp);
239 FILE *fp = NULL; local
250 fp = popen(gitcmd, "r");
251 if (fp
397 FILE *fp; local
[all...]
/illumos-gate/usr/src/tools/protocmp/
H A Dprotocmp.c147 FILE *fp; local
151 if ((fp = fopen(file, "r")) == NULL) {
155 while (count = fread(buff, sizeof (char), BUF_SIZE, fp))
157 (void) fclose(fp);
317 print_elem(FILE *fp, elem *e) argument
364 (void) fprintf(fp, "%c %-30s %-20s %4s %-5s %-5s %6d %2s %2s %2s ",
374 (void) fputs(" proto", fp);
377 (void) fputc(' ', fp);
378 (void) fputs(l->pkg_name, fp);
380 (void) fputc('\n', fp);
[all...]
/illumos-gate/usr/src/uts/common/inet/sctp/
H A Dsctp_hash.c239 sctp_faddr_t *fp; local
259 for (fp = sctp->sctp_faddrs; fp != NULL; fp = fp->sf_next) {
262 &fp->sf_faddr)) {
859 sctp_faddr_t *fp; local
871 for (fp = sctp->sctp_faddrs; fp != NULL; fp
[all...]
H A Dsctp_opt_data.c67 sctp_faddr_t *fp; local
83 fp = sctp->sctp_primary;
85 if (fp->sf_isv4) {
89 IN6_V4MAPPED_TO_INADDR(&fp->sf_faddr, &sin->sin_addr);
95 sin6->sin6_addr = fp->sf_faddr;
98 sp->spinfo_state = fp->sf_state == SCTP_FADDRS_ALIVE ? SCTP_ACTIVE :
100 sp->spinfo_cwnd = fp->sf_cwnd;
101 sp->spinfo_srtt = fp->sf_srtt;
102 sp->spinfo_rto = fp->sf_rto;
103 sp->spinfo_mtu += fp
158 sctp_faddr_t *fp; local
263 sctp_faddr_t *fp; local
287 sctp_faddr_t *fp; local
434 sctp_faddr_t *fp; local
455 sctp_faddr_t *fp, *fp2; local
584 sctp_faddr_t *fp; local
901 sctp_faddr_t *fp; local
1329 sctp_faddr_t *fp; local
1466 sctp_faddr_t *fp = sctp->sctp_faddrs; local
[all...]
/illumos-gate/usr/src/lib/smbsrv/libsmbns/common/
H A Dsmbns_netbios_cache.c633 smb_netbios_cache_dump(FILE *fp) argument
642 (void) fprintf(fp, "\n%-22s %-16s %-16s %s\n",
644 (void) fprintf(fp, "%s%s\n",
654 smb_netbios_name_dump(fp, name);
663 smb_netbios_name_dump(FILE *fp, struct name_entry *entry) argument
673 (void) fprintf(fp, "%s %-6s (0x%04x) ", buf, type, entry->attributes);
678 (void) fprintf(fp, "%-16s %d\n",
681 (void) fprintf(fp, "%-28s (0x%04x) %-16s %d\n",

Completed in 117 milliseconds

<<21222324252627282930>>