* io.c (rb_open_file): encoding in mode string was ignored if perm is
[ruby-svn.git] / dln.h
blobf70b0d44555977912e6fe3a1c6bb07fb7bd02660
1 /**********************************************************************
3 dln.h -
5 $Author$
6 created at: Wed Jan 19 16:53:09 JST 1994
8 Copyright (C) 1993-2007 Yukihiro Matsumoto
10 **********************************************************************/
12 #ifndef DLN_H
13 #define DLN_H
15 #ifdef __cplusplus
16 # ifndef HAVE_PROTOTYPES
17 # define HAVE_PROTOTYPES 1
18 # endif
19 # ifndef HAVE_STDARG_PROTOTYPES
20 # define HAVE_STDARG_PROTOTYPES 1
21 # endif
22 #endif
24 #undef _
25 #ifdef HAVE_PROTOTYPES
26 # define _(args) args
27 #else
28 # define _(args) ()
29 #endif
31 DEPRECATED(char *dln_find_exe(const char*,const char*));
32 DEPRECATED(char *dln_find_file(const char*,const char*));
33 char *dln_find_exe_r(const char*,const char*,char*,int);
34 char *dln_find_file_r(const char*,const char*,char*,int);
36 #ifdef USE_DLN_A_OUT
37 extern char *dln_argv0;
38 #endif
40 void *dln_load(const char*);
41 #endif