williamr@2
|
1 |
#ifndef __ESTLIB_H__
|
williamr@2
|
2 |
#define __ESTLIB_H__
|
williamr@2
|
3 |
|
williamr@2
|
4 |
// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
5 |
// All rights reserved.
|
williamr@2
|
6 |
// This component and the accompanying materials are made available
|
williamr@2
|
7 |
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
8 |
// which accompanies this distribution, and is available
|
williamr@2
|
9 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Initial Contributors:
|
williamr@2
|
12 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
13 |
//
|
williamr@2
|
14 |
// Contributors:
|
williamr@2
|
15 |
//
|
williamr@2
|
16 |
// Description:
|
williamr@2
|
17 |
// ESTLIB control for multi-thread and multi-process operation
|
williamr@2
|
18 |
//
|
williamr@2
|
19 |
//
|
williamr@2
|
20 |
|
williamr@2
|
21 |
|
williamr@2
|
22 |
|
williamr@2
|
23 |
/**
|
williamr@2
|
24 |
@file
|
williamr@2
|
25 |
@internalComponent
|
williamr@2
|
26 |
*/
|
williamr@2
|
27 |
|
williamr@2
|
28 |
#include <e32base.h>
|
williamr@2
|
29 |
#include <stddef.h>
|
williamr@2
|
30 |
|
williamr@2
|
31 |
IMPORT_C void PosixServerName(TDes& aBuffer);
|
williamr@2
|
32 |
|
williamr@2
|
33 |
/**
|
williamr@2
|
34 |
Support for multi-thread operation is achieved using a CPosixServer
|
williamr@2
|
35 |
active object - this can be installed in an active scheduler in the current thread,
|
williamr@2
|
36 |
or run in a separate thread.
|
williamr@2
|
37 |
*/
|
williamr@2
|
38 |
|
williamr@2
|
39 |
IMPORT_C TInt InstallPosixServerActiveObject (TInt aPriority=CActive::EPriorityStandard);
|
williamr@2
|
40 |
IMPORT_C TInt SpawnPosixServerThread();
|
williamr@2
|
41 |
|
williamr@2
|
42 |
/**
|
williamr@2
|
43 |
Support for asynchronous ioctl
|
williamr@2
|
44 |
There are no guarantees about when the parameters will be processed - some implementations may
|
williamr@2
|
45 |
process the parameters in both the ioctl() and the ioctl_complete() functions.
|
williamr@2
|
46 |
Do not wait on the TRequestStatus unless ioctl() returns 0.
|
williamr@2
|
47 |
*/
|
williamr@2
|
48 |
IMPORT_C int ioctl (int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
|
williamr@2
|
49 |
IMPORT_C int ioctl_complete (int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
|
williamr@2
|
50 |
IMPORT_C int ioctl_cancel (int aFid);
|
williamr@2
|
51 |
IMPORT_C int _ioctl_r (struct _reent *r, int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
|
williamr@2
|
52 |
IMPORT_C int _ioctl_complete_r (struct _reent *r, int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
|
williamr@2
|
53 |
IMPORT_C int _ioctl_cancel_r (struct _reent *r, int aFid);
|
williamr@2
|
54 |
|
williamr@2
|
55 |
/**
|
williamr@2
|
56 |
Support for crt0 variants
|
williamr@2
|
57 |
Do whatever is necessary to get the command line arguments, environment etc.
|
williamr@2
|
58 |
NB. This calls chdir(), so start the PosixServer before calling this if you want one.
|
williamr@2
|
59 |
*/
|
williamr@2
|
60 |
IMPORT_C void __crt0(int& argc, char**& argv, char**& envp);
|
williamr@2
|
61 |
IMPORT_C void __crt0(int& argc, wchar_t**& argv, wchar_t**& envp);
|
williamr@2
|
62 |
|
williamr@2
|
63 |
#endif
|