/osnet-11/usr/src/lib/libadm/common/ |
H A D | putprmpt.c | 42 char buffer[1024] = ""; /* NB: code should prevent overflow... */ local 47 (void) strlcpy(buffer, defstr ? defstr : "No default prompt.", 48 sizeof (buffer)); 53 (void) snprintf(buffer, sizeof (buffer), "%s%s", 56 (void) snprintf(buffer, sizeof (buffer), "%.*s%s", 59 (void) strlcpy(buffer, prompt, sizeof (buffer)); 61 (void) strlcpy(buffer, "", sizeo [all...] |
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | getspent.c | 48 nss_XbyY_buf_t **buffer = arg; local 50 NSS_XbyY_FREE(buffer); 56 nss_XbyY_buf_t **buffer = local 60 if (buffer == NULL) 62 b = NSS_XbyY_ALLOC(buffer, sizeof (struct spwd), NSS_BUFLEN_SHADOW); 72 getspnam_r(nam, b->result, b->buffer, b->buflen)); 81 getspent_r(b->result, b->buffer, b->buflen)); 90 fgetspent_r(f, b->result, b->buffer, b->buflen));
|
H A D | getpwnam.c | 51 nss_XbyY_buf_t **buffer = arg; local 53 NSS_XbyY_FREE(buffer); 59 nss_XbyY_buf_t **buffer = local 63 if (buffer == NULL) 65 b = NSS_XbyY_ALLOC(buffer, sizeof (struct passwd), NSS_BUFLEN_PASSWD); 75 getpwuid_r(uid, b->result, b->buffer, b->buflen)); 84 getpwnam_r(nam, b->result, b->buffer, b->buflen)); 93 getpwent_r(b->result, b->buffer, b->buflen)); 102 fgetpwent_r(f, b->result, b->buffer, b->buflen));
|
H A D | getgrnam.c | 53 nss_XbyY_buf_t **buffer = arg; local 55 NSS_XbyY_FREE(buffer); 61 nss_XbyY_buf_t **buffer = local 66 if (buffer == NULL) 72 if (*buffer) { 73 if ((*buffer)->buflen >= blen) /* existing size fits */ 74 return (*buffer); 75 NSS_XbyY_FREE(buffer); /* existing is too small */ 77 b = NSS_XbyY_ALLOC(buffer, sizeof (struct group), blen); 90 ret = getgrgid_r(gid, b->result, b->buffer, [all...] |
/osnet-11/usr/src/lib/libc/port/stdio/ |
H A D | cuserid.c | 49 char buffer[BUFSIZ]; local 64 } else if ((pw = getpwuid_r(getuid(), &pwd, buffer, BUFSIZ)) != NULL) {
|
/osnet-11/usr/src/lib/libwanbootutil/common/ |
H A D | wbio.c | 35 * Write `buflen' bytes from `buffer' to the file represented by `fd'. 39 wbio_nwrite(int fd, const void *buffer, size_t buflen) argument 43 const char *buf = buffer; 55 * Read `buflen' bytes into `buffer' from the file represented by `fd'. 59 wbio_nread(int fd, void *buffer, size_t buflen) argument 63 char *buf = buffer; 75 * Read a random number of `buflen' bytes into `buffer' from /dev/urandom. 79 wbio_nread_rand(void *buffer, size_t buflen) argument 87 if (wbio_nread(fd, buffer, buflen) != 0) {
|
/osnet-11/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | vw_print.c | 54 char *buffer; local 57 buffer = (char *)malloc(size); 58 if (buffer == NULL) 63 n = vsnprintf(buffer, size, fmt, ap); 67 buffer = (char *)realloc(buffer, size); 68 if (buffer == NULL) 72 rv = waddnstr(w, buffer, -1); 73 free(buffer);
|
H A D | vwscanw.c | 65 char buffer[LINE_MAX]; local 67 if (wgetnstr(w, buffer, (int)sizeof (buffer)) != OK) 69 code = _vsscanf(buffer, fmt, ap);
|
H A D | vwprintw.c | 59 char *buffer; local 62 buffer = (char *)malloc(size); 63 if (buffer == NULL) 68 n = vsnprintf(buffer, size, fmt, ap); 72 buffer = (char *)realloc(buffer, size); 73 if (buffer == NULL) 77 rv = waddnstr(w, buffer, -1); 78 free(buffer);
|
/osnet-11/usr/src/lib/libradproto/common/ |
H A D | radproto_util.c | 37 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/libsocket/inet/ |
H A D | bootparams_getbyname.c | 48 char *linebuf, /* buffer to put the answer in */ 65 * The structure pointer passed in is a buffer in the caller's space. 66 * instring and buffer should be separate areas. 68 * store the entry in the buffer we were passed by the caller. 78 char *buffer, 84 if ((instr >= buffer && (buffer + buflen) > instr) || 85 (buffer >= instr && (instr + lenstr) > buffer)) { 100 if (buflen <= lenstr) { /* not enough buffer */ 74 str2bootent( const char *instr, int lenstr, void *ent, char *buffer, int buflen ) argument [all...] |
H A D | getservbyname_r.c | 60 char *buffer, int buflen) 74 nssin.arg.nss.serv.buf = buffer; 94 char *buffer, int buflen) 108 nssin.arg.nss.serv.buf = buffer; 59 getservbyname_r(const char *name, const char *proto, struct servent *result, char *buffer, int buflen) argument 93 getservbyport_r(int port, const char *proto, struct servent *result, char *buffer, int buflen) argument
|
H A D | getservent_r.c | 80 getservent_r(struct servent *result, char *buffer, int buflen) argument 85 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2servent);
|
/osnet-11/usr/src/lib/libnsl/nss/ |
H A D | getipnodeby_door.c | 43 _door_getipnodebyname_r(const char *name, struct hostent *result, char *buffer, argument 47 result, buffer, buflen, af_family, flags, h_errnop)); 52 struct hostent *result, char *buffer, int buflen, int *h_errnop) 55 length, type, result, buffer, buflen, h_errnop)); 51 _door_getipnodebyaddr_r(const char *addr, int length, int type, struct hostent *result, char *buffer, int buflen, int *h_errnop) argument
|
H A D | gethostbyname_r.c | 69 _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 D | gethostent6.c | 57 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 D | gethostent_r.c | 52 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 D | mappath.c | 63 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/krb5/ss/ |
H A D | help.c | 28 char buffer[MAXPATHLEN]; local 46 snprintf(buffer, sizeof(buffer), 49 ss_perror(sci_idx, 0, buffer); 62 (void) strncpy(buffer, info->info_dirs[idx], sizeof(buffer) - 1); 63 buffer[sizeof(buffer) - 1] = '\0'; 64 (void) strncat(buffer, "/", sizeof(buffer) [all...] |
H A D | list_rqs.c | 46 char buffer[BUFSIZ]; local 101 buffer[0] = '\0'; 104 buffer[sizeof(buffer) - 1] = '\0'; 107 strncat(buffer, *name, sizeof(buffer) - 1 - strlen(buffer)); 110 strncat(buffer, ", ", sizeof(buffer) - 1 - strlen(buffer)); [all...] |
/osnet-11/usr/src/lib/pkcs11/pkcs11_tpm/common/ |
H A D | log.c | 344 char buffer[4096*4]; local 350 (void) vsnprintf(buffer, sizeof (buffer), fmt, pvar); 353 syslog(LOG_DEBUG, buffer); 363 char buffer[4096*4]; local 369 (void) vsnprintf(buffer, sizeof (buffer), fmt, pvar); 372 syslog(LOG_DEBUG, buffer);
|
/osnet-11/usr/src/lib/libproc/common/ |
H A D | proc_stdio.c | 109 char buffer[8192]; local 115 rlen = (len > sizeof (buffer)) ? sizeof (buffer) : len; 116 alen = read(fileno(in), buffer, rlen); 118 if (write(out, buffer, alen) < alen)
|
/osnet-11/usr/src/lib/efcode/packages/ |
H A D | parse.c | 94 char *buffer, *line, *target, *next; local 103 buffer = MALLOC(PARSE_LINE+1); 105 while ((line = fgets(buffer, PARSE_LINE, fd)) != NULL) { 133 FREE(buffer);
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/ccache/ |
H A D | ser_cc.c | 98 krb5_ccache_externalize(krb5_context kcontext, krb5_pointer arg, krb5_octet **buffer, size_t *lenremain) 109 bp = *buffer; 140 *buffer = bp; 154 krb5_ccache_internalize(krb5_context kcontext, krb5_pointer *argp, krb5_octet **buffer, size_t *lenremain) 165 bp = *buffer; 206 *buffer = bp; 96 krb5_ccache_externalize(krb5_context kcontext, krb5_pointer arg, krb5_octet **buffer, size_t *lenremain) argument 151 krb5_ccache_internalize(krb5_context kcontext, krb5_pointer *argp, krb5_octet **buffer, size_t *lenremain) argument
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/rcache/ |
H A D | ser_rc.c | 101 krb5_rcache_externalize(krb5_context kcontext, krb5_pointer arg, krb5_octet **buffer, size_t *lenremain) 112 bp = *buffer; 143 *buffer = bp; 157 krb5_rcache_internalize(krb5_context kcontext, krb5_pointer *argp, krb5_octet **buffer, size_t *lenremain) 166 bp = *buffer; 203 *buffer = bp; 99 krb5_rcache_externalize(krb5_context kcontext, krb5_pointer arg, krb5_octet **buffer, size_t *lenremain) argument 154 krb5_rcache_internalize(krb5_context kcontext, krb5_pointer *argp, krb5_octet **buffer, size_t *lenremain) argument
|