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

1234567891011>>

/osnet-11/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 return strdup(buf);
/osnet-11/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...]
/osnet-11/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 Dgcvt.c42 gcvt(double number, int ndigits, char *buf) argument
44 return (gconvert(number, ndigits, 0, buf));
/osnet-11/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;
/osnet-11/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...]
/osnet-11/usr/src/grub/grub2/grub-core/lib/
H A Dcmdline.c62 int grub_create_loader_cmdline (int argc, char *argv[], char *buf, argument
81 *buf++ = '"';
86 *buf++ = '\\';
88 *buf++ = *c;
93 *buf++ = '"';
95 *buf++ = ' ';
100 buf--;
102 *buf = 0;
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/t/op/
H A Dread.t10 $got = read(FOO,$buf,4);
13 print ($buf eq "perl" ? "ok 2\n" : "not ok 2 :$buf:\n");
16 $got = read(FOO,$buf,4);
19 print ($buf eq "" ? "ok 4\n" : "not ok 4\n");
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dasn1buf.h17 unsigned int asn1buf_free(const asn1buf *buf);
19 * requires *buf is allocated
20 * effects Returns the number of unused, allocated octets in *buf.
22 #define asn1buf_free(buf) \
23 (((buf) == NULL || (buf)->base == NULL) \
25 : (unsigned int)((buf)->bound - (buf)->next + 1))
28 asn1_error_code asn1buf_ensure_space(asn1buf *buf, const unsigned int amount);
30 * requires *buf i
151 asn1buf_insert_octet(asn1buf *buf, const int o) argument
[all...]
H A Dasn1buf.c87 asn1buf_create(asn1buf **buf) argument
89 *buf = (asn1buf*)malloc(sizeof(asn1buf));
90 if (*buf == NULL) return ENOMEM;
91 (*buf)->base = NULL;
92 (*buf)->bound = NULL;
93 (*buf)->next = NULL;
98 asn1buf_wrap_data(asn1buf *buf, const krb5_data *code) argument
101 buf->next = buf->base = code->data;
102 buf
107 asn1buf_imbed(asn1buf *subbuf, const asn1buf *buf, const unsigned int length, const int indef) argument
120 asn1buf_sync(asn1buf *buf, asn1buf *subbuf, asn1_class asn1class, asn1_tagnum lasttag, unsigned int length, int indef, int seqindef) argument
141 asn1buf_skiptail(asn1buf *buf, const unsigned int length, const int indef) argument
174 asn1buf_destroy(asn1buf **buf) argument
187 asn1buf_insert_octet(asn1buf *buf, const int o) argument
199 asn1buf_insert_bytestring(asn1buf *buf, const unsigned int len, const void *sv) argument
215 asn1buf_remove_octet(asn1buf *buf, asn1_octet *o) argument
223 asn1buf_remove_octetstring(asn1buf *buf, const unsigned int len, asn1_octet **s) argument
243 asn1buf_remove_charstring(asn1buf *buf, const unsigned int len, char **s) argument
262 asn1buf_remains(asn1buf *buf, int indef) argument
277 asn12krb5_buf(const asn1buf *buf, krb5_data **code) argument
310 asn1buf_unparse(const asn1buf *buf, char **s) argument
333 asn1buf_hex_unparse(const asn1buf *buf, char **s) argument
367 asn1buf_size(const asn1buf *buf) argument
375 asn1buf_free(const asn1buf *buf) argument
383 asn1buf_ensure_space(asn1buf *buf, const unsigned int amount) argument
392 asn1buf_expand(asn1buf *buf, unsigned int inc) argument
420 asn1buf_len(const asn1buf *buf) argument
[all...]
H A Dasn1_k_decode.h35 /* asn1_error_code asn1_decode_scalar_type(asn1buf *buf, krb5_scalar *val); */
37 * requires *buf is allocated, *buf's current position points to the
41 * effects Decodes the encoding in *buf, returning the result in *val.
47 * the bounds of *buf
52 * asn1_error_code asn1_decode_structure_type(asn1buf *buf,
56 * requires *buf is allocated, *buf's current position points to the
62 * effects Decodes the encoding in *buf, returning the result in *val.
68 * bounds of *buf
[all...]
H A Dasn1_decode.h55 /* asn1_error_code asn1_decode_type(asn1buf *buf, ctype *val); */
57 * requires *buf is allocated
58 * modifies *buf, *len
59 * effects Decodes the octet string in *buf into *val.
64 asn1_error_code asn1_decode_boolean(asn1buf *buf, unsigned int *val);
65 asn1_error_code asn1_decode_integer(asn1buf *buf, long *val);
66 asn1_error_code asn1_decode_unsigned_integer(asn1buf *buf, unsigned long *val);
67 asn1_error_code asn1_decode_maybe_unsigned(asn1buf *buf, unsigned long *val);
68 asn1_error_code asn1_decode_null(asn1buf *buf);
70 asn1_error_code asn1_decode_oid(asn1buf *buf, unsigne
[all...]
H A Dasn1_k_encode.h37 * asn1_error_code asn1_encode_asn1_type(asn1buf *buf,
40 * requires *buf is allocated
41 * effects Inserts the encoding of val into *buf and
47 * asn1_error_code asn1_encode_asn1_type(asn1buf *buf,
50 * requires *buf is allocated
51 * effects Inserts the encoding of *val into *buf and
57 * asn1_error_code asn1_encode_asn1_type(asn1buf *buf,
60 * requires *buf is allocated, **val != NULL, *val[0] != NULL,
62 * effects Inserts the encoding of **val into *buf and
70 asn1_error_code asn1_encode_pk_authenticator(asn1buf *buf,
[all...]
/osnet-11/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...]
H A Dpathposix.c27 * convert native path to posix 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 pathposix(const char* path, char* buf, size_t siz) argument
43 return uwin_unpath(path, buf, siz);
53 pathposix(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_posix_path(path, buf);
75 pathposix(const char* path, char* buf, size_t siz) argument
98 pathposix(const char* path, char *buf, size_t siz) argument
113 pathposix(const char* path, char* buf, size_t siz) argument
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/support/
H A Dk5buf.c50 static int ensure_space(struct k5buf *buf, size_t len) argument
55 if (buf->buftype == BUFTYPE_ERROR)
57 if (buf->space - 1 - buf->len >= len) /* Enough room already. */
59 if (buf->buftype == BUFTYPE_FIXED) /* Can't resize a fixed buffer. */
61 assert(buf->buftype == BUFTYPE_DYNAMIC);
62 new_space = buf->space * 2;
63 while (new_space <= SPACE_MAX && new_space - buf->len - 1 < len)
67 new_data = realloc(buf->data, new_space);
70 buf
83 krb5int_buf_init_fixed(struct k5buf *buf, char *data, size_t space) argument
93 krb5int_buf_init_dynamic(struct k5buf *buf) argument
106 krb5int_buf_add(struct k5buf *buf, const char *data) argument
111 krb5int_buf_add_len(struct k5buf *buf, const char *data, size_t len) argument
120 krb5int_buf_add_fmt(struct k5buf *buf, const char *fmt, ...) argument
185 krb5int_buf_truncate(struct k5buf *buf, size_t len) argument
195 krb5int_buf_data(struct k5buf *buf) argument
200 krb5int_buf_len(struct k5buf *buf) argument
205 krb5int_free_buf(struct k5buf *buf) argument
[all...]
/osnet-11/usr/src/lib/libast/common/comp/
H A Dmktemp.c44 temp(char* buf, int* fdp) argument
51 len = strlen(buf);
52 if (s = strrchr(buf, '/'))
55 d = buf;
59 s = buf;
63 *buf = 0;
67 if (!pathtemp(buf, len, d, s, fdp))
68 *buf = 0;
70 return buf;
74 mktemp(char* buf) argument
80 mkstemp(char* buf) argument
[all...]
/osnet-11/usr/src/lib/libdll/common/
H A Ddlllook.c37 char buf[256]; local
39 if (!(addr = dlsym(dll, name)) && strlen(name) < (sizeof(buf) - 2))
41 buf[0] = '_';
42 strcpy(buf + 1, name);
43 addr = dlsym(dll, buf);
/osnet-11/usr/src/lib/libc/port/threads/
H A Dassfail.c163 char buf[800]; local
193 (void) strcpy(buf,
195 (void) strcat(buf, who);
196 (void) strcat(buf, "(");
198 ultos((uint64_t)(uintptr_t)cv, 16, buf + strlen(buf));
199 (void) strcat(buf, ", ");
201 ultos((uint64_t)(uintptr_t)mp, 16, buf + strlen(buf));
202 (void) strcat(buf, ")");
254 char buf[800]; local
341 char buf[800]; local
391 char buf[800]; /* no assert() message in the library is this long */ local
[all...]
/osnet-11/usr/src/lib/libast/common/stdio/
H A D_stdvbuf.c29 _stdsetvbuf(Sfio_t* f, char* buf, int type, size_t size) argument
31 return setvbuf(f, buf, type, size);
/osnet-11/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);
/osnet-11/usr/src/grub/grub2/grub-core/lib/xzembed/
H A Dxz_config.h63 #define memzero(buf, size) memset(buf, 0, size)
102 static inline uint32_t get_unaligned_le32(const uint8_t *buf) argument
104 return (uint32_t)buf[0]
105 | ((uint32_t)buf[1] << 8)
106 | ((uint32_t)buf[2] << 16)
107 | ((uint32_t)buf[3] << 24);
110 static inline uint32_t get_unaligned_be32(const uint8_t *buf) argument
112 return (uint32_t)(buf[0] << 24)
113 | ((uint32_t)buf[
118 put_unaligned_le32(uint32_t val, uint8_t *buf) argument
126 put_unaligned_be32(uint32_t val, uint8_t *buf) argument
[all...]
/osnet-11/usr/src/grub/grub2/include/grub/lib/
H A Dcrc.h23 grub_uint32_t grub_getcrc32c (grub_uint32_t crc, const void *buf, int size);

Completed in 250 milliseconds

1234567891011>>