Changeset 3926


Ignore:
Timestamp:
Oct 26, 2014, 2:40:43 AM (11 years ago)
Author:
bird
Message:

trunk,0.6: Added SafeDosOpen.

Files:
2 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/emx/include/os2safe.h

    r3907 r3926  
    3838#define DosSetFilePtrL          SafeDosSetFilePtrL
    3939#define DosDupHandle            SafeDosDupHandle
     40#define DosOpen                 SafeDosOpen
    4041#define DosOpenL                SafeDosOpenL
    4142#define DosQueryFHState         SafeDosQueryFHState
  • branches/libc-0.6/src/emx/src/libos2/safe/SafeDosOpen.c

    r3898 r3926  
    11/* $Id$ */
    22/** @file
     3 * kLibC - Safe SafeDosOpen().
    34 *
    4  * SafeDosOpenL()
    5  *
    6  * Copyright (c) 2003 knut st. osmundsen <bird-srcspam@anduin.net>
    7  *
    8  *
    9  * This program is free software; you can redistribute it and/or modify
    10  * it under the terms of the GNU General Public License as published by
    11  * the Free Software Foundation; either version 2 of the License, or
    12  * (at your option) any later version.
    13  *
    14  * This program is distributed in the hope that it will be useful,
    15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    17  * GNU General Public License for more details.
    18  *
    19  * You should have received a copy of the GNU General Public License
    20  * along with This program; if not, write to the Free Software
    21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    22  *
     5 * @copyright   Copyright (C) 2003-2014 knut st. osmundsen <bird-klibc-spam-xiv@anduin.net>
     6 * @licenses    MIT, BSD2, BSD3, BSD4, LGPLv2.1, LGPLv3, LGPLvFuture.
    237 */
    248
     9
     10/*******************************************************************************
     11* Header Files                                                                 *
     12*******************************************************************************/
    2513#define INCL_BASE
    2614#include <os2.h>
    2715#include "safe.h"
    2816
    29 ULONG APIENTRY SafeDosOpenL(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,
    30     LONGLONG llFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,
     17ULONG APIENTRY SafeDosOpen(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,
     18    ULONG ulFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,
    3119    PEAOP2 pEABuf);
    3220
    33 ULONG APIENTRY SafeDosOpenL(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,
    34     LONGLONG llFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,
     21ULONG APIENTRY SafeDosOpen(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,
     22    ULONG ulFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,
    3523    PEAOP2 pEABuf)
    3624{
     
    5341    }
    5442
    55     rc = DosOpenL(SAFE_PCSZ_USE(pszFileName), phf1, pul1, llFileSize, ulAttribute,
    56                   ulOpenFlags, ulOpenMode, pEABuf);
     43    rc = DosOpen(SAFE_PCSZ_USE(pszFileName), phf1, pul1, ulFileSize, ulAttribute,
     44                 ulOpenFlags, ulOpenMode, pEABuf);
    5745
    5846    if (phFile)
  • trunk/libc/include/os2safe.h

    r3908 r3926  
    3838#define DosSetFilePtrL          SafeDosSetFilePtrL
    3939#define DosDupHandle            SafeDosDupHandle
     40#define DosOpen                 SafeDosOpen
    4041#define DosOpenL                SafeDosOpenL
    4142#define DosQueryFHState         SafeDosQueryFHState
  • trunk/libc/src/libos2/safe/SafeDosOpen.c

    r3898 r3926  
    11/* $Id$ */
    22/** @file
     3 * kLibC - Safe SafeDosOpen().
    34 *
    4  * SafeDosOpenL()
    5  *
    6  * Copyright (c) 2003 knut st. osmundsen <bird-srcspam@anduin.net>
    7  *
    8  *
    9  * This program is free software; you can redistribute it and/or modify
    10  * it under the terms of the GNU General Public License as published by
    11  * the Free Software Foundation; either version 2 of the License, or
    12  * (at your option) any later version.
    13  *
    14  * This program is distributed in the hope that it will be useful,
    15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
    16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    17  * GNU General Public License for more details.
    18  *
    19  * You should have received a copy of the GNU General Public License
    20  * along with This program; if not, write to the Free Software
    21  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    22  *
     5 * @copyright   Copyright (C) 2003-2014 knut st. osmundsen <bird-klibc-spam-xiv@anduin.net>
     6 * @licenses    MIT, BSD2, BSD3, BSD4, LGPLv2.1, LGPLv3, LGPLvFuture.
    237 */
    248
     9
     10/*******************************************************************************
     11* Header Files                                                                 *
     12*******************************************************************************/
    2513#define INCL_BASE
    2614#include <os2.h>
    2715#include "safe.h"
    2816
    29 ULONG APIENTRY SafeDosOpenL(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,
    30     LONGLONG llFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,
     17ULONG APIENTRY SafeDosOpen(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,
     18    ULONG ulFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,
    3119    PEAOP2 pEABuf);
    3220
    33 ULONG APIENTRY SafeDosOpenL(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,
    34     LONGLONG llFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,
     21ULONG APIENTRY SafeDosOpen(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,
     22    ULONG ulFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,
    3523    PEAOP2 pEABuf)
    3624{
     
    5341    }
    5442
    55     rc = DosOpenL(SAFE_PCSZ_USE(pszFileName), phf1, pul1, llFileSize, ulAttribute,
    56                   ulOpenFlags, ulOpenMode, pEABuf);
     43    rc = DosOpen(SAFE_PCSZ_USE(pszFileName), phf1, pul1, ulFileSize, ulAttribute,
     44                 ulOpenFlags, ulOpenMode, pEABuf);
    5745
    5846    if (phFile)
Note: See TracChangeset for help on using the changeset viewer.