1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/epoc32/include/estlib.h Tue Mar 16 16:12:26 2010 +0000
1.3 @@ -0,0 +1,63 @@
1.4 +#ifndef __ESTLIB_H__
1.5 +#define __ESTLIB_H__
1.6 +
1.7 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
1.8 +// All rights reserved.
1.9 +// This component and the accompanying materials are made available
1.10 +// 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
1.11 +// which accompanies this distribution, and is available
1.12 +// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
1.13 +//
1.14 +// Initial Contributors:
1.15 +// Nokia Corporation - initial contribution.
1.16 +//
1.17 +// Contributors:
1.18 +//
1.19 +// Description:
1.20 +// ESTLIB control for multi-thread and multi-process operation
1.21 +//
1.22 +//
1.23 +
1.24 +
1.25 +
1.26 +/**
1.27 + @file
1.28 + @internalComponent
1.29 +*/
1.30 +
1.31 +#include <e32base.h>
1.32 +#include <stddef.h>
1.33 +
1.34 +IMPORT_C void PosixServerName(TDes& aBuffer);
1.35 +
1.36 +/**
1.37 +Support for multi-thread operation is achieved using a CPosixServer
1.38 +active object - this can be installed in an active scheduler in the current thread,
1.39 +or run in a separate thread.
1.40 +*/
1.41 +
1.42 +IMPORT_C TInt InstallPosixServerActiveObject (TInt aPriority=CActive::EPriorityStandard);
1.43 +IMPORT_C TInt SpawnPosixServerThread();
1.44 +
1.45 +/**
1.46 +Support for asynchronous ioctl
1.47 +There are no guarantees about when the parameters will be processed - some implementations may
1.48 +process the parameters in both the ioctl() and the ioctl_complete() functions.
1.49 +Do not wait on the TRequestStatus unless ioctl() returns 0.
1.50 +*/
1.51 +IMPORT_C int ioctl (int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
1.52 +IMPORT_C int ioctl_complete (int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
1.53 +IMPORT_C int ioctl_cancel (int aFid);
1.54 +IMPORT_C int _ioctl_r (struct _reent *r, int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
1.55 +IMPORT_C int _ioctl_complete_r (struct _reent *r, int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
1.56 +IMPORT_C int _ioctl_cancel_r (struct _reent *r, int aFid);
1.57 +
1.58 +/**
1.59 +Support for crt0 variants
1.60 +Do whatever is necessary to get the command line arguments, environment etc.
1.61 +NB. This calls chdir(), so start the PosixServer before calling this if you want one.
1.62 +*/
1.63 +IMPORT_C void __crt0(int& argc, char**& argv, char**& envp);
1.64 +IMPORT_C void __crt0(int& argc, wchar_t**& argv, wchar_t**& envp);
1.65 +
1.66 +#endif