os/ossrv/genericopenlibs/openenvcore/backend/inc/sysusrinclude.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     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".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 * Name        : sysusrinclude.h
    16 * Part of     : libc-sys specific include file
    17 * Version     : 1.0
    18 *
    19 */
    20 
    21 
    22 
    23 
    24 #ifndef	_SYSUSRINCLUDE_H_
    25 #define	_SYSUSRINCLUDE_H_
    26 #include <sys/types.h>
    27 #include <netdb.h>
    28 
    29 /*
    30   Declaration of Handle functions for each Module 
    31  */
    32 #ifdef __cplusplus
    33 extern "C"  {
    34 #endif
    35  
    36 pid_t _getpid();
    37 int _issetugid();
    38 int _gethostname (char *name, size_t size);
    39 
    40 
    41 // process group/user ID related API
    42 
    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);
    63 int _yield(void);
    64 
    65  #ifdef __cplusplus
    66  }
    67  #endif	//__cplusplus
    68 
    69 
    70 #endif /* !_SYS_USR_INCLUDE_H_ */
    71