forwarding a patch that uses the fetch macros to pull in acpica and build it (NicJA).
[AROS.git] / compiler / posixc / __usergrp.c
blob9ffd7183292e47268784a702b3e546b30bcada6c
1 /*
2 Copyright © 2016-2017, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: single user defintion for POSIX user/groups
6 Lang: English
7 */
9 #include "__posixc_intbase.h"
11 #include <exec/types.h>
12 #include <aros/symbolsets.h>
14 #include "__usergrp.h"
16 #define DEF_USER_UID 1000
17 #define DEF_USER_GID 1000
18 #define DEF_USER_NAME "aros"
19 #define DEF_USER_SHELL "sh"
20 #define DEF_USER_DIR "/home"
22 void __fill_passwd(struct passwd *pwd, uid_t uid)
24 /* we only support the hard coded default user atm */
25 pwd->pw_name = DEF_USER_NAME;
26 pwd->pw_uid = DEF_USER_UID;
27 pwd->pw_gid = DEF_USER_GID;
28 pwd->pw_dir = DEF_USER_DIR;
29 pwd->pw_shell = DEF_USER_SHELL;
30 pwd->pw_passwd = DEF_USER_NAME;
31 pwd->pw_gecos = DEF_USER_NAME;
34 int __init_usergrp(struct PosixCIntBase *PosixCIntBase)
36 PosixCIntBase->uid = DEF_USER_UID;
37 PosixCIntBase->euid = DEF_USER_UID;
38 PosixCIntBase->gid = DEF_USER_GID;
39 PosixCIntBase->egid = DEF_USER_GID;
41 return 1;
44 ADD2OPENLIB(__init_usergrp, 5);