/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | gcvt.c | 42 gcvt(double number, int ndigits, char *buf) argument 44 return (gconvert(number, ndigits, 0, buf));
|
/osnet-11/usr/src/lib/libresolv2/common/irs/ |
H A D | gai_strerror.c | 52 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...] |
/osnet-11/usr/src/lib/libnsl/nsl/ |
H A D | t_strerror.c | 81 static char buf[BUFSIZ]; local 86 (void) snprintf(buf, sizeof (buf), "%d: %s", errnum, 88 return ((const char *)buf); 106 (void) snprintf(buf, sizeof (buf), "%d: %s", errnum, 108 return ((const char *)buf);
|
/osnet-11/usr/src/lib/libparted/common/libparted/fs/hfs/ |
H A D | file_plus.h | 36 hfsplus_file_read(HfsPPrivateFile* file, void *buf, 40 hfsplus_file_write(HfsPPrivateFile* file, void *buf, 46 hfsplus_file_read_sector (HfsPPrivateFile* file, void *buf, PedSector sector) argument 48 return hfsplus_file_read(file, buf, sector, 1); 54 hfsplus_file_write_sector (HfsPPrivateFile* file, void *buf, PedSector sector) argument 56 return hfsplus_file_write(file, buf, sector, 1);
|
/osnet-11/usr/src/lib/libcurses/screen/ |
H A D | vwscanw.c | 66 char *buf; local 72 buf = _strcode2byte(code, NULL, -1); 73 n = _vsscanf(buf, fmt, ap);
|
/osnet-11/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | scheme.c | 34 char *buf, *str; local 42 if ((buf = malloc(strlen(str) + 1)) != NULL) 43 (void) strcpy(buf, str); 46 return (buf);
|
/osnet-11/usr/src/lib/gss_mechs/mech_dh/backend/crypto/ |
H A D | md5.h | 52 UINT4 buf[4]; /* scratch buffer */ member in struct:__anon1004
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | net_read.c | 33 * "buf", until either 1) "len" bytes have been read or 2) cannot 42 krb5_net_read(krb5_context context, int fd, register char *buf, register int len) argument 47 cc = SOCKET_READ((SOCKET)fd, buf, len); 60 buf += cc;
|
/osnet-11/usr/src/grub/grub2/grub-core/lib/i386/ |
H A D | reboot.c | 32 void *buf; local 44 buf = get_virtual_current_address (ch); 45 grub_memcpy (buf, grub_reboot_start, grub_reboot_end - grub_reboot_start);
|
/osnet-11/usr/src/cmd/sendmail/libsm/ |
H A D | t-float.c | 28 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 D | t-scanf.c | 27 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 D | t-smstdio.c | 26 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 D | t-string.c | 26 char buf[4096]; local 38 sm_snprintf(buf, 4096, "+%*x+", 2000, 0xCAFE); 39 SM_TEST(strcmp(s, buf) == 0);
|
/osnet-11/usr/src/lib/libast/common/comp/ |
H A D | tmpnam.c | 48 static char buf[L_tmpnam]; local 50 return pathtemp(s ? s : buf, L_tmpnam, NiL, "tn", NiL);
|
/osnet-11/usr/src/lib/libast/common/path/ |
H A D | pathnative.c | 27 * convert path to native fs representation in <buf,siz> 29 * if return length >= siz then buf is indeterminate, but another call 31 * if buf==0 then required size is returned 41 pathnative(const char* path, char* buf, size_t siz) argument 43 return uwin_path(path, buf, siz); 53 pathnative(const char* path, char* buf, size_t siz) argument 57 if (!buf || siz < PATH_MAX) 62 if ((n = strlen(tmp)) < siz && buf) 63 memcpy(buf, tmp, n + 1); 66 cygwin_conv_to_win32_path(path, buf); 75 pathnative(const char* path, char* buf, size_t siz) argument 98 pathnative(const char* path, char* buf, size_t siz) argument 111 pathnative(const char* path, char* buf, size_t siz) argument [all...] |
H A D | pathtmp.c | 35 pathtmp(char* buf, const char* dir, const char* pfx, int* fdp) argument 39 len = !buf ? 0 : !dir ? L_tmpnam : (strlen(dir) + 14); 40 return pathtemp(buf, len, dir, pfx, fdp);
|
/osnet-11/usr/src/lib/libast/common/regex/ |
H A D | regfatal.c | 35 char buf[128]; local 37 regerror(code, p, buf, sizeof(buf)); 40 error(level, "regular expression: %s: %s", pat, buf); 42 error(level, "regular expression: %s", buf);
|
/osnet-11/usr/src/lib/libast/common/sfio/ |
H A D | sfecvt.c | 35 static char buf[SF_MAXDIGITS]; local 37 return _sfcvt(&dval,buf,sizeof(buf),n_digit,decpt,sign,&len,SFFMT_EFORMAT);
|
H A D | sffcvt.c | 35 static char buf[SF_MAXDIGITS]; local 37 return _sfcvt(&dval,buf,sizeof(buf),n_digit,decpt,sign,&len,0);
|
/osnet-11/usr/src/lib/libast/common/string/ |
H A D | fmtclock.c | 35 char* buf; local 60 buf = fmtbuf(z = 7); 61 sfsprintf(buf, z, "%I*u%cs", sizeof(t), t, u); 62 return buf;
|
H A D | fmtdev.c | 37 char* buf; local 43 buf = fmtbuf(z = 17); 50 buf[0] = ma; 51 buf[1] = mi; 52 buf[2] = 0; 55 sfsprintf(buf, z, "%03d,%03d", ma, mi); 56 return buf;
|
H A D | fmtelapsed.c | 35 char* buf; local 42 buf = fmtbuf(z = 8); 45 sfsprintf(buf, z, "%lu.%02lus", t, (u * 100 / n) % 100); 47 sfsprintf(buf, z, "%lum%02lus", t / 60, t - (t / 60) * 60); 49 sfsprintf(buf, z, "%luh%02lum", t / (60*60), (t - (t / (60*60)) * (60*60)) / 60); 51 sfsprintf(buf, z, "%lud%02luh", t / (24*60*60), (t - (t / (24*60*60)) * (24*60*60)) / (60*60)); 53 sfsprintf(buf, z, "%luw%02lud", t / (7*24*60*60), (t - (t / (7*24*60*60)) * (7*24*60*60)) / (24*60*60)); 55 sfsprintf(buf, z, "%luM%02lud", (t * 12) / (365*24*60*60), ((t * 12) - ((t * 12) / (365*24*60*60)) * (365*24*60*60)) / (12*24*60*60)); 57 sfsprintf(buf, z, "%luY%02luM", t / (365*24*60*60), ((t - (t / (365*24*60*60)) * (365*24*60*60)) * 5) / (152 * 24 * 60 * 60)); 59 sfsprintf(buf, [all...] |
H A D | fmtip4.c | 34 char* buf; local 38 buf = fmtbuf(z = 20); 39 i = sfsprintf(buf, z, "%d.%d.%d.%d", (addr>>24)&0xff, (addr>>16)&0xff, (addr>>8)&0xff, (addr)&0xff); 41 sfsprintf(buf + i, z - i, "/%d", bits); 42 return buf;
|
H A D | fmtmode.c | 38 char* buf; local 42 s = buf = fmtbuf(MODELEN + 1); 46 return buf;
|
H A D | fmtversion.c | 37 char* buf; local 40 buf = cur = fmtbuf(n = 18); 52 return buf;
|