1 | /* $Id: kLdrHlp-os2.c 2826 2006-10-22 15:58:55Z bird $ */
|
---|
2 | /** @file
|
---|
3 | *
|
---|
4 | * kLdr - The Dynamic Loader, Helper Functions for OS/2.
|
---|
5 | *
|
---|
6 | * Copyright (c) 2006 knut st. osmundsen <bird@anduin.net>
|
---|
7 | *
|
---|
8 | *
|
---|
9 | * This file is part of kLdr.
|
---|
10 | *
|
---|
11 | * kLdr 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 | * kLdr 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 kLdr; if not, write to the Free Software
|
---|
23 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
---|
24 | *
|
---|
25 | */
|
---|
26 |
|
---|
27 | #include "kLdrHlp.h"
|
---|
28 | #include <os2emx.h>
|
---|
29 |
|
---|
30 |
|
---|
31 | /*******************************************************************************
|
---|
32 | * Global Variables *
|
---|
33 | *******************************************************************************/
|
---|
34 |
|
---|
35 | int kldrSemInit(void)
|
---|
36 | {
|
---|
37 | return 0;
|
---|
38 | }
|
---|
39 |
|
---|
40 | int kldrSemTerm(void);
|
---|
41 | int kldrSemRequest(void);
|
---|
42 | int kldrSemRelease(void);
|
---|
43 |
|
---|
44 | int kldrFileOpen(const char *pszFilename, PKLDRFILE pFile);
|
---|
45 | int kldrFileClose(KLDRFILE File);
|
---|
46 | int kldrFileRead(KLDRFILE File, off_t off, void *pv, size_t cb);
|
---|
47 |
|
---|
48 | int kldrGetEnv(const char *pszVar, char *pszVar, size_t *pcchVar)
|
---|
49 |
|
---|
50 | void *kldrAlloc(size_t cb);
|
---|
51 | void kldrFree(void *pv);
|
---|
52 |
|
---|
53 | int kldrPrivateAlloc(void *pv, size_t cb, unsigned fFlags, void **ppv);
|
---|
54 | int kldrPrivateFree(void *pv, size_t cb);
|
---|
55 | int kldrSharedAlloc(void *pv, size_t cb, unsigned fFlags, const char *pszFilename, KLDRFILE File, void **ppv);
|
---|
56 | int kldrSharedFree(void *pv, size_t cb);
|
---|
57 |
|
---|