Changeset 2913
- Timestamp:
- Dec 27, 2006, 4:13:36 PM (19 years ago)
- Location:
- trunk/libc
- Files:
-
- 2 deleted
- 91 edited
- 1 copied
- 5 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/libc/include/InnoTekLIBC/os2error.h
r1505 r2913 1 /* $Id$ */ 2 /** @file 3 * 4 * LIBC DosError() Wrapping. 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 * 8 * 9 * This file is part of InnoTek LIBC. 10 * 11 * InnoTek LIBC is free software; you can redistribute it and/or modify 12 * it under the terms of the GNU General Public License as published by 13 * the Free Software Foundation; either version 2 of the License, or 14 * (at your option) any later version. 15 * 16 * InnoTek LIBC is distributed in the hope that it will be useful, 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 * GNU General Public License for more details. 20 * 21 * You should have received a copy of the GNU General Public License 22 * along with InnoTek LIBC; if not, write to the Free Software 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 * 25 */ 1 #include <klibc/os2/os2error.h> 26 2 27 #ifndef __InnoTekLIBC_os2error_h__28 #define __InnoTekLIBC_os2error_h__29 30 #include <sys/cdefs.h>31 32 __BEGIN_DECLS33 34 /**35 * Sets the error notifications.36 *37 * @returns See DosError().38 * @param fError DosError().39 */40 int __libc_OS2ErrorSet(ULONG fError);41 42 /**43 * Pushed (and sets) the error notifications setting.44 *45 * @returns See DosError().46 * @param pfPushVar Where to store the current value.47 * @param fError DosError().48 */49 int __libc_OS2ErrorPush(PULONG pfPushVar, ULONG fError);50 51 /**52 * Pop the error notifications setting.53 *54 * @returns See DosError().55 * @param fPopVar The value to pop.56 */57 int __libc_OS2ErrorPop(ULONG fPopVar);58 59 __END_DECLS60 61 #endif -
trunk/libc/include/klibc/backend.h
r2910 r2913 2 2 /** @file 3 3 * 4 * LIBC - Backend header.4 * kLIBC - Backend header. 5 5 * 6 6 * Copyright (c) 2004-2006 knut st. osmundsen <bird-srcspam@anduin.net> -
trunk/libc/include/klibc/os2/os2error.h
r2899 r2913 2 2 /** @file 3 3 * 4 * LIBC DosError() Wrapping.4 * kLIBC - DosError() Wrappers. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net>6 * Copyright (c) 2004-2005 knut st. osmundsen <bird-src-spam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU General Public License as published by 13 13 * the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * 25 25 */ 26 26 27 #ifndef __ InnoTekLIBC_os2error_h__28 #define __ InnoTekLIBC_os2error_h__27 #ifndef __klibc_os2_os2error_h__ 28 #define __klibc_os2_os2error_h__ 29 29 30 30 #include <sys/cdefs.h> … … 60 60 61 61 #endif 62 -
trunk/libc/src/kNIX/Makefile.kmk
r2910 r2913 34 34 libc_kNIX_TEMPLATE = libcsub 35 35 libc_kNIX_SOURCES = \ 36 $(PATH_LIBC_SRC)/kNIX/b_fsSymlinkRead.c \ 37 $(PATH_LIBC_SRC)/kNIX/b_fsSymlinkStat.c \ 38 $(PATH_LIBC_SRC)/kNIX/b_fsSymlinkTimesSet.c \ 36 39 $(PATH_LIBC_SRC)/kNIX/b_ioClose.c \ 40 $(PATH_LIBC_SRC)/kNIX/b_ioDirGetEntries.c \ 37 41 $(PATH_LIBC_SRC)/kNIX/b_ioFileSizeSet.c \ 42 $(PATH_LIBC_SRC)/kNIX/b_ioFHToPath.c \ 38 43 $(PATH_LIBC_SRC)/kNIX/b_ioRead.c \ 39 44 $(PATH_LIBC_SRC)/kNIX/b_ioSeek.c \ … … 79 84 $(PATH_LIBC_SRC)/kNIX/os2/b_fsSymlinkCreate.c \ 80 85 $(PATH_LIBC_SRC)/kNIX/os2/b_fsSymlinkModeSet.c \ 81 $(PATH_LIBC_SRC)/kNIX/os2/b_fsSymlinkRead.c \82 $(PATH_LIBC_SRC)/kNIX/os2/b_fsSymlinkStat.c \83 $(PATH_LIBC_SRC)/kNIX/os2/b_fsSymlinkTimesSet.c \84 86 $(PATH_LIBC_SRC)/kNIX/os2/b_fsSync.c \ 85 87 $(PATH_LIBC_SRC)/kNIX/os2/b_fsUnlink.c \ 86 $(PATH_LIBC_SRC)/kNIX/os2/b_ioDirGetEntries.c \87 $(PATH_LIBC_SRC)/kNIX/os2/b_ioFHToPath.c \88 88 $(PATH_LIBC_SRC)/kNIX/os2/b_ioFileControl.c \ 89 89 $(PATH_LIBC_SRC)/kNIX/os2/b_ioFileOpen.c \ -
trunk/libc/src/kNIX/b_fsSymlinkRead.c
r2899 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- readlink.4 * kNIX - readlink. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * 25 25 */ 26 26 27 28 29 /******************************************************************************* 30 * Header Files * 31 *******************************************************************************/ 32 #include "b_fs.h" 33 #include <string.h> 34 #include <errno.h> 35 #include <InnoTekLIBC/backend.h> 27 #include "kNIX.h" 36 28 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 37 #include <InnoTekLIBC/logstrict.h> 38 29 #include <klibc/logstrict.h> 39 30 40 31 /** -
trunk/libc/src/kNIX/b_fsSymlinkStat.c
r2899 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- lstat.4 * kNIX - lstat. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * 25 25 */ 26 26 27 28 /******************************************************************************* 29 * Header Files * 30 *******************************************************************************/ 31 #include "b_fs.h" 32 #include <sys/stat.h> 33 #include <InnoTekLIBC/backend.h> 27 #include "kNIX.h" 34 28 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 35 #include <InnoTekLIBC/logstrict.h> 36 29 #include <klibc/logstrict.h> 37 30 38 31 /** -
trunk/libc/src/kNIX/b_fsSymlinkTimesSet.c
r2899 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- lutimes().4 * kNIX - lutimes(). 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net>6 * Copyright (c) 2005-2006 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * 25 25 */ 26 26 27 /******************************************************************************* 28 * Header Files * 29 *******************************************************************************/ 30 #include "b_fs.h" 31 #include <sys/stat.h> 32 #include <InnoTekLIBC/backend.h> 27 #include "kNIX.h" 33 28 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 34 #include <InnoTekLIBC/logstrict.h> 35 29 #include <klibc/logstrict.h> 36 30 37 31 /** -
trunk/libc/src/kNIX/b_ioDirGetEntries.c
r2899 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- getdirentries().4 * kNIX - getdirentries(). 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2006 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU General Public License as published by 13 13 * the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * … … 29 29 * Header Files * 30 30 *******************************************************************************/ 31 #include "libc-alias.h" 32 #define INCL_BASE 33 #include <os2emx.h> 34 #include "b_fs.h" 35 #include "b_dir.h" 36 #include <errno.h> 37 #include <sys/dirent.h> 38 #include <InnoTekLIBC/backend.h> 31 #include "kNIX.h" 39 32 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_IO 40 #include < InnoTekLIBC/logstrict.h>33 #include <klibc/logstrict.h> 41 34 42 35 … … 69 62 LIBCLOG_ERROR_RETURN_INT(-EINVAL); 70 63 __LIBC_PFH pFH; 71 int rc = __libc_FH Ex(fh, &pFH);64 int rc = __libc_FHGet(fh, &pFH); 72 65 if (rc) 73 66 LIBCLOG_ERROR_RETURN_INT(rc); 74 if (!pFH->pOps || pFH->pOps->enmType != enmFH_Directory) 67 if ( !pFH->pOps 68 || pFH->pOps->enmType != enmFH_Directory) 69 { 70 __libc_FHPut(pFH); 75 71 LIBCLOG_ERROR_RETURN_INT(-ENOTDIR); /* BSD returns EINVAL */ 72 } 76 73 77 74 /* … … 81 78 off_t off = pFHDir->uCurEntry; 82 79 ssize_t cb = __libc_back_dirGetEntries(pFHDir, pvBuf, cbBuf); 80 __libc_FHPut(pFH); 83 81 if (cb >= 0) 84 82 { 85 83 if (poff) 86 84 *poff = off; 87 LIBCLOG_RETURN_MSG(cb, "ret %# x *poff=%#x\n", cb,off);85 LIBCLOG_RETURN_MSG(cb, "ret %#zx *poff=%#llx\n", cb, (long long)off); 88 86 } 89 87 LIBCLOG_ERROR_RETURN_INT(cb); -
trunk/libc/src/kNIX/b_ioFHToPath.c
r2899 r2913 2 2 /** @file 3 3 * 4 * LIBC Backend- __libc_Back_fhToPath().4 * kNIX - __libc_Back_fhToPath(). 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net>6 * Copyright (c) 2004-2006 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * 25 25 */ 26 26 27 28 /******************************************************************************* 29 * Header Files * 30 *******************************************************************************/ 31 #include "libc-alias.h" 32 #include <stdlib.h> 33 #include <errno.h> 34 #include <string.h> 35 #include <emx/io.h> 36 #include <InnoTekLIBC/backend.h> 27 #include "kNIX.h" 37 28 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACKEND 38 #include <InnoTekLIBC/logstrict.h> 39 40 #define INCL_DOSPROFILE 41 #define INCL_DOSERRORS 42 #define INCL_FSMACROS 43 #include <os2emx.h> 44 45 29 #include <klibc/logstrict.h> 46 30 47 31 /** … … 61 45 * Get the filehandle structure and check that's is an ordinary file. 62 46 */ 63 __LIBC_PFH 64 int rc = __libc_FH Ex(fh, &pFH);47 __LIBC_PFH pFH; 48 int rc = __libc_FHGet(fh, &pFH); 65 49 if (rc) 66 50 LIBCLOG_ERROR_RETURN(rc, "ret %d - Invalid filehandle %d\n", rc, fh); … … 72 56 { 73 57 memcpy(pszPath, pFH->pszNativePath, cch); 58 __libc_FHPut(pFH); 74 59 LIBCLOG_RETURN_INT(0); 75 60 } … … 77 62 memcpy(pszPath, pFH->pszNativePath, cchPath); 78 63 pszPath[cchPath - 1] = '\0'; 64 __libc_FHPut(pFH); 79 65 LIBCLOG_ERROR_RETURN(-EOVERFLOW, "ret -EOVERFLOW - cch=%d cchPath=%d '%s'\n", cch, cchPath, pFH->pszNativePath); 80 66 } 81 67 82 68 69 #ifdef __OS2__ 83 70 /* 84 71 * Now query the SFN number for this file. … … 89 76 */ 90 77 78 79 #elif defined(__NT__) 80 /* 81 * Query the filename or something. 82 */ 83 84 #endif 91 85 /** @todo implement this api. */ 86 87 __libc_FHPut(pFH); 92 88 LIBCLOG_ERROR_RETURN(-ENOSYS, "ret -ENOSYS - Not implemented!\n"); 93 89 } -
trunk/libc/src/kNIX/filehandles.c
r2905 r2913 1267 1267 * @returns Negative error code (errno.h) on failure. 1268 1268 * @param fh Handle to lookup. 1269 * @param ppFH Where to store the file handle pointer 1269 * @param ppFH Where to store the file handle pointer. This is always set to NULL on failure. 1270 1270 */ 1271 1271 int __libc_FHGet(int fh, __LIBC_PFH *ppFH) 1272 1272 { 1273 *ppFH = NULL; 1273 1274 int rc = _fmutex_request(&gmtx, 0); 1274 1275 if (rc) -
trunk/libc/src/kNIX/kNIX.h
r2910 r2913 48 48 #include <sys/fmutex.h> 49 49 #include <sys/fcntl.h> 50 #include <sys/mount.h> 50 51 #include <sys/resource.h> 51 52 #include <sys/smutex.h> -
trunk/libc/src/kNIX/os2/DosAllocMemEx.c
r2732 r2913 8 8 * 9 9 * 10 * This file is part of InnoTekLIBC.11 * 12 * InnoTekLIBC is free software; you can redistribute it and/or modify10 * This file is part of kLIBC. 11 * 12 * kLIBC is free software; you can redistribute it and/or modify 13 13 * it under the terms of the GNU Lesser General Public License as published 14 14 * by the Free Software Foundation; either version 2 of the License, or 15 15 * (at your option) any later version. 16 16 * 17 * InnoTekLIBC is distributed in the hope that it will be useful,17 * kLIBC is distributed in the hope that it will be useful, 18 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 21 21 * 22 22 * You should have received a copy of the GNU Lesser General Public License 23 * along with InnoTekLIBC; if not, write to the Free Software23 * along with kLIBC; if not, write to the Free Software 24 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 25 * -
trunk/libc/src/kNIX/os2/DosAllocSharedMemEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosCloseEventSemEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosCloseMutexSemEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosCreateEventSemEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosCreateMutexSemEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosEx.h
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosFreeMemEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosFreeModuleEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosGetNamedSharedMemEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosGetSharedMemEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosLoadModuleEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosOpenEventSemEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/DosOpenMutexSemEx.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/FastInfoBlocks.c
r2732 r2913 4 4 * Fast InfoBlock Access. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/__select.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnotekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnotekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnotekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnotekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsDirCreate.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- mkdir.4 * kNIX - mkdir. 5 5 * 6 * Copyright (c) 2003-2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2003-2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * Copyright (c) 1992-1996 by Eberhard Mattes 8 8 * 9 9 * 10 * This file is part of InnoTekLIBC.10 * This file is part of kLIBC. 11 11 * 12 * InnoTekLIBC is free software; you can redistribute it and/or modify12 * kLIBC is free software; you can redistribute it and/or modify 13 13 * it under the terms of the GNU Lesser General Public License as published 14 14 * by the Free Software Foundation; either version 2 of the License, or 15 15 * (at your option) any later version. 16 16 * 17 * InnoTekLIBC is distributed in the hope that it will be useful,17 * kLIBC is distributed in the hope that it will be useful, 18 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 21 21 * 22 22 * You should have received a copy of the GNU Lesser General Public License 23 * along with InnoTekLIBC; if not, write to the Free Software23 * along with kLIBC; if not, write to the Free Software 24 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 25 * … … 30 30 * Header Files * 31 31 *******************************************************************************/ 32 #include "libc-alias.h" 33 #define INCL_FSMACROS 34 #define INCL_ERRORS 35 #include <os2emx.h> 36 #include "b_fs.h" 37 #include "syscalls.h" 38 #include <errno.h> 39 #include <sys/stat.h> 40 #include <InnoTekLIBC/libc.h> 41 #include <InnoTekLIBC/backend.h> 32 #include "kNIX.h" 42 33 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 43 #include < InnoTekLIBC/logstrict.h>34 #include <klibc/logstrict.h> 44 35 45 36 -
trunk/libc/src/kNIX/os2/b_fsDirCurrentGet.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- getcwd.4 * kNIX - getcwd. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsDirCurrentSet.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- chdir.4 * kNIX - chdir. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsDirCurrentSetFH.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- fchdir.4 * kNIX - fchdir. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2005 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsDirRemove.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- rmdir.4 * kNIX - rmdir. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsDriveDefaultGet.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- _getdrive.4 * kNIX - _getdrive. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsDriveDefaultSet.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- _chdrive.4 * kNIX - _chdrive. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsFileModeSet.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- chmod().4 * kNIX - chmod(). 5 5 * 6 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsFileModeSetFH.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- fchmod.5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird @innotek.de>7 * 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify4 * kNIX - fchmod. 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird-src-spam@innotek.de> 7 * 8 * 9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsFileStat.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- stat.4 * kNIX - stat. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsFileStatFH.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend - fstat.5 * 6 * Copyright (c) 2003-2005 knut st. osmundsen <bird @innotek.de>7 * 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify4 * kNIX - fstat, OS/2. 5 * 6 * Copyright (c) 2003-2005 knut st. osmundsen <bird-src-spam@anduin.net> 7 * 8 * 9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * 25 25 */ 26 26 27 28 /******************************************************************************* 29 * Header Files * 30 *******************************************************************************/ 31 #include "libc-alias.h" 32 #define INCL_FSMACROS 33 #include <os2emx.h> 34 #include "b_fs.h" 35 #include <string.h> 36 #include <errno.h> 37 #include <sys/types.h> 38 #include <sys/stat.h> 39 #include <sys/fcntl.h> 40 #include <emx/io.h> 41 #include <emx/syscalls.h> 42 #include <limits.h> 43 #include "syscalls.h" 44 #include <InnoTekLIBC/libc.h> 45 #include <InnoTekLIBC/backend.h> 27 #include "kNIX.h" 46 28 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 47 #include <InnoTekLIBC/logstrict.h> 48 49 29 #include <klibc/logstrict.h> 50 30 51 31 /** … … 65 45 * Get filehandle. 66 46 */ 67 PLIBCFH pFH; 68 69 int rc = __libc_FHEx(fh, &pFH); 47 __LIBC_PFH pFH; 48 int rc = __libc_FHGet(fh, &pFH); 70 49 if (rc) 71 50 LIBCLOG_ERROR_RETURN_INT(rc); 72 51 73 int fUnixEAs = !__libc_gfNoUnix &&pFH->pFsInfo && pFH->pFsInfo->fUnixEAs;52 const int fUnixEAs = pFH->pFsInfo && pFH->pFsInfo->fUnixEAs; 74 53 if (/*!pFH->pOps*/ 1) 75 54 { … … 138 117 if (rc) 139 118 { 119 __libc_FHPut(pFH); 140 120 rc = -__libc_native2errno(rc); 141 121 LIBCLOG_ERROR_RETURN_INT(rc); … … 198 178 { 199 179 *pStat = st; 180 __libc_FHPut(pFH); 200 181 LIBCLOG_RETURN_INT(0); 201 182 } … … 240 221 // if (rc > 0) 241 222 // rc = -__libc_native2errno(rc); 223 // __libc_FHPut(pFH); 242 224 // LIBCLOG_ERROR_RETURN_INT(rc); 243 225 // } … … 262 244 LIBCLOG_MSG("%02x - st_gen: %#x\n", offsetof(struct stat, st_gen), pStat->st_gen); 263 245 LIBCLOG_MSG("%02x - st_birthtime: %d\n", offsetof(struct stat, st_birthtime), pStat->st_birthtime); 246 __libc_FHPut(pFH); 264 247 LIBCLOG_RETURN_INT(0); 265 248 } -
trunk/libc/src/kNIX/os2/b_fsFileTimesSet.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- utimes().4 * kNIX - utimes(). 5 5 * 6 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsFileTimesSetFH.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend - futimes.4 * kNIX - futimes, OS/2. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2006 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * … … 29 29 * Header Files * 30 30 *******************************************************************************/ 31 #include "libc-alias.h" 32 #define INCL_FSMACROS 33 #include <os2emx.h> 34 #include "b_fs.h" 35 #include "b_time.h" 36 #include <string.h> 37 #include <errno.h> 38 #include <sys/types.h> 39 #include <sys/stat.h> 40 #include <sys/fcntl.h> 41 #include <sys/timeb.h> 42 #include <emx/io.h> 43 #include <emx/time.h> 44 #include <emx/syscalls.h> 45 #include <limits.h> 46 #include "syscalls.h" 47 #include <InnoTekLIBC/libc.h> 48 #include <InnoTekLIBC/backend.h> 31 #include "kNIX.h" 49 32 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 50 #include <InnoTekLIBC/logstrict.h> 51 33 #include <klibc/logstrict.h> 52 34 53 35 /** … … 69 51 * Get filehandle. 70 52 */ 71 PLIBCFH pFH; 72 73 int rc = __libc_FHEx(fh, &pFH); 53 __LIBC_PFH pFH; 54 int rc = __libc_FHGet(fh, &pFH); 74 55 if (rc) 75 56 LIBCLOG_ERROR_RETURN_INT(rc); … … 83 64 case F_SOCKET: 84 65 case F_PIPE: /* treat as socket for now */ 66 __libc_FHPut(pFH); 85 67 LIBCLOG_ERROR_RETURN_INT(-EINVAL); 86 68 /* ignore */ 87 69 case F_DEV: 70 __libc_FHPut(pFH); 88 71 LIBCLOG_RETURN_INT(0); 89 72 … … 91 74 case F_DIR: 92 75 if (__predict_false(!pFH->pszNativePath)) 93 LIBCLOG_ERROR_RETURN_INT(-EINVAL); 94 rc = __libc_back_fsNativeFileTimesSet(pFH->pszNativePath, paTimes); 76 rc = -EINVAL; 77 else 78 rc = __libc_back_fsNativeFileTimesSet(pFH->pszNativePath, paTimes); 79 __libc_FHPut(pFH); 95 80 if (rc) 96 81 LIBCLOG_ERROR_RETURN_INT(rc); … … 106 91 { 107 92 /* 108 * Ok, we cannormalize the time.93 * Ok, normalize the time. 109 94 */ 110 95 time_t aTimes[2]; /* seconds since 1970 */ 111 96 if (!paTimes) 112 { 113 struct timeb TimeBuf; 114 __ftime(&TimeBuf); 115 aTimes[0] = TimeBuf.time; 116 aTimes[1] = TimeBuf.time; 117 } 97 aTimes[1] = aTimes[0] = fibGetUnixSeconds(); 118 98 else 119 99 { 120 if (!_ tzset_flag)100 if (!__libc_gfTZInfoOk) 121 101 tzset(); 122 102 aTimes[0] = paTimes[0].tv_sec; … … 139 119 if (rc) 140 120 { 121 __libc_FHPut(pFH); 141 122 FS_RESTORE(); 142 123 rc = -__libc_native2errno(rc); … … 158 139 } 159 140 FS_RESTORE(); 141 __libc_FHPut(pFH); 160 142 if (rc) 161 143 { … … 169 151 * Non-standard handle - fail. 170 152 */ 153 __libc_FHPut(pFH); 171 154 LIBCLOG_ERROR_RETURN_INT(-EOPNOTSUPP); 172 155 } -
trunk/libc/src/kNIX/os2/b_fsNativeFileModeSet.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend - internal [l]chmod.4 * kNIX - internal [l]chmod, OS/2. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2005-2006 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * 25 25 */ 26 26 27 28 /******************************************************************************* 29 * Header Files * 30 *******************************************************************************/ 31 #include "libc-alias.h" 32 #define INCL_BASE 33 #define INCL_FSMACROS 34 #include <os2emx.h> 35 #include "b_fs.h" 36 #include <string.h> 37 #include <errno.h> 38 #include <sys/types.h> 39 #include <sys/stat.h> 40 #include <stdlib.h> 41 #include <limits.h> 42 #include "syscalls.h" 43 #include <InnoTekLIBC/libc.h> 27 #include "kNIX.h" 44 28 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 45 #include <InnoTekLIBC/logstrict.h> 46 29 #include <klibc/logstrict.h> 47 30 48 31 /** -
trunk/libc/src/kNIX/os2/b_fsNativeFileStat.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- internal stat.5 * 6 * Copyright (c) 2004-2005 knut st. osmundsen <bird @innotek.de>7 * 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify4 * kNIX - internal stat. 5 * 6 * Copyright (c) 2004-2005 knut st. osmundsen <bird-src-spam@innotek.de> 7 * 8 * 9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsNativeFileTimesSet.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- internal [l]utimes.4 * kNIX - internal [l]utimes. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2005 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsPathResolve.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- realpath.4 * kNIX - realpath. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsRename.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend - rename.4 * kNIX - rename, OS/2. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird@innotek.de>6 * Copyright (c) 2004-2006 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * 25 25 */ 26 26 27 28 /******************************************************************************* 29 * Header Files * 30 *******************************************************************************/ 31 #include "libc-alias.h" 32 #define INCL_FSMACROS 33 #define INCL_ERRORS 34 #include <os2emx.h> 35 #include "b_fs.h" 36 #include <errno.h> 37 #include <string.h> 38 #include <InnoTekLIBC/backend.h> 27 #include "kNIX.h" 39 28 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 40 #include <InnoTekLIBC/logstrict.h> 41 29 #include <klibc/logstrict.h> 42 30 43 31 /** -
trunk/libc/src/kNIX/os2/b_fsStat.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC Backend- File System Statistics.5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net>7 * 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify4 * kNIX - File System Statistics. 5 * 6 * Copyright (c) 2004-2006 knut st. osmundsen <bird-srcspam@anduin.net> 7 * 8 * 9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * … … 29 29 * Header Files * 30 30 *******************************************************************************/ 31 #include "libc-alias.h" 32 #include "b_fs.h" 33 #include <stdlib.h> 34 #include <string.h> 35 #include <errno.h> 36 #include <sys/types.h> 37 #include <sys/mount.h> 38 #include <sys/syslimits.h> 39 #include <InnoTekLIBC/backend.h> 40 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 41 #include <InnoTekLIBC/logstrict.h> 42 43 #define INCL_BASE 44 #define INCL_FSMACROS 45 #include <os2emx.h> 46 #include <InnoTekLIBC/os2error.h> 47 31 #include "kNIX.h" 32 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 33 #include <klibc/logstrict.h> 34 #include <klibc/os2/os2error.h> 48 35 49 36 /******************************************************************************* … … 116 103 int rc = 0; 117 104 char szFilename[PATH_MAX]; 118 __LIBC_PFH pFH = __libc_FH(fh); 119 if (pFH && pFH->pFsInfo) 105 __LIBC_PFH pFH; 106 rc = __libc_FHGet(fh, &pFH); 107 if (!rc && pFH->pFsInfo) 120 108 strcpy(szFilename, pFH->pFsInfo->szMountpoint); 121 109 else … … 126 114 rc = fsStatInternal(szFilename, pStatFs); 127 115 } 116 __libc_FHPut(pFH); 128 117 129 118 if (!rc) -
trunk/libc/src/kNIX/os2/b_fsSymlinkCreate.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- symlink.4 * kNIX - symlink. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsSymlinkModeSet.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- lchmod().4 * kNIX - lchmod(). 5 5 * 6 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_fsSync.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC Backend- __libc_Back_fhToPath().4 * kNIX - __libc_Back_fhToPath(). 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * … … 29 29 * Header Files * 30 30 *******************************************************************************/ 31 #include "libc-alias.h" 32 #include <InnoTekLIBC/backend.h> 33 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 34 #include <InnoTekLIBC/logstrict.h> 35 36 #define INCL_DOSFILEMGR 37 #define INCL_FSMACROS 38 #include <os2emx.h> 31 #include "kNIX.h" 32 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 33 #include <klibc/logstrict.h> 39 34 40 35 -
trunk/libc/src/kNIX/os2/b_fsUnlink.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- unlink.4 * kNIX - unlink. 5 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net>6 * Copyright (c) 2005-2006 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * 25 25 */ 26 26 27 28 /******************************************************************************* 29 * Header Files * 30 *******************************************************************************/ 31 #include "libc-alias.h" 32 #define INCL_FSMACROS 33 #define INCL_ERRORS 34 #define INCL_DOSFILEMGR 35 #define INCL_DOSMISC 36 #include <os2emx.h> 37 #include "b_fs.h" 38 #include <errno.h> 39 #include <string.h> 40 #include <sys/stat.h> 41 #include <InnoTekLIBC/backend.h> 27 #include "kNIX.h" 42 28 #define __LIBC_LOG_GROUP __LIBC_LOG_GRP_BACK_FS 43 #include <InnoTekLIBC/logstrict.h> 44 29 #include <klibc/logstrict.h> 45 30 46 31 /** -
trunk/libc/src/kNIX/os2/b_ioFileControl.c
r2739 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- File Control.5 * 6 * Copyright (c) 2003-2005 knut st. osmundsen <bird @innotek.de>7 * 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify4 * kNIX - File Control. 5 * 6 * Copyright (c) 2003-2005 knut st. osmundsen <bird-src-spam@innotek.de> 7 * 8 * 9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU General Public License as published by 13 13 * the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_ioFileOpen.c
r2811 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- open.5 * 6 * Copyright (c) 2003-2005 knut st. osmundsen <bird @innotek.de>4 * kNIX - open. 5 * 6 * Copyright (c) 2003-2005 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * Copyright (c) 1992-1996 by Eberhard Mattes 8 8 * 9 9 * 10 * This file is part of InnoTekLIBC.11 * 12 * InnoTekLIBC is free software; you can redistribute it and/or modify10 * This file is part of kLIBC. 11 * 12 * kLIBC is free software; you can redistribute it and/or modify 13 13 * it under the terms of the GNU Lesser General Public License as published 14 14 * by the Free Software Foundation; either version 2 of the License, or 15 15 * (at your option) any later version. 16 16 * 17 * InnoTekLIBC is distributed in the hope that it will be useful,17 * kLIBC is distributed in the hope that it will be useful, 18 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 21 21 * 22 22 * You should have received a copy of the GNU Lesser General Public License 23 * along with InnoTekLIBC; if not, write to the Free Software23 * along with kLIBC; if not, write to the Free Software 24 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 25 * -
trunk/libc/src/kNIX/os2/b_ldrClose.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- dlclose.4 * kNIX - dlclose. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_ldrOpen.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- dlopen.4 * kNIX - dlopen. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_ldrSymbol.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- dlsym.4 * kNIX - dlsym. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_miscLoadAvg.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- System Load Averages.4 * kNIX - System Load Averages. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_mman.h
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC Backend- Memory Management.4 * kNIX - Memory Management. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_mmanProtect.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC Backend- mprotect().4 * kNIX - mprotect(). 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_nativeSymlinkCreate.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- symlink.4 * kNIX - symlink. 5 5 * 6 * Copyright (c) 2004-2005 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004-2005 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_panic.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- panic.4 * kNIX - panic. 5 5 * 6 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU General Public License as published by 13 13 * the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_processCredentials.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- [sg]et.*[ug]id().4 * kNIX - [sg]et.*[ug]id(). 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_processGetPriority.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- getpriority().4 * kNIX - getpriority(). 5 5 * 6 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_processSetPriority.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- setpriority().4 * kNIX - setpriority(). 5 5 * 6 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_processWait.c
r2787 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- waitid.4 * kNIX - waitid. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_signalInterrupt.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- siginterrupt().4 * kNIX - siginterrupt(). 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_signalMask.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- sigprocmask().4 * kNIX - sigprocmask(). 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_signalPending.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- sigpending().4 * kNIX - sigpending(). 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_signalQueue.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- sigqueue().4 * kNIX - sigqueue(). 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_signalStack.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- sigaltstack.4 * kNIX - sigaltstack. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_signalSuspend.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- suspend till next signal.4 * kNIX - suspend till next signal. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_signalTimer.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- setitimer() & getitimer().4 * kNIX - setitimer() & getitimer(). 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_signalWait.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- signal wait.4 * kNIX - signal wait. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_threadCleanup.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- Thread structure cleanup.4 * kNIX - Thread structure cleanup. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_threadEnd.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- Thread end.4 * kNIX - Thread end. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_threadInit.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- thread structure init.4 * kNIX - thread structure init. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_threadSleep.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- nanosleep().4 * kNIX - nanosleep(). 5 5 * 6 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_threadStartup.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- Thread startup.4 * kNIX - Thread startup. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/b_timeHighResNano.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- gethrtime().4 * kNIX - gethrtime(). 5 5 * 6 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/exceptions.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- Exceptions / Signals.4 * kNIX - Exceptions / Signals. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/hooks.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- hooks.5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird @innotek.de>7 * 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify4 * kNIX - hooks. 5 * 6 * Copyright (c) 2005 knut st. osmundsen <bird-src-spam@innotek.de> 7 * 8 * 9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/kNIX-os2.h
r2910 r2913 220 220 221 221 222 /** Test if a DOS/OS2 file time is zero. */ 223 #define FTIMEZEROP(x) (*(PUSHORT)&(x) == 0) 224 /** Test if a DOS/OS2 file date is zero. */ 225 #define FDATEZEROP(x) (*(PUSHORT)&(x) == 0) 226 227 222 228 /** Wait Event Semaphore. 223 229 * This is an event semaphore which will never be posted (unless we wanna resolve -
trunk/libc/src/kNIX/os2/libcfork.c
r2805 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backendfork().4 * kNIX fork(). 5 5 * 6 6 * Copyright (c) 2004-2005 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/logstrict.c
r2797 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- Debug Logging and Strict Checking Facilities.4 * kNIX - Debug Logging and Strict Checking Facilities. 5 5 * 6 6 * Copyright (c) 2004 InnoTek Systemberatung GmbH … … 8 8 * 9 9 * 10 * This file is part of InnoTekLIBC.11 * 12 * InnoTekLIBC is free software; you can redistribute it and/or modify10 * This file is part of kLIBC. 11 * 12 * kLIBC is free software; you can redistribute it and/or modify 13 13 * it under the terms of the GNU Lesser General Public License as published 14 14 * by the Free Software Foundation; either version 2 of the License, or 15 15 * (at your option) any later version. 16 16 * 17 * InnoTekLIBC is distributed in the hope that it will be useful,17 * kLIBC is distributed in the hope that it will be useful, 18 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 21 21 * 22 22 * You should have received a copy of the GNU Lesser General Public License 23 * along with InnoTekLIBC; if not, write to the Free Software23 * along with kLIBC; if not, write to the Free Software 24 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 25 * -
trunk/libc/src/kNIX/os2/os2error.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC Backend- DosError() Wrapping.4 * kNIX - DosError() Wrapping. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/pathrewrite.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- Path Rewrite.4 * kNIX - Path Rewrite. 5 5 * 6 6 * Copyright (c) 2004 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/priority.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- Priority Conversion.4 * kNIX - Priority Conversion. 5 5 * 6 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/priority.h
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- Priority Conversion.4 * kNIX - Priority Conversion. 5 5 * 6 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/resource.c
r2805 r2913 8 8 * 9 9 * 10 * This file is part of InnoTekLIBC.10 * This file is part of kLIBC. 11 11 * 12 * InnoTekLIBC is free software; you can redistribute it and/or modify12 * kLIBC is free software; you can redistribute it and/or modify 13 13 * it under the terms of the GNU Lesser General Public License as published 14 14 * by the Free Software Foundation; either version 2 of the License, or 15 15 * (at your option) any later version. 16 16 * 17 * InnoTekLIBC is distributed in the hope that it will be useful,17 * kLIBC is distributed in the hope that it will be useful, 18 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 21 21 * 22 22 * You should have received a copy of the GNU Lesser General Public License 23 * along with InnoTekLIBC; if not, write to the Free Software23 * along with kLIBC; if not, write to the Free Software 24 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 25 * -
trunk/libc/src/kNIX/os2/safesems.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- Internal Signal-Safe Semaphores.4 * kNIX - Internal Signal-Safe Semaphores. 5 5 * 6 6 * Copyright (c) 2005 knut st. osmundsen <bird@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU General Public License as published by 13 13 * the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/sharedpm.c
r2819 r2913 8 8 * 9 9 * 10 * This file is part of InnoTekLIBC.11 * 12 * InnoTekLIBC is free software; you can redistribute it and/or modify10 * This file is part of kLIBC. 11 * 12 * kLIBC is free software; you can redistribute it and/or modify 13 13 * it under the terms of the GNU Lesser General Public License as published 14 14 * by the Free Software Foundation; either version 2 of the License, or 15 15 * (at your option) any later version. 16 16 * 17 * InnoTekLIBC is distributed in the hope that it will be useful,17 * kLIBC is distributed in the hope that it will be useful, 18 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 21 21 * 22 22 * You should have received a copy of the GNU Lesser General Public License 23 * along with InnoTekLIBC; if not, write to the Free Software23 * along with kLIBC; if not, write to the Free Software 24 24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 25 25 * -
trunk/libc/src/kNIX/os2/signals.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- Signals.4 * kNIX - Signals. 5 5 * 6 6 * Copyright (c) 2004-2005 knut st. osmundsen <bird-srcspam@anduin.net> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify9 * This file is part of kLIBC. 10 * 11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/syscalls.h
r2909 r2913 56 56 #if defined (_OS2EMX_H) 57 57 58 /** Test if a DOS/OS2 file time is zero. */59 #define FTIMEZEROP(x) (*(PUSHORT)&(x) == 0)60 /** Test if a DOS/OS2 file date is zero. */61 #define FDATEZEROP(x) (*(PUSHORT)&(x) == 0)62 63 58 long _sys_p2t(FTIME t, FDATE d); 64 59 -
trunk/libc/src/kNIX/os2/tcpip.c
r2732 r2913 15 15 * 16 16 * 17 * This file is part of InnoTekLIBC.17 * This file is part of kLIBC. 18 18 * 19 * InnoTekLIBC is free software; you can redistribute it and/or modify19 * kLIBC is free software; you can redistribute it and/or modify 20 20 * it under the terms of the GNU Lesser General Public License as published 21 21 * by the Free Software Foundation; either version 2 of the License, or 22 22 * (at your option) any later version. 23 23 * 24 * InnoTekLIBC is distributed in the hope that it will be useful,24 * kLIBC is distributed in the hope that it will be useful, 25 25 * but WITHOUT ANY WARRANTY; without even the implied warranty of 26 26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 28 28 * 29 29 * You should have received a copy of the GNU Lesser General Public License 30 * along with InnoTekLIBC; if not, write to the Free Software30 * along with kLIBC; if not, write to the Free Software 31 31 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 32 32 * -
trunk/libc/src/kNIX/os2/tcpipver.c
r2739 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- TCP/IP Version Specific Code.4 * kNIX - TCP/IP Version Specific Code. 5 5 * 6 6 * This file is included from tcpipver43.c with TCPV40HDRS defined, … … 11 11 * 12 12 * 13 * This file is part of InnoTekLIBC.14 * 15 * InnoTekLIBC is free software; you can redistribute it and/or modify13 * This file is part of kLIBC. 14 * 15 * kLIBC is free software; you can redistribute it and/or modify 16 16 * it under the terms of the GNU Lesser General Public License as published 17 17 * by the Free Software Foundation; either version 2 of the License, or 18 18 * (at your option) any later version. 19 19 * 20 * InnoTekLIBC is distributed in the hope that it will be useful,20 * kLIBC is distributed in the hope that it will be useful, 21 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 24 24 * 25 25 * You should have received a copy of the GNU Lesser General Public License 26 * along with InnoTekLIBC; if not, write to the Free Software26 * along with kLIBC; if not, write to the Free Software 27 27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 28 28 * -
trunk/libc/src/kNIX/os2/timebomb.c
r2732 r2913 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 * -
trunk/libc/src/kNIX/os2/umask.c
r2732 r2913 2 2 /** @file 3 3 * 4 * LIBC SYS Backend- umask.4 * kNIX - umask. 5 5 * 6 * Copyright (c) 2004 knut st. osmundsen <bird @innotek.de>6 * Copyright (c) 2004 knut st. osmundsen <bird-src-spam@innotek.de> 7 7 * 8 8 * 9 * This file is part of InnoTekLIBC.9 * This file is part of kLIBC. 10 10 * 11 * InnoTekLIBC is free software; you can redistribute it and/or modify11 * kLIBC is free software; you can redistribute it and/or modify 12 12 * it under the terms of the GNU Lesser General Public License as published 13 13 * by the Free Software Foundation; either version 2 of the License, or 14 14 * (at your option) any later version. 15 15 * 16 * InnoTekLIBC is distributed in the hope that it will be useful,16 * kLIBC is distributed in the hope that it will be useful, 17 17 * but WITHOUT ANY WARRANTY; without even the implied warranty of 18 18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the … … 20 20 * 21 21 * You should have received a copy of the GNU Lesser General Public License 22 * along with InnoTekLIBC; if not, write to the Free Software22 * along with kLIBC; if not, write to the Free Software 23 23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 24 24 *
Note:
See TracChangeset
for help on using the changeset viewer.