Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
15 * Name : sysusrinclude.h
16 * Part of : libc-sys specific include file
24 #ifndef _SYSUSRINCLUDE_H_
25 #define _SYSUSRINCLUDE_H_
26 #include <sys/types.h>
30 Declaration of Handle functions for each Module
38 int _gethostname (char *name, size_t size);
41 // process group/user ID related API
43 IMPORT_C gid_t _getgid( void );
44 IMPORT_C int _setgid( gid_t gid );
45 IMPORT_C gid_t _getegid( void );
46 IMPORT_C int _setegid( gid_t gid );
47 IMPORT_C int _setregid( gid_t rgid, gid_t egid );
48 IMPORT_C uid_t _getuid( void );
49 IMPORT_C int _setuid( uid_t uid );
50 IMPORT_C uid_t _geteuid( void );
51 IMPORT_C int _seteuid( uid_t uid );
52 IMPORT_C int _setreuid( uid_t ruid, uid_t euid );
53 IMPORT_C pid_t _getpgid( pid_t pid );
54 IMPORT_C pid_t _setpgid( pid_t pid, pid_t pgid );
55 IMPORT_C pid_t _getpgrp( void );
56 IMPORT_C int _setpgrp( pid_t _pid, pid_t _pgrp );
57 IMPORT_C int _getgroups( int gidsetsize, gid_t grouplist[] );
58 IMPORT_C pid_t _setsid( void );
59 IMPORT_C pid_t _getppid( void );
60 IMPORT_C mode_t _umask(mode_t cmask);
61 IMPORT_C int _chown(const char *path, uid_t owner, gid_t group);
62 IMPORT_C int _lchown(const char *path, uid_t owner, gid_t group);
70 #endif /* !_SYS_USR_INCLUDE_H_ */