/illumos-gate/usr/src/cmd/sendmail/libsm/ |
H A D | strerror.c | 52 static char buf[64]; local 58 (void) sm_snprintf(buf, sizeof(buf), "Error %d", err); 59 return buf;
|
H A D | errstring.c | 279 static char buf[30]; local 281 (void) sm_snprintf(buf, sizeof buf, "Error %d", errnum); 282 return buf;
|
H A D | t-strio.c | 23 char buf[20]; local 28 (void) memset(buf, '.', 20); 29 sm_strio_init(&f, buf, 10); 33 SM_TEST(strcmp(buf, r) == 0);
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/ |
H A D | util_localhost.c | 48 char buf[MAXHOSTNAMELEN+1], *ptr; local 50 if (gethostname(buf, sizeof(buf)) < 0) 53 buf[sizeof(buf)-1] = '\0'; 55 if (! (ptr = xmalloc(strlen(buf) + 1))) 58 return strcpy(ptr, buf);
|
/illumos-gate/usr/src/lib/libtsnet/common/ |
H A D | tnmlp.c | 42 tnmlp(int cmd, tsol_mlpent_t *buf) argument 44 return (syscall(SYS_labelsys, TSOL_TNMLP, cmd, buf));
|
H A D | tnrh.c | 41 tnrh(int cmd, tsol_rhent_t *buf) argument 43 return (syscall(SYS_labelsys, TSOL_TNRH, cmd, buf));
|
H A D | tnrhtp.c | 42 tnrhtp(int cmd, tsol_tpent_t *buf) argument 44 return (syscall(SYS_labelsys, TSOL_TNRHTP, cmd, buf));
|
/illumos-gate/usr/src/lib/libbc/libc/gen/common/ |
H A D | mblib.c | 64 char buf[BUFSIZ]; local 72 strcpy(buf, LIBRARY_PATH); 73 strcat(buf, _code_set_info.code_name); 74 strcat(buf, ".so"); 76 printf ("ml_open_library: buf = '%s'\n", buf); 78 handle = dlopen(buf, 1);
|
/illumos-gate/usr/src/lib/libc/port/gen/ |
H A D | explicit_bzero.c | 12 __explicit_bzero_hook(void *buf, size_t len) argument 17 explicit_bzero(void *buf, size_t len) argument 19 (void) memset(buf, 0, len); 20 __explicit_bzero_hook(buf, len);
|
H A D | getentropy.c | 24 getentropy(void *buf, size_t buflen) argument 33 ret = getrandom(buf, buflen, 0);
|
/illumos-gate/usr/src/lib/libc/port/sys/ |
H A D | acctctl.c | 34 acctctl(int cmd, void *buf, size_t bufsz) argument 36 return (syscall(SYS_acctctl, cmd, buf, bufsz));
|
H A D | getrandom.c | 21 getrandom(void *buf, size_t len, int flags) argument 23 return (syscall(SYS_getrandom, buf, len, flags));
|
H A D | ustat.c | 37 ustat(dev_t dev, struct ustat *buf) argument 39 if (utssys(buf, dev, UTS_USTAT) == -1)
|
/illumos-gate/usr/src/cmd/sendmail/libsmutil/ |
H A D | snprintf.c | 41 static char buf[MAXSHORTSTR + 1]; 52 (void) sm_strlcpy(buf, s, m + 1); 53 return buf; 55 (void) sm_strlcpy(buf, s, m - 2); 56 (void) sm_strlcat(buf, "...", sizeof buf); 57 return buf; 60 (void) sm_strlcpy(buf, s, m + 1); 61 (void) sm_strlcat2(buf, "...", s + l - m, sizeof buf); 40 static char buf[MAXSHORTSTR + 1]; local [all...] |
/illumos-gate/usr/src/test/libc-tests/tests/random/ |
H A D | arc4random.c | 29 uint8_t buf[32]; local 37 arc4random_buf(buf, sizeof (buf));
|
H A D | arc4random_rekey.c | 32 uint8_t *buf; local 34 buf = malloc(NENTS); 35 assert(buf != NULL); 36 arc4random_buf(buf, NENTS);
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | uname.c | 42 uname(struct utsname *buf) argument 46 if (copyout(utsname.sysname, buf->sysname, strlen(utsname.sysname)+1)) { 49 if (copyout(name_to_use, buf->nodename, strlen(name_to_use)+1)) { 52 if (copyout(utsname.release, buf->release, strlen(utsname.release)+1)) { 55 if (copyout(utsname.version, buf->version, strlen(utsname.version)+1)) { 58 if (copyout(utsname.machine, buf->machine, strlen(utsname.machine)+1)) {
|
/illumos-gate/usr/src/lib/libast/common/stdio/ |
H A D | fmemopen.c | 27 fmemopen(void* buf, size_t size, const char* mode) argument 29 STDIO_PTR(0, "fmemopen", Sfio_t*, (void*, size_t, const char*), (buf, size, mode)) 31 return sfnew(NiL, buf, size, -1, SF_STRING|_sftype(mode, NiL, NiL));
|
/illumos-gate/usr/src/lib/libast/common/string/ |
H A D | fmtperm.c | 37 char* buf; local 39 s = buf = fmtbuf(32); 90 return buf;
|
H A D | fmtsignal.c | 37 char* buf; local 43 buf = sig_info.text[sig]; 46 buf = fmtbuf(z = 20); 47 sfsprintf(buf, z, "Signal %d", sig); 54 buf = sig_info.name[sig]; 57 buf = fmtbuf(z = 20); 58 sfsprintf(buf, z, "%d", sig); 61 return buf;
|
/illumos-gate/usr/src/lib/libast/common/tm/ |
H A D | tmform.c | 37 * end of buf is returned 41 tmform(char* buf, const char* format, time_t* clock) argument 43 return tmfmt(buf, 256, format, clock);
|
/illumos-gate/usr/src/lib/libast/common/vec/ |
H A D | vecstring.c | 40 register char* buf; local 43 if (!str || !*str || !(buf = strdup(str))) vec = 0; 44 else if (!(vec = vecload(buf))) free(buf);
|
/illumos-gate/usr/src/lib/libbc/csu/common/ |
H A D | alloc_pbuf.c | 35 char *buf; local 41 buf = (char*) mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0); 43 return buf;
|
/illumos-gate/usr/src/cmd/lp/lib/oam/ |
H A D | agettxt.c | 45 char * buf, 49 agettxt (msg_id, buf, buflen) 51 char *buf; 56 strncpy (buf, gettext(_oam_msg_base_[msg_id]), buflen-1); 58 strncpy (buf, gettext("No message defined--get help!"), buflen-1); 59 buf[buflen-1] = 0; 60 return (buf); 43 agettxt( long msg_id, char * buf, int buflen ) argument
|
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | aligned_alloc.c | 35 void *buf; local 50 buf = aligned_alloc(sizeof (void *), 16); 51 VERIFY3P(buf, !=, NULL); 52 free(buf);
|