1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/ossrv/genericopenlibs/cstdlib/INC/ESTLIB.H Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,62 @@
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 "Eclipse Public License v1.0"
1.11 +// which accompanies this distribution, and is available
1.12 +// at the URL "http://www.eclipse.org/legal/epl-v10.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 + @file
1.26 + @internalComponent
1.27 +*/
1.28 +
1.29 +#include <e32base.h>
1.30 +#include <stddef.h>
1.31 +
1.32 +IMPORT_C void PosixServerName(TDes& aBuffer);
1.33 +
1.34 +/**
1.35 +Support for multi-thread operation is achieved using a CPosixServer
1.36 +active object - this can be installed in an active scheduler in the current thread,
1.37 +or run in a separate thread.
1.38 +*/
1.39 +
1.40 +IMPORT_C TInt InstallPosixServerActiveObject (TInt aPriority=CActive::EPriorityStandard);
1.41 +IMPORT_C TInt SpawnPosixServerThread();
1.42 +
1.43 +/**
1.44 +Support for asynchronous ioctl
1.45 +There are no guarantees about when the parameters will be processed - some implementations may
1.46 +process the parameters in both the ioctl() and the ioctl_complete() functions.
1.47 +Do not wait on the TRequestStatus unless ioctl() returns 0.
1.48 +*/
1.49 +IMPORT_C int ioctl (int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
1.50 +IMPORT_C int ioctl_complete (int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
1.51 +IMPORT_C int ioctl_cancel (int aFid);
1.52 +IMPORT_C int _ioctl_r (struct _reent *r, int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
1.53 +IMPORT_C int _ioctl_complete_r (struct _reent *r, int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
1.54 +IMPORT_C int _ioctl_cancel_r (struct _reent *r, int aFid);
1.55 +
1.56 +/**
1.57 +Support for crt0 variants
1.58 +Do whatever is necessary to get the command line arguments, environment etc.
1.59 +NB. This calls chdir(), so start the PosixServer before calling this if you want one.
1.60 +*/
1.61 +IMPORT_C void __crt0(int& argc, char**& argv, char**& envp);
1.62 +IMPORT_C void __crt0(int& argc, wchar_t**& argv, wchar_t**& envp);
1.63 +
1.64 +
1.65 +#endif