Searched refs:buf (Results 1 - 25 of 4412) sorted by relevance

1234567891011>>

/illumos-gate/usr/src/cmd/sendmail/include/sm/
H A Dsetjmp.h33 # define sm_setjmp_sig(buf) sigsetjmp(buf, 1)
34 # define sm_setjmp_nosig(buf) sigsetjmp(buf, 0)
35 # define sm_longjmp_sig(buf, val) siglongjmp(buf, val)
36 # define sm_longjmp_nosig(buf, val) siglongjmp(buf, val)
41 # define sm_setjmp_sig(buf) setjmp(buf)
[all...]
/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);
H A Dio.h38 void io_abort(const char *buf) __NORETURN;
39 void io_die(const char *buf) __NORETURN;
40 void io_err(const char *buf);
41 void io_out(const char *buf);
/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/lib/libbc/libc/sys/4.2/
H A Dstat.c32 int stat(path, buf)
34 struct stat *buf;
36 return(bc_stat(path, buf));
40 int bc_stat(path, buf)
42 struct stat *buf;
48 if ((buf == (struct stat*)0) || (buf == (struct stat*)-1)) {
52 return(stat_com(0, path, buf));
56 int lstat(path, buf)
58 struct stat *buf;
[all...]
/illumos-gate/usr/src/boot/sys/boot/arm/at91/libat91/
H A Dstrcvt.c98 p_ASCIIToHex(const char *buf) argument
102 if ((*buf == '0') && ((buf[1] == 'x') || (buf[1] == 'X')))
103 buf += 2;
105 while (*buf) {
107 lValue += p_HexCharValue(*buf++);
123 p_ASCIIToDec(const char *buf) argument
127 while (*buf) {
129 v += (*buf
[all...]
/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/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/lib/libc/port/gen/
H A Dassert.c50 char buf[512]; local
52 (void) snprintf(buf, sizeof (buf),
55 (void) write(2, buf, strlen(buf));
56 __set_panicstr(buf);
69 char buf[512]; local
71 (void) snprintf(buf, sizeof (buf),
75 (void) write(2, buf, strle
[all...]
H A Dexplicit_bzero.c12 __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);
/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/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1buf.h18 (const asn1buf *buf);
19 /* requires *buf has been created and not destroyed
21 (in octets) of buf's octet buffer. */
22 #define asn1buf_size(buf) \
23 (((buf) == NULL || (buf)->base == NULL) \
25 : ((buf)->bound - (buf)->base + 1))
28 (const asn1buf *buf);
29 /* requires *buf i
152 asn1buf_insert_octet(asn1buf *buf, const int o) argument
[all...]
/illumos-gate/usr/src/lib/libbc/libc/compat/sys5/
H A Dgetpw.c32 getpw(int uid, char buf[]) argument
40 strcpy(buf, pw->pw_name);
41 strcat(buf, ":");
42 strcat(buf, pw->pw_passwd);
44 strcat(buf, ",");
45 strcat(buf, pw->pw_age);
47 strcat(buf, ":");
49 strcat(buf, numbuf);
50 strcat(buf, ":");
52 strcat(buf, numbu
[all...]
/illumos-gate/usr/src/test/libc-tests/tests/random/
H A Darc4random_rekey.c32 uint8_t *buf; local
34 buf = malloc(NENTS);
35 assert(buf != NULL);
36 arc4random_buf(buf, NENTS);
H A Dgetrandred.c32 char buf[1024]; local
34 (void) memset(buf, 'a', sizeof (buf));
40 (void) getrandom(buf + NOFF, NBYTES, 0);
44 if (buf[i] != 'a')
48 for (i = NBYTES + NOFF; i < sizeof (buf); i++) {
49 if (buf[i] != 'a')
/illumos-gate/usr/src/lib/libast/common/string/
H A Dfmttime.c35 char* buf; local
38 buf = fmtbuf(z = 80);
39 tmfmt(buf, z, format, &clock);
40 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;
H A Dfmtdev.c37 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;
/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/cmd/lp/lib/msgs/
H A D_putmessage.c40 int _putmessage ( char * buf, short type, va_list arg ) argument
42 int _putmessage (buf, type, arg)
43 char *buf;
60 if (buf)
61 (void) htos(buf + MESG_TYPE, type);
72 if (buf)
73 (void) htos(buf + size, t_short);
80 if (buf)
81 (void) ltos(buf + size, t_long);
90 if (buf)
[all...]
/illumos-gate/usr/src/cmd/ipf/lib/common/
H A Dportname.c14 static char buf[32]; local
21 strncpy(buf, sv->s_name, sizeof(buf)-1);
22 buf[sizeof(buf)-1] = '\0';
24 sv = strncasecmp(buf, sv->s_name, strlen(buf)) ?
28 return buf;
31 strncpy(buf, sv->s_name, sizeof(buf)
[all...]
/illumos-gate/usr/src/ucblib/libucb/port/gen/
H A Dstatfs.c27 cnvtvfs64(struct statfs64 *buf, struct statvfs64 *vbuf) argument
29 buf->f_type = 0;
30 buf->f_bsize = vbuf->f_frsize;
31 buf->f_blocks = vbuf->f_blocks;
32 buf->f_bfree = vbuf->f_bfree;
33 buf->f_bavail = vbuf->f_bavail;
34 buf->f_files = vbuf->f_files;
35 buf->f_ffree = vbuf->f_ffree;
36 buf->f_fsid.val[0] = vbuf->f_fsid;
37 buf
41 statfs64(char *path, struct statfs64 *buf) argument
57 fstatfs64(int fd, struct statfs64 *buf) argument
69 cnvtvfs(struct statfs *buf, struct statvfs *vbuf) argument
83 statfs(char *path, struct statfs *buf) argument
100 fstatfs(int fd, struct statfs *buf) argument
[all...]
/illumos-gate/usr/src/lib/libbc/libc/compat/4.1/
H A Dgetpw.c32 getpw(int uid, char buf[]) argument
40 strcpy(buf, pw->pw_name);
41 strcat(buf, ":");
42 strcat(buf, pw->pw_passwd);
43 strcat(buf, ":");
45 strcat(buf, numbuf);
46 strcat(buf, ":");
48 strcat(buf, numbuf);
49 strcat(buf, ":");
50 strcat(buf, p
[all...]
/illumos-gate/usr/src/lib/libbc/libc/sys/sys5/
H A Dstat.c34 int stat(path, buf)
36 struct stat *buf;
38 return(bc_stat(path, buf));
41 int bc_stat(path, buf)
43 struct stat *buf;
49 if ((buf == (struct stat*)0) || (buf == (struct stat*)-1)) {
53 return(stat_com(0, path, buf));
57 int lstat(path, buf)
59 struct stat *buf;
[all...]
/illumos-gate/usr/src/lib/libast/common/path/
H A Dpathnative.c27 * 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...]

Completed in 2591 milliseconds

1234567891011>>