Lines Matching defs:buffer
75 * Provide a password buffer size fallback in case the max size reported
85 ErrMsg *err; /* The error message report buffer */
86 char *buffer; /* A buffer for reading password entries and */
88 int buflen; /* The allocated size of buffer[] */
120 home->buffer = NULL;
129 * Allocate the buffer that is used by the reentrant POSIX password-entry
134 * Get the length of the buffer needed by the reentrant version
150 * If the existing buffer length requirement is too restrictive to record
157 * Allocate a work buffer.
159 home->buffer = (char *) malloc(home->buflen);
160 if(!home->buffer) {
179 if(home->buffer)
180 free(home->buffer);
261 status = getpwuid_r(geteuid(), &home->pwd, home->buffer, home->buflen,
264 status = getpwnam_r(user, &home->pwd, home->buffer, home->buflen, &ret);
364 char buffer[512]; /* The buffer in which the string members of */
369 if(!waserr && getpwnam_r(prefix, &pwd_buffer, buffer, sizeof(buffer),
377 if(!waserr && getpwuid_r(getuid(), &pwd_buffer, buffer, sizeof(buffer),
401 while((pwd = getpwent_r(&pwd_buffer, home->buffer, home->buflen)) != NULL && !waserr) {
444 * return const char * A pointer to either home->buffer, where the
453 char *cwd = getcwd(home->buffer, home->buflen);