summaryrefslogtreecommitdiff
path: root/src/passwd.h
blob: 475ee104ce2f34bfc7d411810792254253ac3ad6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 * Copyright (C) 2013-2014 Intel Corporation.
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Library General Public
 * License as published by the Free Software Foundation; either
 * version 2 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Library General Public License for more details.
 *
 * You should have received a copy of the GNU Library General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 *
 * Authors:
 *	 José Bollo <jose.bollo@open.eurogiciel.org>
 *	 Stéphane Desneux <stephane.desneux@open.eurogiciel.org>
 *	 Jean-Benoit Martin <jean-benoit.martin@open.eurogiciel.org>
 *
 */
#ifndef TIZEN_PLATFORM_WRAPPER_PASSWD_H
#define TIZEN_PLATFORM_WRAPPER_PASSWD_H

struct pwget {
	int set;
	const char *id;
	size_t user;
	size_t home;
};

int pw_get(struct heap *heap, struct pwget **items);
int pw_get_uid(const char *name, uid_t *uid);
int pw_get_gid(const char *name, gid_t *gid);
int pw_has_uid(uid_t uid);

#endif