Subject: Re: Modifications of standard headers for PECOFF
To: Bang Jun-Young <junyoung@mogua.com>
From: TAMURA Kent <kent@netbsd.org>
List: tech-userlevel
Date: 05/26/2002 01:47:50
> I still believe __declspec(dllexport) is not necessary at all since
> --enable-auto-export is enabled by default, and __declspec(dllimport)
> can be omitted for simple variables if --enable-auto-import is given
> to ld(1).
I think so.
> BTW, how many multiword variables are exported from libc to
> outer modules?
The following is a list of exported variables of libc. The
option --enable-auto-import is effective to h_errorno,
svc_maxfd, sys_nsig, __mb_cur_max, daylight, timezone, opterr,
optind, optopt and optreset, I think. Other variables need
__declspec(dllimport).
ctype.h _ctype_
ctype.h _tolower_tab_
ctype.h _toupper_tab_
errno.h __sys_errlist14
gmon.h _gmonparam
netdb.h h_errno
nsswitch.h __nsdefaultsrc
resolv.h __p_class_syms
resolv.h __p_type_syms
resolv.h _res
resolv.h _res_ext
rpc/auth.h _null_auth
rpc/clnt.h rpc_createerr
rpc/cvs.h svc_fdset
rpc/raw.h __rpc_rawcombuf
rpc/svc.h svc_maxfd
signal.h __sys_siglist14
signal.h __sys_signame14
signal.h sys_signame
stdio.h __sF
stdlib.h __mb_cur_max
sys/localedef.h _CurrentMessagesLocale
sys/localedef.h _CurrentMonetaryLocale
sys/localedef.h _CurrentNumericLocale
sys/localedef.h _CurrentTimeLocale
sys/localedef.h _DefaultMessagesLocale
sys/localedef.h _DefaultMonetaryLocale
sys/localedef.h _DefaultNumericLocale
sys/localedef.h _DefaultTimeLocale
time.h __timezone13
time.h _daylight
time.h _tzname
unistd.h __sys_siglist14
unistd.h optarg
unistd.h opterr
unistd.h optind
unistd.h optopt
unistd.h optreset
unistd.h suboptarg
--
TAMURA Kent <kent2002@hauN.org> <kent@netbsd.org>