File: pwdutils.h

package info (click to toggle)
util-linux 2.42~rc1-1
  • links: PTS, VCS
  • area: main
  • in suites:
  • size: 101,680 kB
  • sloc: ansic: 185,710; sh: 24,450; yacc: 1,288; makefile: 534; xml: 422; python: 316; lex: 89; ruby: 75; csh: 37; exp: 19; sed: 16; perl: 15; sql: 9
file content (20 lines) | stat: -rw-r--r-- 585 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/*
 * No copyright is claimed.  This code is in the public domain; do with
 * it what you wish.
 */
#ifndef UTIL_LINUX_PWDUTILS_H
#define UTIL_LINUX_PWDUTILS_H

#include <sys/types.h>
#include <pwd.h>
#include <grp.h>

extern struct passwd *xgetpwuid(uid_t uid, char **pwdbuf);
extern struct passwd *xgetuserpw(const char *str, char **pwdbuf);
extern struct group *xgetgroup(const char *str, char **pwdbuf);
extern char *xgetlogin(void);
extern struct group *ul_getgrp_str(const char *str);
extern struct passwd *ul_getuserpw_str(const char *str);

#endif /* UTIL_LINUX_PWDUTILS_H */