sl@0: /* sl@0: * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: * All rights reserved. sl@0: * This component and the accompanying materials are made available sl@0: * under the terms of "Eclipse Public License v1.0" sl@0: * which accompanies this distribution, and is available sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: * sl@0: * Initial Contributors: sl@0: * Nokia Corporation - initial contribution. sl@0: * sl@0: * Contributors: sl@0: * sl@0: * Description: sl@0: * Name : sysusrinclude.h sl@0: * Part of : libc-sys specific include file sl@0: * Version : 1.0 sl@0: * sl@0: */ sl@0: sl@0: sl@0: sl@0: sl@0: #ifndef _SYSUSRINCLUDE_H_ sl@0: #define _SYSUSRINCLUDE_H_ sl@0: #include sl@0: #include sl@0: sl@0: /* sl@0: Declaration of Handle functions for each Module sl@0: */ sl@0: #ifdef __cplusplus sl@0: extern "C" { sl@0: #endif sl@0: sl@0: pid_t _getpid(); sl@0: int _issetugid(); sl@0: int _gethostname (char *name, size_t size); sl@0: sl@0: sl@0: // process group/user ID related API sl@0: sl@0: IMPORT_C gid_t _getgid( void ); sl@0: IMPORT_C int _setgid( gid_t gid ); sl@0: IMPORT_C gid_t _getegid( void ); sl@0: IMPORT_C int _setegid( gid_t gid ); sl@0: IMPORT_C int _setregid( gid_t rgid, gid_t egid ); sl@0: IMPORT_C uid_t _getuid( void ); sl@0: IMPORT_C int _setuid( uid_t uid ); sl@0: IMPORT_C uid_t _geteuid( void ); sl@0: IMPORT_C int _seteuid( uid_t uid ); sl@0: IMPORT_C int _setreuid( uid_t ruid, uid_t euid ); sl@0: IMPORT_C pid_t _getpgid( pid_t pid ); sl@0: IMPORT_C pid_t _setpgid( pid_t pid, pid_t pgid ); sl@0: IMPORT_C pid_t _getpgrp( void ); sl@0: IMPORT_C int _setpgrp( pid_t _pid, pid_t _pgrp ); sl@0: IMPORT_C int _getgroups( int gidsetsize, gid_t grouplist[] ); sl@0: IMPORT_C pid_t _setsid( void ); sl@0: IMPORT_C pid_t _getppid( void ); sl@0: IMPORT_C mode_t _umask(mode_t cmask); sl@0: IMPORT_C int _chown(const char *path, uid_t owner, gid_t group); sl@0: IMPORT_C int _lchown(const char *path, uid_t owner, gid_t group); sl@0: int _yield(void); sl@0: sl@0: #ifdef __cplusplus sl@0: } sl@0: #endif //__cplusplus sl@0: sl@0: sl@0: #endif /* !_SYS_USR_INCLUDE_H_ */ sl@0: