/illumos-gate/usr/src/boot/lib/libc/string/ |
H A D | swab.c | 46 char *fp, *tp; local 51 fp = (char *)from; 53 #define STEP temp = *fp++,*tp++ = *fp++,*tp++ = temp
|
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | metagetroot.c | 46 FILE *fp; local 49 if ((fp = open_mnttab()) == NULL) { 54 while (getmntent(fp, &mp) == 0) {
|
/illumos-gate/usr/src/lib/lvm/libsvm/common/ |
H A D | check_svm.c | 52 valid_bootlist(FILE *fp, int line_len) argument 65 while (fgets(line, line_len, fp) != NULL) { 96 FILE *fp; local 102 if ((fp = fopen(tmppath, "r")) == NULL) { 107 rval = valid_bootlist(fp, MDDB_BOOTLIST_MAX_LEN); 115 (void) fclose(fp); 120 if ((fp = fopen(tmppath, "r")) == NULL) { 125 rval = valid_bootlist(fp, MDDB_BOOTLIST_MAX_LEN); 130 (void) fclose(fp);
|
H A D | getdrvname.c | 78 FILE *fp; local 87 if ((fp = fopen(fname, "r")) == NULL) { 91 while ((fgets(line, sizeof (line), fp) != NULL) && 111 (void) fclose(fp);
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_file.c | 69 char fp[MAXNAMELEN]; local 77 (void) snprintf(fp, MAXNAMELEN, TOPO_DEFAULT_FILE, name, 80 (void) snprintf(fp, MAXNAMELEN, TOPO_COMMON_FILE, scheme); 82 if ((tfp->tf_filenm = topo_search_path(mod, mod->tm_rootdir, fp))
|
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | acl_print.c | 59 fprint_sid(FILE *fp, i_ntsid_t *sid) argument 64 fprintf(fp, "(null)\n"); 69 fprintf(fp, "(error)\n"); 71 fprintf(fp, "%s\n", sidbuf); 75 fprint_ntace(FILE *fp, i_ntace_t *ace) argument 78 fprintf(fp, " (null)\n"); 83 fprintf(fp, " ace_type=%d ace_flags=0x%x ace_rights=0x%x\n", 87 fprintf(fp, " ace_sid: "); 88 fprint_sid(fp, ace->ace_v2.ace_sid); 92 fprint_ntacl(FILE *fp, i_ntacl_ argument 108 smbfs_acl_print_sd(FILE *fp, i_ntsd_t *sd) argument [all...] |
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | nfs_nfssec.c | 124 FILE *fp; local 129 if ((fp = fopen(NFSSEC_CONF, "r")) == NULL) { 137 seclist = fileutil_get_first_column_data(fp, num_elements, &err); 138 (void) fclose(fp);
|
/illumos-gate/usr/src/lib/libgen/common/ |
H A D | bgets.c | 33 * Read no more than <count> characters into <buf> from stream <fp>, 77 bgets(char *buf, size_t count, FILE *fp, char *stopstr) argument 96 flockfile(fp); 103 if ((c = getc(fp)) == EOF) { 115 funlockfile(fp);
|
H A D | p2open.c | 51 p2open(const char *cmd, FILE *fp[2]) argument 58 fp[0] = fdopen(fds[0], "w"); 59 fp[1] = fdopen(fds[1], "r"); 64 p2close(FILE *fp[2]) argument 66 return (__p2close(NULL, fp, 0));
|
/illumos-gate/usr/src/lib/libunistat/common/ |
H A D | spcs_log.c | 57 FILE *fp = NULL; local 74 if ((fp = fopen(sessionlog, "a")) == (FILE *)NULL) 81 if (fcntl(fileno(fp), F_SETLKW, &lk) < 0) 85 fprintf(fp, "%s %s: ", spcstime(), product); 86 (void) vfprintf(fp, format, ap); 87 fputs("\n", fp); 89 spcs_s_report(*status, fp); 91 fflush(fp); 95 (void) fcntl(fileno(fp), F_SETLKW, &lk); 98 if (fp) [all...] |
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | scr_dump.c | 55 FILE *fp; local 63 if ((fp = fopen(f, "wF")) != (FILE *) 0) { 64 code = putwin(curscr, fp); 65 (void) fclose(fp); 77 FILE *fp; local 80 if ((fp = fopen(f, "rF")) == (FILE *) 0) 83 new = getwin(fp); 84 (void) fclose(fp);
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | scr_dump.c | 59 FILE *fp; local 63 if ((fp = fopen(f, "wF")) != NULL) { 64 code = putwin(curscr, fp); 65 (void) fclose(fp); 75 FILE *fp; local 78 if ((fp = fopen(f, "rF")) == NULL) 81 new = getwin(fp); 82 (void) fclose(fp);
|
/illumos-gate/usr/src/lib/libnsl/rpc/ |
H A D | xdr_float.c | 60 xdr_float(XDR *xdrs, float *fp) argument 65 return (XDR_PUTINT32(xdrs, (int *)fp)); 68 return (XDR_GETINT32(xdrs, (int *)fp)); 104 xdr_quadruple(XDR *xdrs, long double *fp) argument 115 return (XDR_PUTBYTES(xdrs, (char *)fp, sizeof (long double))); 117 return (XDR_GETBYTES(xdrs, (char *)fp, sizeof (long double))); 130 xdr_float(XDR *xdrs, float *fp) argument 144 f = *fp; 205 *fp = f; 311 xdr_quadruple(XDR *xdrs, long double *fp) argument [all...] |
/illumos-gate/usr/src/lib/libnvpair/ |
H A D | nvpair_json.c | 23 #define FPRINTF(fp, ...) \ 25 if (fprintf(fp, __VA_ARGS__) < 0) \ 46 nvlist_print_json_string(FILE *fp, const char *input) argument 54 FPRINTF(fp, "\""); 58 FPRINTF(fp, "\\\""); 61 FPRINTF(fp, "\\n"); 64 FPRINTF(fp, "\\r"); 67 FPRINTF(fp, "\\\\"); 70 FPRINTF(fp, "\\f"); 73 FPRINTF(fp, "\\ 117 nvlist_print_json(FILE *fp, nvlist_t *nvl) argument [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | irs_p.h | 32 FILE * fp; member in struct:lcl_sv
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | getusershell.c | 69 FILE *fp; local 78 if ((fp = fopen(SHELLS, "r")) == (FILE *)0) 80 if (fstat(fileno(fp), &statb) == -1) { 81 (void)fclose(fp); 85 (void)fclose(fp); 90 (void)fclose(fp); 97 while (fgets(cp, MAXPATHLEN + 1, fp) != NULL) { 108 (void)fclose(fp);
|
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/ |
H A D | findiop.c | 58 FILE *fp; local 88 FILE *fp; local 106 for(fp = _iob, iov = iobglue; fp < &_iob[NSTATIC]; /* void */) 107 *iov++ = fp++; 116 FILE *fp; local 130 FILE *fp; local 136 for(fp = _iob; fp < &_iob[NSTATIC]; fp [all...] |
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | getpw.c | 52 FILE *fp; local 56 fp = fopen(PASSWD, "rF"); 59 if ((pwf = fp) == NULL) { 63 fp = NULL; 66 if (fp != NULL) /* someone beat us to it */ 67 (void) fclose(fp);
|
H A D | getusershell.c | 124 FILE *fp; local 133 if ((fp = fopen(SHELLS, "rF")) == (FILE *)0) 147 if ((fstat(fileno(fp), &statb) == -1) || (statb.st_size > LONG_MAX) || 149 (void) fclose(fp); 154 (void) fclose(fp); 161 while (fgets(cp, MAXPATHLEN + 1, fp) != NULL) { 172 (void) fclose(fp);
|
H A D | ttyslot.c | 62 FILE *fp; local 79 if ((fp = fopen(UTMPX_FILE, "rF")) != NULL) { 80 while ((fread(&ubuf, sizeof (ubuf), 1, fp)) == 1) { 93 (void) fclose(fp);
|
/illumos-gate/usr/src/lib/libc/port/locale/ |
H A D | fgetws.c | 48 _fgetws_impl(wchar_t *_RESTRICT_KYWD ws, int n, FILE *_RESTRICT_KYWD fp, argument 55 FLOCKFILE(lk, fp); 56 if (orient && GET_NO_MODE(fp)) 57 _setorientation(fp, _WC_MODE); 67 wc = _fgetwc_unlocked(fp); 92 fgetws(wchar_t *_RESTRICT_KYWD ws, int n, FILE *_RESTRICT_KYWD fp) argument 94 return (_fgetws_impl(ws, n, fp, 0)); 98 __fgetws_xpg5(wchar_t *ws, int n, FILE *fp) argument 100 return (_fgetws_impl(ws, n, fp, 1));
|
H A D | fputwc.c | 63 __fputwc_impl(wchar_t wc, FILE *fp, int orient) argument 86 fp->_flag |= _IOERR; 92 FLOCKFILE(mx, fp); 97 if (orient && GET_NO_MODE(fp)) { 98 _setorientation(fp, _WC_MODE); 101 if (PUTC((unsigned char)buf[i], fp) == EOF) { 111 fputwc(wchar_t wc, FILE *fp) argument 113 return (__fputwc_impl(wc, fp, 0)); 121 putwc(wchar_t wc, FILE *fp) argument 123 return (__fputwc_impl(wc, fp, 127 __fputwc_xpg5(wint_t wc, FILE *fp) argument 134 __putwc_xpg5(wint_t wc, FILE *fp) argument [all...] |
H A D | fputws.c | 39 _fputws_impl(const wchar_t *_RESTRICT_KYWD ws, FILE *_RESTRICT_KYWD fp, argument 57 FLOCKFILE(lk, fp); 58 if (orient && GET_NO_MODE(fp)) 59 _setorientation(fp, _WC_MODE); 68 fp->_flag |= _IOERR; 78 if (fputs(buf, fp) < nbytes) { 89 fputws(const wchar_t *_RESTRICT_KYWD ws, FILE *_RESTRICT_KYWD fp) argument 91 return (_fputws_impl(ws, fp, 0)); 95 __fputws_xpg5(const wchar_t *ws, FILE *fp) argument 97 return (_fputws_impl(ws, fp, [all...] |
H A D | getdate.c | 68 FILE *fp; local 90 if ((fp = fopen(datemsk, "r")) == NULL) { 111 while ((line = fgets(buf, sizeof (buf), fp)) != NULL) { 121 (void) fclose(fp); 133 if (errno != 0 || ferror(fp)) { 138 (void) fclose(fp); 141 if (feof(fp) || (rp != NULL && *rp != '\0')) { 145 (void) fclose(fp);
|
/illumos-gate/usr/src/lib/libcmd/common/ |
H A D | head.c | 75 register Sfio_t* fp; local 129 fp = sfstdin; 130 sfset(fp, SF_SHARE, 1); 132 else if (!(fp = sfopen(NiL, cp, "r"))) 141 sfmove(fp, NiL, skip, delim); 142 if (sfmove(fp, sfstdout, keep, delim) < 0 && errno != EPIPE) 144 if (fp != sfstdin) 145 sfclose(fp);
|