/* $Id: kLdrHlp-os2.c 2826 2006-10-22 15:58:55Z bird $ */ /** @file * * kLdr - The Dynamic Loader, Helper Functions for OS/2. * * Copyright (c) 2006 knut st. osmundsen * * * This file is part of kLdr. * * kLdr is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * kLdr is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with kLdr; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ #include "kLdrHlp.h" #include /******************************************************************************* * Global Variables * *******************************************************************************/ int kldrSemInit(void) { return 0; } int kldrSemTerm(void); int kldrSemRequest(void); int kldrSemRelease(void); int kldrFileOpen(const char *pszFilename, PKLDRFILE pFile); int kldrFileClose(KLDRFILE File); int kldrFileRead(KLDRFILE File, off_t off, void *pv, size_t cb); int kldrGetEnv(const char *pszVar, char *pszVar, size_t *pcchVar) void *kldrAlloc(size_t cb); void kldrFree(void *pv); int kldrPrivateAlloc(void *pv, size_t cb, unsigned fFlags, void **ppv); int kldrPrivateFree(void *pv, size_t cb); int kldrSharedAlloc(void *pv, size_t cb, unsigned fFlags, const char *pszFilename, KLDRFILE File, void **ppv); int kldrSharedFree(void *pv, size_t cb);