Lines Matching defs:prefix
317 * prefix const char * Only information for usernames that
318 * start with this prefix will be
330 int _hd_scan_user_home_dirs(HomeDir *home, const char *prefix,
334 int prefix_len; /* The length of prefix[] */
338 if(!home || !prefix || !callback_fn) {
347 * Get the length of the username prefix.
349 prefix_len = strlen(prefix);
367 * See if the prefix that is being completed is a complete username.
369 if(!waserr && getpwnam_r(prefix, &pwd_buffer, buffer, sizeof(buffer),
375 * See if the username of the current user minimally matches the prefix.
379 strncmp(prefix, pwd->pw_name, prefix_len)==0) {
397 * that start with the specified prefix, and adding them to the
405 if(strncmp(prefix, pwd->pw_name, prefix_len) == 0) {
419 if(!waserr && strncmp(prefix, "+", prefix_len) == 0) {