os/ossrv/genericopenlibs/openenvcore/backend/inc/sysusrinclude.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/ossrv/genericopenlibs/openenvcore/backend/inc/sysusrinclude.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,71 @@
     1.4 +/*
     1.5 +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.6 +* All rights reserved.
     1.7 +* This component and the accompanying materials are made available
     1.8 +* under the terms of "Eclipse Public License v1.0"
     1.9 +* which accompanies this distribution, and is available
    1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.11 +*
    1.12 +* Initial Contributors:
    1.13 +* Nokia Corporation - initial contribution.
    1.14 +*
    1.15 +* Contributors:
    1.16 +*
    1.17 +* Description:
    1.18 +* Name        : sysusrinclude.h
    1.19 +* Part of     : libc-sys specific include file
    1.20 +* Version     : 1.0
    1.21 +*
    1.22 +*/
    1.23 +
    1.24 +
    1.25 +
    1.26 +
    1.27 +#ifndef	_SYSUSRINCLUDE_H_
    1.28 +#define	_SYSUSRINCLUDE_H_
    1.29 +#include <sys/types.h>
    1.30 +#include <netdb.h>
    1.31 +
    1.32 +/*
    1.33 +  Declaration of Handle functions for each Module 
    1.34 + */
    1.35 +#ifdef __cplusplus
    1.36 +extern "C"  {
    1.37 +#endif
    1.38 + 
    1.39 +pid_t _getpid();
    1.40 +int _issetugid();
    1.41 +int _gethostname (char *name, size_t size);
    1.42 +
    1.43 +
    1.44 +// process group/user ID related API
    1.45 +
    1.46 +IMPORT_C gid_t _getgid( void );
    1.47 +IMPORT_C int _setgid( gid_t gid );
    1.48 +IMPORT_C gid_t _getegid( void );
    1.49 +IMPORT_C int _setegid( gid_t gid );
    1.50 +IMPORT_C int _setregid( gid_t rgid, gid_t egid );
    1.51 +IMPORT_C uid_t _getuid( void );
    1.52 +IMPORT_C int _setuid( uid_t uid );
    1.53 +IMPORT_C uid_t _geteuid( void );
    1.54 +IMPORT_C int _seteuid( uid_t uid );
    1.55 +IMPORT_C int _setreuid( uid_t ruid, uid_t euid );
    1.56 +IMPORT_C pid_t _getpgid( pid_t pid );
    1.57 +IMPORT_C pid_t _setpgid( pid_t pid, pid_t pgid );
    1.58 +IMPORT_C pid_t _getpgrp( void );
    1.59 +IMPORT_C int _setpgrp( pid_t _pid, pid_t _pgrp );
    1.60 +IMPORT_C int _getgroups( int gidsetsize, gid_t grouplist[] );
    1.61 +IMPORT_C pid_t _setsid( void );
    1.62 +IMPORT_C pid_t _getppid( void );
    1.63 +IMPORT_C mode_t _umask(mode_t cmask);
    1.64 +IMPORT_C int _chown(const char *path, uid_t owner, gid_t group);
    1.65 +IMPORT_C int _lchown(const char *path, uid_t owner, gid_t group);
    1.66 +int _yield(void);
    1.67 +
    1.68 + #ifdef __cplusplus
    1.69 + }
    1.70 + #endif	//__cplusplus
    1.71 +
    1.72 +
    1.73 +#endif /* !_SYS_USR_INCLUDE_H_ */
    1.74 +