Searched refs:buffer (Results 51 - 75 of 441) sorted by relevance

1234567891011>>

/osnet-11/usr/src/lib/nsswitch/ad/common/
H A Dgetspent.c34 char *buffer; local
49 buffer = be->buffer = malloc(buflen);
50 if (be->buffer == NULL)
57 buffer = argp->buf.buffer;
60 buflen = snprintf(buffer, buflen, "%s@%s:*NP*:::::::",
H A Dgetgrent.c34 char *buffer; local
42 buffer = be->buffer = malloc(buflen);
43 if (be->buffer == NULL)
50 buffer = argp->buf.buffer;
53 (void) snprintf(buffer, buflen, "%s@%s::%u:", name, domain, gid);
/osnet-11/usr/src/lib/nsswitch/ldap/common/
H A Dgetnetmasks.c54 * getnetmaskbykey set argp->buf.buffer to NULL and argp->buf.buflen to 0
70 char *buffer, **netmask; local
86 if ((be->buffer = calloc(1, len)) == NULL) {
91 buffer = be->buffer;
93 buffer = argp->buf.buffer;
96 (void) snprintf(buffer, len, "%s", netmask[0]);
H A Dtsol_gettpent.c63 char *buffer = NULL; local
86 if ((be->buffer = calloc(1, len)) == NULL) {
91 buffer = be->buffer;
93 buffer = argp->buf.buffer;
95 (void) snprintf(buffer, len, "%s:%s", template[0], attrs[0]);
H A Dgetauuser.c63 char *buffer = NULL; local
72 (void) memset(argp->buf.buffer, 0, buflen);
100 if ((be->buffer = calloc(1, len)) == NULL) {
104 buffer = be->buffer;
106 buffer = argp->buf.buffer;
107 (void) snprintf(buffer, len, "%s:%s:%s",
111 be->buflen = strlen(be->buffer);
H A Dgetprojent.c73 char *buffer, *comment, *attr_str; local
84 if ((be->buffer = calloc(1, buflen)) == NULL) {
88 buffer = be->buffer;
90 buffer = argp->buf.buffer;
93 (void) memset(buffer, 0, buflen);
110 len = snprintf(buffer, buflen, "%s:%s:%s:", name[0], id[0],
112 TEST_AND_ADJUST(len, buffer, buflen, result_proj2str);
123 len = snprintf(buffer, bufle
[all...]
H A Dgetrpcent.c65 char *buffer = NULL; local
73 (void) memset(argp->buf.buffer, 0, buflen);
77 if ((be->buffer = calloc(1, buflen)) == NULL) {
81 buffer = be->buffer;
83 buffer = argp->buf.buffer;
103 len = snprintf(buffer, buflen, "%s %s", cname, rpcnumber[0]);
104 TEST_AND_ADJUST(len, buffer, buflen, result_rpc2str);
113 len = snprintf(buffer, bufle
[all...]
/osnet-11/usr/src/lib/libsmbns/common/
H A Dsmbns_netbios_datagram.c323 char *buffer; local
336 if ((buffer = calloc(1, MAX_DATAGRAM_LENGTH * 4)) == NULL) {
341 buffer[0] = DATAGRAM_TYPE_DIRECT_UNIQUE;
344 buffer[1] = DATAGRAM_FLAGS_B_NODE | DATAGRAM_FLAGS_FIRST;
347 buffer[1] = DATAGRAM_FLAGS_P_NODE | DATAGRAM_FLAGS_FIRST;
350 buffer[1] = DATAGRAM_FLAGS_M_NODE | DATAGRAM_FLAGS_FIRST;
354 buffer[1] = DATAGRAM_FLAGS_H_NODE | DATAGRAM_FLAGS_FIRST;
359 BE_OUT16(&buffer[2], datagram_id);
360 (void) memcpy(&buffer[4], &src->addr_list.sin.sin_addr.s_addr,
362 (void) memcpy(&buffer[
403 char *buffer; local
[all...]
/osnet-11/usr/src/cmd/perl/5.8.4/distrib/ext/Socket/t/
H A Dsocketpair.t104 my ($buffer, $expect);
106 undef $buffer;
107 is (read (LEFT, $buffer, length $expect), length $expect, "read on left");
108 is ($buffer, $expect, "content what we expected?");
110 undef $buffer;
111 is (read (RIGHT, $buffer, length $expect), length $expect, "read on right");
112 is ($buffer, $expect, "content what we expected?");
160 undef $buffer;
161 is (read (LEFT, $buffer, length $expect), length $expect, "read on left");
162 is ($buffer,
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/et/
H A Derror_message.c28 static char buffer[25]; variable
96 strlcpy (buffer, dgettext(TEXT_DOMAIN, "Unknown code "), sizeof (buffer));
97 for (cp = buffer; *cp; cp++)
110 return(buffer);
/osnet-11/usr/src/lib/libc/port/gen/
H A Dgetgrnam_r.c61 _uncached_getgrnam_r(const char *name, struct group *result, char *buffer,
65 _uncached_getgrgid_r(gid_t gid, struct group *result, char *buffer, int buflen);
72 getgrnam_r(const char *name, struct group *result, char *buffer, int buflen) argument
80 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group);
92 getgrgid_r(gid_t gid, struct group *result, char *buffer, int buflen) argument
96 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group);
104 _uncached_getgrgid_r(gid_t gid, struct group *result, char *buffer, argument
109 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2group);
121 __posix_getgrgid_r(gid_t gid, struct group *grp, char *buffer, argument
128 if ((*result = getgrgid_r(gid, grp, buffer, (uintptr_
137 _uncached_getgrnam_r(const char *name, struct group *result, char *buffer, int buflen) argument
154 __posix_getgrnam_r(const char *name, struct group *grp, char *buffer, size_t bufsize, struct group **result) argument
182 getgrent_r(struct group *result, char *buffer, int buflen) argument
201 fgetgrent_r(FILE *f, struct group *result, char *buffer, int buflen) argument
314 str2group(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
[all...]
H A Dparse.c147 * read a line into buffer from a mmap'ed file.
151 _readbufline(char *mapbuf, /* input mmap buffer */ argument
153 char *buffer, /* output storage */
164 buffer[linelen - 1] == '\\') {
167 buffer[linelen] = '\n';
168 buffer[linelen + 1] = '\0';
176 buffer[linelen - 1] == '\\') {
179 buffer[linelen] = '\n';
180 buffer[linelen + 1] = '\0';
185 buffer[linele
[all...]
H A Dnss_dbdefs.c65 /* Use one malloc for dbargs, result struct and buffer */
72 b->buffer = (char *)(b->result) + struct_size;
91 char *buffer, *buf_offset, *new_buffer; local
94 /* Allocate initial input buffer */
95 buffer = malloc(LINE_MAX);
96 if (buffer == NULL) {
102 buf_offset = buffer;
110 if (buffer[len - 1] == '\n' || feof(f)) {
114 /* Allocate larger buffer to continue input */
115 new_buffer = realloc(buffer, bufsiz
167 _nss_netdb_aliases(const char *instr, int lenstr, char *buffer, int buflen) argument
424 nss_pack_key2str(void *buffer, size_t length, nss_XbyY_args_t *arg, const char *dbname, int dbop, size_t *rlen, const char *typestr) argument
779 nss_default_key2str(void *buffer, size_t length, nss_XbyY_args_t *arg, const char *dbname, int dbop, size_t *rlen) argument
802 nss_packed_set_status(void *buffer, size_t length, nss_status_t status, nss_XbyY_args_t *arg) argument
904 nss_upack_key2arg(void *buffer, size_t length, char **dbname, int *dbop, nss_XbyY_args_t *arg, int index) argument
1151 nss_packed_getkey(void *buffer, size_t length, char **dbname, int *dbop, nss_XbyY_args_t *arg) argument
1189 str2packent( const char *instr, int lenstr, void *ent, char *buffer, int buflen ) argument
1212 nss_packed_arg_init(void *buffer, size_t length, nss_db_root_t *db_root, nss_db_initf_t *initf, int *dbop, nss_XbyY_args_t *arg) argument
1287 nss_packed_context_init(void *buffer, size_t length, nss_db_root_t *db_root, nss_db_initf_t *initf, nss_getent_t **contextp, nss_XbyY_args_t *arg) argument
[all...]
H A Dwalkstack.c334 char buffer[MAX_LINE]; local
337 (void) vsnprintf(buffer, sizeof (buffer), format, ap);
340 (void) write(filenum, buffer, strlen(buffer));
352 char buffer[MAX_LINE]; local
358 (void) addrtosymstr((void *)pc, buffer, sizeof (buffer));
367 buffer, (ulong_t)signo, sigbuf);
369 async_filenoprintf(filenum, "%s\n", buffer);
418 backtrace(void **buffer, int count) argument
440 addrtosymstr(void *pc, char *buffer, int size) argument
[all...]
/osnet-11/usr/src/lib/nsswitch/mdns/common/
H A Dmdns_common.c35 static char *RDataToName(char *data, char *buffer, int datalen, int buflen);
119 if (data->buffer == NULL) {
125 stat = (*argp->str2ent)(data->buffer,
126 strlen(data->buffer),
127 argp->buf.result, argp->buf.buffer,
137 free(data->buffer);
139 argp->returnval = argp->buf.buffer;
140 argp->returnlen = strlen(argp->buf.buffer);
142 data->buffer = NULL;
169 char *buffer; local
312 char *buffer; local
403 RDataToName(char *data, char *buffer, int datalen, int buflen) argument
692 _nss_mdns_gethost_withttl(void *buffer, size_t bufsize, int ipnode) argument
[all...]
/osnet-11/usr/src/lib/libnsl/nss/
H A Dgethostbyname_r.c69 _switch_gethostbyname_r(const char *nam, struct hostent *result, char *buffer,
74 struct hostent *result, char *buffer, int buflen, int *h_errnop);
79 char *buffer, int buflen, int *h_errnop)
82 buffer, buflen, h_errnop));
87 struct hostent *result, char *buffer, int buflen, int *h_errnop)
90 result, buffer, buflen, h_errnop));
96 gethostbyname_r(const char *nam, struct hostent *result, char *buffer,
101 struct hostent *result, char *buffer, int buflen, int *h_errnop);
104 gethostbyname_r(const char *nam, struct hostent *result, char *buffer, argument
128 nssin.arg.nss.host.buf = buffer;
78 _uncached_gethostbyname_r(const char *nam, struct hostent *result, char *buffer, int buflen, int *h_errnop) argument
86 _uncached_gethostbyaddr_r(const char *addr, int length, int type, struct hostent *result, char *buffer, int buflen, int *h_errnop) argument
147 gethostbyaddr_r(const char *addr, int length, int type, struct hostent *result, char *buffer, int buflen, int *h_errnop) argument
[all...]
H A Dgethostent6.c57 str2hostent6(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
59 return (__str2hostent(AF_INET6, instr, lenstr, ent, buffer, buflen));
87 __gethostent6(struct hostent *result, char *buffer, int buflen, int *h_errnop) argument
92 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2hostent6);
H A Dgethostent_r.c52 str2hostent(const char *instr, int lenstr, void *ent, char *buffer, int buflen) argument
54 return (__str2hostent(AF_INET, instr, lenstr, ent, buffer, buflen));
91 gethostent_r(struct hostent *result, char *buffer, int buflen, int *h_errnop) argument
96 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2hostent);
/osnet-11/usr/src/lib/libpkg/common/
H A Dlogerr.c42 char *pt, buffer[2048]; local
62 (void) vsprintf(buffer, fmt, ap);
66 for (pt = buffer; *pt; pt++) {
H A Dmappath.c63 char buffer[PATH_MAX]; local
69 copy = buffer;
129 * If it's a separator, copy it over to the target buffer and
146 (void) strcpy(path, buffer);
157 char buffer[PATH_MAX]; local
161 (void) strcpy(buffer, path);
177 (void) strcpy(path, buffer);
182 (void) strcpy(buffer, path);
187 (void) strcpy(path, buffer);
194 * NOTE: This assumes that varname is a buffer lon
[all...]
/osnet-11/usr/src/lib/libradproto/common/
H A Dradproto_util.c37 char *buffer = malloc(size); local
38 if (buffer == NULL)
42 xdrmem_create(&mxdr, buffer, size, XDR_ENCODE);
44 free(buffer);
48 free(buffer);
55 *val = buffer;
/osnet-11/usr/src/lib/libast/common/comp/
H A Dexecvpe.c49 char buffer[PATH_MAX];
51 if (*path != '/' && !(path = pathpath(name, NULL, PATH_REGULAR|PATH_EXECUTE, buffer, sizeof(buffer))))
/osnet-11/usr/src/lib/libldap5/sources/ldap/common/
H A Dcompat.c47 char *buffer, int buflen, int *h_errnop )
56 hep = (struct hostent_data *)buffer;
46 nsldapi_compat_gethostbyname_r( const char *name, struct hostent *result, char *buffer, int buflen, int *h_errnop ) argument
/osnet-11/usr/src/lib/libresolv2/common/irs/
H A Dirp.c279 irs_irp_read_line(struct irp_p *pvt, char *buffer, int len) { argument
296 * and append new data to buffer
326 /* full buffer and still no newline */
335 memcpy(buffer + buffpos, start, i);
338 buffer[buffpos] = '\0';
348 fprintf(stderr, "read line: %s\n", buffer);
404 * Pointer to null-terminated buffer allocated by memget.
405 * *SIZE is set to the length of the buffer.
414 char *buffer = memget(len); local
417 if (buffer
521 char buffer[1024]; local
[all...]
/osnet-11/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dtgetent.c61 tgetent(char *buffer, const char *name) argument

Completed in 1334 milliseconds

1234567891011>>