Searched defs:buf (Results 1 - 25 of 3423) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dstrerror.c52 static char buf[64]; local
58 (void) sm_snprintf(buf, sizeof(buf), "Error %d", err);
59 return buf;
H A Derrstring.c279 static char buf[30]; local
281 (void) sm_snprintf(buf, sizeof buf, "Error %d", errnum);
282 return buf;
H A Dt-strio.c23 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/libtsnet/common/
H A Dtnmlp.c42 tnmlp(int cmd, tsol_mlpent_t *buf) argument
44 return (syscall(SYS_labelsys, TSOL_TNMLP, cmd, buf));
H A Dtnrh.c41 tnrh(int cmd, tsol_rhent_t *buf) argument
43 return (syscall(SYS_labelsys, TSOL_TNRH, cmd, buf));
H A Dtnrhtp.c42 tnrhtp(int cmd, tsol_tpent_t *buf) argument
44 return (syscall(SYS_labelsys, TSOL_TNRHTP, cmd, buf));
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/mech/
H A Dutil_localhost.c48 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/libbc/libc/gen/common/
H A Dmblib.c64 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/sys/
H A Dacctctl.c34 acctctl(int cmd, void *buf, size_t bufsz) argument
36 return (syscall(SYS_acctctl, cmd, buf, bufsz));
H A Dustat.c37 ustat(dev_t dev, struct ustat *buf) argument
39 if (utssys(buf, dev, UTS_USTAT) == -1)
H A Dgetrandom.c21 getrandom(void *buf, size_t len, unsigned int flags) argument
23 return (syscall(SYS_getrandom, buf, len, flags));
/illumos-gate/usr/src/cmd/lp/lib/oam/
H A Dagettxt.c45 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/cmd/sendmail/libsmutil/
H A Dsnprintf.c41 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/uts/common/syscall/
H A Duname.c42 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 Dfmemopen.c27 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 Dfmtperm.c37 char* buf; local
39 s = buf = fmtbuf(32);
90 return buf;
H A Dfmtsignal.c37 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 Dtmform.c37 * 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 Dvecstring.c40 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 Dalloc_pbuf.c35 char *buf; local
41 buf = (char*) mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE, fd, 0);
43 return buf;
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Darc4random.c29 uint8_t buf[32]; local
37 arc4random_buf(buf, sizeof (buf));
H A Darc4random_rekey.c32 uint8_t *buf; local
34 buf = malloc(NENTS);
35 assert(buf != NULL);
36 arc4random_buf(buf, NENTS);
/illumos-gate/usr/src/test/libc-tests/tests/
H A Daligned_alloc.c35 void *buf; local
50 buf = aligned_alloc(sizeof (void *), 16);
51 VERIFY3P(buf, !=, NULL);
52 free(buf);
/illumos-gate/usr/src/test/util-tests/tests/libsff/
H A Dlibsff_einval.c31 uint8_t buf[256]; local
35 bzero(buf, sizeof (buf));
36 if ((ret = libsff_parse(NULL, sizeof (buf), 0xa0, &nvl)) != EINVAL) {
40 if ((ret = libsff_parse(buf, sizeof (buf), 0xa0, NULL)) != EINVAL) {
45 if ((ret = libsff_parse(buf, sizeof (buf), 0xa1, &nvl)) != EINVAL) {
50 if ((ret = libsff_parse(buf, sizeof (buf),
[all...]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dgetentropy.c24 getentropy(void *buf, size_t buflen) argument
33 ret = getrandom(buf, buflen, 0);

Completed in 156 milliseconds

1234567891011>>