os/ossrv/genericopenlibs/openenvcore/libc/inc/estlib.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     1 // Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 // 
    15 //
    16 
    17 
    18 
    19 #ifndef __ESTLIB_H__
    20 #define __ESTLIB_H__
    21 
    22 #include <e32base.h>
    23 #include <stddef.h>
    24 
    25 /*
    26 Support for asynchronous ioctl
    27 There are no guarantees about when the parameters will be processed - some implementations may
    28 process the parameters in both the ioctl() and the ioctl_complete() functions.
    29 Do not wait on the TRequestStatus unless ioctl() returns 0. 
    30 */
    31 int ioctl (int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
    32 int ioctl_complete (int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
    33 int ioctl_cancel (int aFid);
    34 int _ioctl_r (struct _reent *r, int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
    35 int _ioctl_complete_r (struct _reent *r, int aFid, int aCmd, void* aParam, TRequestStatus& aStatus);
    36 int _ioctl_cancel_r (struct _reent *r, int aFid);
    37 
    38 /*
    39 Support for crt0 variants
    40 Do whatever is necessary to get the command line arguments, environment etc.
    41 NB. This calls chdir(), so start the PosixServer before calling this if you want one.
    42 */
    43 IMPORT_C void __crt0(int& argc, char**& argv, char**& envp);
    44 IMPORT_C void __crt0(int& argc, wchar_t**& argv, wchar_t**& envp);
    45 
    46 #endif /* __ESTLIB_H__ */