VirtualBox

source: kStuff/trunk/kLdr/kLdr-os2.c@ 28

Last change on this file since 28 was 2, checked in by bird, 17 years ago

Imported http://svn.netlabs.org/repos/libc/trunk/kStuff, revision 3612.

  • Property svn:keywords set to Id Revision
File size: 1.9 KB
Line 
1/* $Id: kLdr-os2.c 2 2007-11-16 16:07:14Z bird $ */
2/** @file
3 * kLdr - The Dynamic Loader, OS/2 Specifics.
4 */
5
6/*
7 * Copyright (c) 2006-2007 knut st. osmundsen <[email protected]>
8 *
9 * This file is part of kStuff.
10 *
11 * kStuff is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2.1 of the License, or (at your option) any later version.
15 *
16 * In addition to the permissions in the GNU Lesser General Public
17 * License, you are granted unlimited permission to link the compiled
18 * version of this file into combinations with other programs, and to
19 * distribute those combinations without any restriction coming from
20 * the use of this file.
21 *
22 * kStuff is distributed in the hope that it will be useful,
23 * but WITHOUT ANY WARRANTY; without even the implied warranty of
24 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25 * Lesser General Public License for more details.
26 *
27 * You should have received a copy of the GNU Lesser General Public
28 * License along with kStuff; if not, write to the Free Software
29 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
30 * 02110-1301, USA
31 */
32
33/*******************************************************************************
34* Header Files *
35*******************************************************************************/
36#define INCL_BASE
37#include <os2.h>
38
39#include <k/kLdr.h>
40#include "kLdrInternal.h"
41
42
43/**
44 * The DLL main function.
45 *
46 * @returns TRUE / FALSE.
47 * @param hmod The dll handle.
48 * @param fFlags Flags.
49 */
50ULONG _System _DLL_InitTerm(HMODULE hmod, ULONG fFlags)
51{
52 switch (fFlags)
53 {
54 case 0:
55 {
56 int rc = kldrInit();
57 return rc == 0;
58 }
59
60 case 1:
61 kldrTerm();
62 return TRUE;
63
64 default:
65 return FALSE;
66 }
67}
68
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette