Changeset 3926
- Timestamp:
- Oct 26, 2014, 2:40:43 AM (11 years ago)
- Files:
-
- 2 edited
- 2 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/libc-0.6/src/emx/include/os2safe.h
r3907 r3926 38 38 #define DosSetFilePtrL SafeDosSetFilePtrL 39 39 #define DosDupHandle SafeDosDupHandle 40 #define DosOpen SafeDosOpen 40 41 #define DosOpenL SafeDosOpenL 41 42 #define DosQueryFHState SafeDosQueryFHState -
branches/libc-0.6/src/emx/src/libos2/safe/SafeDosOpen.c
r3898 r3926 1 1 /* $Id$ */ 2 2 /** @file 3 * kLibC - Safe SafeDosOpen(). 3 4 * 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. 23 7 */ 24 8 9 10 /******************************************************************************* 11 * Header Files * 12 *******************************************************************************/ 25 13 #define INCL_BASE 26 14 #include <os2.h> 27 15 #include "safe.h" 28 16 29 ULONG APIENTRY SafeDosOpen L(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,30 LONGLONG llFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,17 ULONG APIENTRY SafeDosOpen(PCSZ pszFileName, PHFILE phFile, PULONG pulAction, 18 ULONG ulFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode, 31 19 PEAOP2 pEABuf); 32 20 33 ULONG APIENTRY SafeDosOpen L(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,34 LONGLONG llFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,21 ULONG APIENTRY SafeDosOpen(PCSZ pszFileName, PHFILE phFile, PULONG pulAction, 22 ULONG ulFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode, 35 23 PEAOP2 pEABuf) 36 24 { … … 53 41 } 54 42 55 rc = DosOpen L(SAFE_PCSZ_USE(pszFileName), phf1, pul1, llFileSize, ulAttribute,56 43 rc = DosOpen(SAFE_PCSZ_USE(pszFileName), phf1, pul1, ulFileSize, ulAttribute, 44 ulOpenFlags, ulOpenMode, pEABuf); 57 45 58 46 if (phFile) -
trunk/libc/include/os2safe.h
r3908 r3926 38 38 #define DosSetFilePtrL SafeDosSetFilePtrL 39 39 #define DosDupHandle SafeDosDupHandle 40 #define DosOpen SafeDosOpen 40 41 #define DosOpenL SafeDosOpenL 41 42 #define DosQueryFHState SafeDosQueryFHState -
trunk/libc/src/libos2/safe/SafeDosOpen.c
r3898 r3926 1 1 /* $Id$ */ 2 2 /** @file 3 * kLibC - Safe SafeDosOpen(). 3 4 * 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. 23 7 */ 24 8 9 10 /******************************************************************************* 11 * Header Files * 12 *******************************************************************************/ 25 13 #define INCL_BASE 26 14 #include <os2.h> 27 15 #include "safe.h" 28 16 29 ULONG APIENTRY SafeDosOpen L(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,30 LONGLONG llFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,17 ULONG APIENTRY SafeDosOpen(PCSZ pszFileName, PHFILE phFile, PULONG pulAction, 18 ULONG ulFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode, 31 19 PEAOP2 pEABuf); 32 20 33 ULONG APIENTRY SafeDosOpen L(PCSZ pszFileName, PHFILE phFile, PULONG pulAction,34 LONGLONG llFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode,21 ULONG APIENTRY SafeDosOpen(PCSZ pszFileName, PHFILE phFile, PULONG pulAction, 22 ULONG ulFileSize, ULONG ulAttribute, ULONG ulOpenFlags, ULONG ulOpenMode, 35 23 PEAOP2 pEABuf) 36 24 { … … 53 41 } 54 42 55 rc = DosOpen L(SAFE_PCSZ_USE(pszFileName), phf1, pul1, llFileSize, ulAttribute,56 43 rc = DosOpen(SAFE_PCSZ_USE(pszFileName), phf1, pul1, ulFileSize, ulAttribute, 44 ulOpenFlags, ulOpenMode, pEABuf); 57 45 58 46 if (phFile)
Note:
See TracChangeset
for help on using the changeset viewer.