Searched defs:buf (Results 51 - 75 of 3356) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dnet_write.c31 * krb5_net_write() writes "len" bytes from "buf" to the file
41 krb5_net_write(krb5_context context, int fd, register const char *buf, int len) argument
46 cc = SOCKET_WRITE((SOCKET)fd, buf, wrlen);
57 buf += cc;
/illumos-gate/usr/src/lib/libcurses/screen/
H A Dvwscanw.c66 char *buf; local
72 buf = _strcode2byte(code, NULL, -1);
73 n = _vsscanf(buf, fmt, ap);
/illumos-gate/usr/src/lib/libumem/common/
H A Dumem_agent_support.c37 __umem_agent_free_bp(umem_cache_t *cp, void *buf) argument
41 _umem_cache_free(cp, buf);
/illumos-gate/usr/src/lib/libnsl/nsl/
H A Dt_strerror.c85 static char buf[BUFSIZ]; local
90 (void) snprintf(buf, sizeof (buf), "%d: %s", errnum,
92 return (buf);
110 (void) snprintf(buf, sizeof (buf), "%d: %s", errnum,
112 return (buf);
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgai_strerror.c52 static char buf[EAI_BUFSIZE]; local
60 char *buf;
81 buf = pthread_getspecific(key);
82 if (buf == NULL) {
83 buf = malloc(EAI_BUFSIZE);
84 if (buf == NULL)
86 if (pthread_setspecific(key, buf) != 0) {
87 free(buf);
93 * XXX This really should be snprintf(buf, EAI_BUFSIZE, ...).
96 sprintf(buf, "
[all...]
/illumos-gate/usr/src/lib/libbc/libc/gen/common/
H A Dmktemp.c56 struct stat buf; local
66 while (stat(as, &buf) == 0) {
73 if (stat(as, &buf) == 0)
/illumos-gate/usr/src/lib/libbc/libc/stdio/common/
H A Dsetbuffer.c46 setbuffer(FILE *iop, char *buf, int size) argument
53 if ((iop->_base = (unsigned char *)buf) == NULL) {
74 char *buf; local
78 buf = (char *)malloc(128);
79 if (buf != NULL) {
80 setbuffer(iop, buf, 128);
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetloadavg.c42 extern int __getloadavg(int *buf, int nelem);
44 int i, buf[LOADAVG_NSTATS]; local
49 if ((nelem = __getloadavg(buf, nelem)) == -1)
53 loadavg[i] = (double)buf[i] / FSCALE;
/illumos-gate/usr/src/lib/libc/port/locale/
H A Dwctob.c42 char buf[MB_LEN_MAX]; local
44 if (c == WEOF || wcrtomb_l(buf, c, &mbs, loc) != 1)
46 return ((unsigned char)*buf);
/illumos-gate/usr/src/lib/libc/port/stdio/
H A Dgets.c46 gets(char *buf) argument
48 char *ptr = buf;
80 } else if (ptr == buf) { /* never read anything */
103 return (buf);
/illumos-gate/usr/src/cmd/oamuser/lib/
H A Dvprojid.c40 valid_projid(projid_t projid, struct project *pptr, void *buf, size_t len) argument
51 if (t_pptr = getprojbyid(projid, pptr, buf, len))
/illumos-gate/usr/src/cmd/mailx/
H A Dlpaths.c57 static char buf[PATHSIZE]; local
59 snprintf(buf, sizeof (buf), "%s/%s", LIBPATH, file);
60 return (buf);
69 static char buf[PATHSIZE]; local
74 snprintf(buf, sizeof (buf), "%s/%s/LC_MESSAGES/%s",
76 if (access(buf, 0) == 0)
77 return (buf);
79 snprintf(buf, sizeo
[all...]
/illumos-gate/usr/src/cmd/mdb/common/kmdb/kctl/
H A Dkctl_err.c53 char buf[128]; local
60 (void) vsnprintf(buf, sizeof (buf), format, ap);
61 BOP_PUTSARG(kctl.kctl_boot_ops, "%s\n", buf);
/illumos-gate/usr/src/cmd/dumpadm/
H A Dswap.c95 char buf[MAXPATHLEN]; local
97 (void) snprintf(buf, sizeof (buf), "/dev/%s",
99 (void) strcpy(swt->swt_ent[n].ste_path, buf);
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dio.c33 io_abort(const char *buf) argument
35 (void) fprintf(stderr, "%s\n", buf);
40 io_die(const char *buf) argument
42 (void) fprintf(stderr, "%s\n", buf);
47 io_err(const char *buf) argument
49 (void) fprintf(stderr, "%s\n", buf);
53 io_out(const char *buf) argument
55 (void) printf("%s\n", buf);
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_nv.c41 fmd_nv_free(nv_alloc_t *nva, void *buf, size_t size) argument
43 fmd_free(buf, size);
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/
H A Dio.c37 io_abort(const char *buf) argument
39 fmd_hdl_abort(Hdl, "%s\n", buf);
43 io_die(const char *buf) argument
45 fmd_hdl_abort(Hdl, "%s\n", buf);
49 io_err(const char *buf) argument
51 fmd_hdl_abort(Hdl, "%s\n", buf);
55 io_out(const char *buf) argument
57 fmd_hdl_debug(Hdl, "%s\n", buf);
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dt-float.c28 char buf[128]; local
39 sm_snprintf(buf, sizeof(buf), "%d %.3f %d", 0, d, 1);
41 if (!SM_TEST(strcmp(buf, r) == 0))
43 "got %s instead\n", buf);
46 sm_snprintf(buf, sizeof(buf), "%.3f", d);
48 if (!SM_TEST(strcmp(buf, r) == 0))
50 "got %s instead\n", buf);
52 sm_io_sscanf(buf, "
[all...]
H A Dt-scanf.c27 char buf[128]; local
39 sm_snprintf(buf, sizeof(buf), "%d", d);
41 if (!SM_TEST(strcmp(buf, r) == 0))
43 "got %s instead\n", buf);
45 i = sm_io_sscanf(buf, "%d", &h);
50 sm_snprintf(buf, sizeof(buf), "%d\n", d);
52 if (!SM_TEST(strcmp(buf, r) == 0))
54 "got %s instead\n", buf);
[all...]
H A Dt-smstdio.c26 char buf[128]; local
58 n = sm_io_read(fp, SM_TIME_DEFAULT, buf, sizeof(buf));
61 buf[n] = '\0';
62 SM_TEST(strcmp(buf, testmsg) == 0);
H A Dt-string.c26 char buf[4096]; local
38 sm_snprintf(buf, 4096, "+%*x+", 2000, 0xCAFE);
39 SM_TEST(strcmp(s, buf) == 0);
/illumos-gate/usr/src/cmd/sgs/libconv/common/
H A Darch.c42 char buf[BUFSIZ]; local
48 if (sysinfo(SI_ISALIST, buf, BUFSIZ) == -1)
51 if ((strstr(buf, MSG_ORIG(MSG_ARCH_SPARCV9)) != NULL) ||
52 (strstr(buf, MSG_ORIG(MSG_ARCH_AMD64)) != NULL))
H A Ddwarf_ehe.c56 char *buf = dwarf_ehe_buf->buf; local
59 (void) strncpy(buf, MSG_ORIG(MSG_GBL_OSQBRKT), FLAGSZ);
62 ret = strlcat(buf, MSG_ORIG(MSG_DWEHE_OMIT), FLAGSZ);
64 ret = strlcat(buf, MSG_ORIG(MSG_DWEHE_ABSPTR), FLAGSZ);
70 (void) strlcat(buf, MSG_ORIG(MSG_GBL_CSQBRKT), FLAGSZ);
71 return (buf);
76 ret = strlcat(buf, MSG_ORIG(MSG_DWEHE_ULEB128), FLAGSZ);
79 ret = strlcat(buf, MSG_ORIG(MSG_DWEHE_UDATA2), FLAGSZ);
82 ret = strlcat(buf, MSG_ORI
[all...]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dprintpacket6.c10 u_char *buf, p; local
15 buf = (u_char *)ip;
16 tcp = (tcphdr_t *)(buf + 40);
17 p = buf[6];
18 flow = ntohl(*(u_32_t *)buf);
20 plen = ntohs(*((u_short *)buf +2));
21 addrs = (u_short *)buf + 4;
23 printf("ip6/%d %d %#x %d", buf[0] & 0xf, plen, flow, p);
/illumos-gate/usr/src/cmd/isalist/
H A Disalist.c41 char *buf = buffer; local
45 ret = sysinfo(SI_ISALIST, buf, bufsize);
52 buf = malloc(bufsize = ret);
53 if (buf == NULL) {
58 ret = sysinfo(SI_ISALIST, buf, bufsize);
64 (void) printf("%s\n", buf);

Completed in 113 milliseconds

1234567891011>>