Home My Page Projects Code Snippets Project Openings SML/NJ
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files

SCM Repository

[smlnj] View of /sml/trunk/src/runtime/c-libs/dl/dlclose.c
ViewVC logotype

View of /sml/trunk/src/runtime/c-libs/dl/dlclose.c

Parent Directory Parent Directory | Revision Log Revision Log

Revision 1574 - (download) (as text) (annotate)
Mon Aug 2 20:26:13 2004 UTC (15 years, 10 months ago) by mblume
File size: 628 byte(s)
added missing update to dlclose.c
/* dlclose.c
 * COPYRIGHT (c) 2000 by Lucent Technologies, Bell Laboratories

#ifdef OPSYS_WIN32
# include <windows.h>
# include "ml-unixdep.h"
# include <dlfcn.h>
#include "ml-base.h"
#include "ml-values.h"
#include "ml-objects.h"
#include "ml-c.h"
#include "cfun-proto-list.h"

/* _ml_P_Dynload_dlclose : Word32.word -> unit
 * Close dynamically loaded library.
ml_val_t _ml_U_Dynload_dlclose (ml_state_t *msp, ml_val_t ml_handle)
  void *handle = (void *) (WORD_MLtoC (ml_handle));

#ifdef OPSYS_WIN32
  (void) FreeLibrary (handle);
  (void) dlclose (handle);
  return ML_unit;

ViewVC Help
Powered by ViewVC 1.0.0