Lines Matching defs:buffer
80 _getprojent(struct project *result, void *buffer, size_t buflen)
84 NSS_XbyY_INIT(&arg, result, buffer, buflen, _str2project);
90 _fgetprojent(FILE *f, struct project *result, void *buffer, size_t buflen)
95 NSS_XbyY_INIT(&arg, result, buffer, buflen, _str2project);
102 void *buffer, size_t buflen)
106 NSS_XbyY_INIT(&arg, result, buffer, buflen, _str2project);
115 void *buffer, size_t buflen)
118 NSS_XbyY_INIT(&arg, result, buffer, buflen, _str2project);
195 void *buffer, size_t buflen)
204 NSS_XbyY_INIT(&arg, result, buffer, buflen, _str2project);
209 if (getpwnam_r(user, &p, buffer, buflen) == NULL)
238 if (getgrgid_r(p.pw_gid, &g, buffer, buflen) != NULL) {
257 _inproj(const char *user, const char *name, void *buffer, size_t buflen)
269 NSS_XbyY_INIT(&arg, &proj, buffer, buflen, _str2project);
274 if (getpwnam_r(user, &pwd, buffer, buflen) == NULL)
277 if (getprojbyname(name, &proj, buffer, buflen) == NULL)
333 * need to allocate the buffer.
371 * wherein the field pointers would be set to areas in the buffer if
372 * need be. instring and buffer should be separate areas.
375 _str2project(const char *instr, int lenstr, void *ent, char *buffer, int buflen)
386 * We copy the input string into the output buffer and
389 (void) memcpy(buffer, instr, lenstr);
390 buffer[lenstr] = '\0';
391 next = buffer;
393 limit = (char **)ROUND_DOWN(buffer + buflen, sizeof (char *));
456 uglist = (char **)ROUND_UP(buffer + lenstr + 1, sizeof (char *));