sl@0
|
1 |
/*
|
sl@0
|
2 |
* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
* All rights reserved.
|
sl@0
|
4 |
* This component and the accompanying materials are made available
|
sl@0
|
5 |
* under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
* which accompanies this distribution, and is available
|
sl@0
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
*
|
sl@0
|
9 |
* Initial Contributors:
|
sl@0
|
10 |
* Nokia Corporation - initial contribution.
|
sl@0
|
11 |
*
|
sl@0
|
12 |
* Contributors:
|
sl@0
|
13 |
*
|
sl@0
|
14 |
* Description:
|
sl@0
|
15 |
* Name : sysusrinclude.h
|
sl@0
|
16 |
* Part of : libc-sys specific include file
|
sl@0
|
17 |
* Version : 1.0
|
sl@0
|
18 |
*
|
sl@0
|
19 |
*/
|
sl@0
|
20 |
|
sl@0
|
21 |
|
sl@0
|
22 |
|
sl@0
|
23 |
|
sl@0
|
24 |
#ifndef _SYSUSRINCLUDE_H_
|
sl@0
|
25 |
#define _SYSUSRINCLUDE_H_
|
sl@0
|
26 |
#include <sys/types.h>
|
sl@0
|
27 |
#include <netdb.h>
|
sl@0
|
28 |
|
sl@0
|
29 |
/*
|
sl@0
|
30 |
Declaration of Handle functions for each Module
|
sl@0
|
31 |
*/
|
sl@0
|
32 |
#ifdef __cplusplus
|
sl@0
|
33 |
extern "C" {
|
sl@0
|
34 |
#endif
|
sl@0
|
35 |
|
sl@0
|
36 |
pid_t _getpid();
|
sl@0
|
37 |
int _issetugid();
|
sl@0
|
38 |
int _gethostname (char *name, size_t size);
|
sl@0
|
39 |
|
sl@0
|
40 |
|
sl@0
|
41 |
// process group/user ID related API
|
sl@0
|
42 |
|
sl@0
|
43 |
IMPORT_C gid_t _getgid( void );
|
sl@0
|
44 |
IMPORT_C int _setgid( gid_t gid );
|
sl@0
|
45 |
IMPORT_C gid_t _getegid( void );
|
sl@0
|
46 |
IMPORT_C int _setegid( gid_t gid );
|
sl@0
|
47 |
IMPORT_C int _setregid( gid_t rgid, gid_t egid );
|
sl@0
|
48 |
IMPORT_C uid_t _getuid( void );
|
sl@0
|
49 |
IMPORT_C int _setuid( uid_t uid );
|
sl@0
|
50 |
IMPORT_C uid_t _geteuid( void );
|
sl@0
|
51 |
IMPORT_C int _seteuid( uid_t uid );
|
sl@0
|
52 |
IMPORT_C int _setreuid( uid_t ruid, uid_t euid );
|
sl@0
|
53 |
IMPORT_C pid_t _getpgid( pid_t pid );
|
sl@0
|
54 |
IMPORT_C pid_t _setpgid( pid_t pid, pid_t pgid );
|
sl@0
|
55 |
IMPORT_C pid_t _getpgrp( void );
|
sl@0
|
56 |
IMPORT_C int _setpgrp( pid_t _pid, pid_t _pgrp );
|
sl@0
|
57 |
IMPORT_C int _getgroups( int gidsetsize, gid_t grouplist[] );
|
sl@0
|
58 |
IMPORT_C pid_t _setsid( void );
|
sl@0
|
59 |
IMPORT_C pid_t _getppid( void );
|
sl@0
|
60 |
IMPORT_C mode_t _umask(mode_t cmask);
|
sl@0
|
61 |
IMPORT_C int _chown(const char *path, uid_t owner, gid_t group);
|
sl@0
|
62 |
IMPORT_C int _lchown(const char *path, uid_t owner, gid_t group);
|
sl@0
|
63 |
int _yield(void);
|
sl@0
|
64 |
|
sl@0
|
65 |
#ifdef __cplusplus
|
sl@0
|
66 |
}
|
sl@0
|
67 |
#endif //__cplusplus
|
sl@0
|
68 |
|
sl@0
|
69 |
|
sl@0
|
70 |
#endif /* !_SYS_USR_INCLUDE_H_ */
|
sl@0
|
71 |
|