Lines Matching defs:buffer
83 _getprojent(struct project *result, void *buffer, size_t buflen)
87 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2project);
93 _fgetprojent(FILE *f, struct project *result, void *buffer, size_t buflen)
98 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2project);
105 void *buffer, size_t buflen)
109 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2project);
118 void *buffer, size_t buflen)
121 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2project);
198 void *buffer, size_t buflen)
207 NSS_XbyY_INIT(&arg, result, buffer, buflen, str2project);
212 if (getpwnam_r(user, &p, buffer, buflen) == NULL)
241 if (getgrgid_r(p.pw_gid, &g, buffer, buflen) != NULL) {
260 _inproj(const char *user, const char *name, void *buffer, size_t buflen)
272 NSS_XbyY_INIT(&arg, &proj, buffer, buflen, str2project);
277 if (getpwnam_r(user, &pwd, buffer, buflen) == NULL)
280 if (getprojbyname(name, &proj, buffer, buflen) == NULL)
336 * need to allocate the buffer.
374 * wherein the field pointers would be set to areas in the buffer if
375 * need be. instring and buffer should be separate areas.
378 str2project(const char *instr, int lenstr, void *ent, char *buffer, int buflen)
389 * We copy the input string into the output buffer and
392 (void) memcpy(buffer, instr, lenstr);
393 buffer[lenstr] = '\0';
394 next = buffer;
396 limit = (char **)ROUND_DOWN(buffer + buflen, sizeof (char *));
459 uglist = (char **)ROUND_UP(buffer + lenstr + 1, sizeof (char *));