prism2.device: fix strict aliasing issue detected with gcc 4.8.3
[AROS.git] / compiler / posixc / __usergrp.c
blob1428fcc6cb7b758522e1e841bf5b7e5831adfb9d
1 /*
2 Copyright © 2016, 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 USER_UID 1000
17 #define USER_GID 1000
18 #define USER_NAME "aros"
19 #define USER_SHELL "sh"
20 #define USER_DIR "/home"
22 void __fill_passwd(struct passwd *pwd)
24 pwd->pw_name = USER_NAME;
25 pwd->pw_uid = USER_UID;
26 pwd->pw_gid = USER_GID;
27 pwd->pw_dir = USER_DIR;
28 pwd->pw_shell = USER_SHELL;
29 pwd->pw_passwd = USER_NAME;
30 pwd->pw_gecos = USER_NAME;
33 int __init_usergrp(struct PosixCIntBase *PosixCIntBase)
35 PosixCIntBase->uid = USER_UID;
36 PosixCIntBase->euid = USER_UID;
38 return 1;
41 ADD2OPENLIB(__init_usergrp, 5);