source: trunk/src/emx/src/libdl/dlclose.c@ 234

Last change on this file since 234 was 234, checked in by bird, 23 years ago

Initial coding (thought this might come in handy).

  • Property cvs2svn:cvs-rev set to 1.1
  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.4 KB
Line 
1/* $Id: dlclose.c 234 2003-05-26 09:28:55Z bird $ */
2/** @file
3 * dlclose - Close an dlopen'ed dynamic load library.
4 *
5 * Copyright (c) 2001-2003 knut st. osmundsen <[email protected]>
6 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU Lesser General Public License as published
9 * by the Free Software Foundation; either version 2 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public License
18 * along with This program; if not, write to the Free Software
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 *
21 */
22
23/*******************************************************************************
24* Header Files *
25*******************************************************************************/
26#define INCL_BASE
27#include <os2.h>
28#include <dlfcn.h>
29
30#include "dlfcn_private.h"
31
32
33/**
34 * Closes an open library.
35 * @param pvHandle Handle to close.
36 */
37int dlclose(void *pvHandle)
38{
39 APIRET rc;
40 rc = DosFreeModule((HMODULE)pvHandle);
41 dlfcn_enmLastOp = dlfcn_dlclose;
42 dlfcn_ulLastError = rc;
43 return rc;
44}
45
Note: See TracBrowser for help on using the repository browser.