delorie.com/archives/browse.cgi | search |
X-Authentication-Warning: | delorie.com: mail set sender to djgpp-workers-bounces using -f |
Date: | Sat, 01 Jan 2005 09:54:00 -0700 |
From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> |
Subject: | Re: More complaints from tests/libclink/check |
In-reply-to: | <01c4eff0$Blat.v2.2.2$d6643f20@zahav.net.il> |
To: | djgpp-workers AT delorie DOT com |
Message-id: | <o0ldt0lsim9ohe9p0tno7h0d103nd6mab5@4ax.com> |
Organization: | Systematic Software |
MIME-version: | 1.0 |
X-Mailer: | Forte Agent 1.93/32.576 English (American) |
References: | <b24ct0djfmkn9sq8tjr2df792rfhdf4d0e AT 4ax DOT com> |
<200501010313 DOT j013Do4F018246 AT speedy DOT ludd DOT ltu DOT se> | |
<m4ect01p964inq4g0pb0dtk3u90p4e3mn2 AT 4ax DOT com> | |
<01c4eff0$Blat.v2.2.2$d6643f20 AT zahav DOT net DOT il> | |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id j01Gt2DO016493 |
Reply-To: | djgpp-workers AT delorie DOT com |
Errors-To: | nobody AT delorie DOT com |
X-Mailing-List: | djgpp-workers AT delorie DOT com |
X-Unsubscribes-To: | listserv AT delorie DOT com |
On Sat, 01 Jan 2005 12:57:25 +0200, Eli Zaretskii <eliz AT gnu DOT org> wrote: >> Date: Fri, 31 Dec 2004 23:01:02 -0700 >> From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT ab DOT ca> >> >> >You just define your (POSIX) functions that does the real work, adding >> >them as stubs to <libc/stubs.h> and letting the C (89 or 99) call them >> >as necessary. >> >> I am not sure what you mean by stubs here? > >See src/libc/stubs/mkstubs.c. This program is invoked during the >library build; it scans the libc/stubs.h header and for each stub >there produces a stubNN.S file that defines a function which simply >jmp's to its alias. Thus, e.g., localtime_r will simply jmp to >localtime. The resulting stubNN.S files are then assembled and linked >into libc.a. As these are POSIX functions, should I stub them totally outside of the #ifndef _POSIX_SOURCE section or within a new #else /* _POSIX_SOURCE */ section in libc/stubs.h? Not quite sure what the #ifndef _POSIX_SOURCE intent is? -- Thanks. Take care, Brian Inglis
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |