From: Fernando Oleo Blanco <irvise_ml@irvise.xyz>
Subject: Re: Help: Ada in NetBSD
Date: Sun, 29 Aug 2021 22:36:41 +0200 [thread overview]
Message-ID: <sggr4p$gta$1@gioia.aioe.org> (raw)
In-Reply-To: lyzgt0ds72.fsf@pushface.org
On 29.08.21 20:25, Simon Wright wrote:
> The problem can't be fixed by including C headers, because ...
>
>>> For gettimeofday the symbol is replaced by __gettimeofday50.
>>> These symbols are marked with __RENAME(XXX) macros in the C headers.
>
> The C header is (I got this from the net, so beware)
>
> int gettimeofday(struct timeval * __restrict, void *__restrict)
> __RENAME(__gettimeofday50);
That is correct. I do not know exactly how the __RENAME() statement
works, however, I can take a guess. The symbol gettimeofday should still
be defined and just call the __RENAME directly. The NetBSD people cannot
expect everybody to rename their functions just for them. There are very
many more functions that are also __RENAME d
> The Ada needs to change to
>
> function gettimeofday
> (tv : not null access struct_timeval;
> tz : struct_timezone_ptr) return Integer;
> pragma Import (C, gettimeofday, "gettimeofday50");
>
> (or maybe "_gettimeofday50", or even "__gettimeofday50" - nm will be
> your friend).
This is exactly what I want to avoid. I took a look at FreeBSD's libc
and glibc. None __RENAME their functions (at the very least the ones I
am interested)... I need to interrogate some developers in IRC.
I will update the thread if I find anything relevant.
Regards,
--
Fernando Oleo Blanco
https://irvise.xyz
next prev parent reply other threads:[~2021-08-29 20:36 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-29 11:06 Help: Ada in NetBSD Fernando Oleo Blanco
2021-08-29 13:19 ` Stephane Carrez
2021-08-29 18:08 ` Fernando Oleo Blanco
2021-08-29 18:25 ` Simon Wright
2021-08-29 20:36 ` Fernando Oleo Blanco [this message]
2021-08-29 22:08 ` Stephane Carrez
2021-08-30 7:37 ` Simon Wright
2021-08-30 8:14 ` Fernando Oleo Blanco
2021-08-30 10:24 ` Fernando Oleo Blanco
2021-08-30 12:15 ` Fernando Oleo Blanco
2021-08-30 18:49 ` Fernando Oleo Blanco
2021-08-30 19:23 ` Simon Wright
2021-09-01 9:44 ` Fernando Oleo Blanco
2021-09-01 21:41 ` Simon Wright
2021-09-02 22:16 ` Randy Brukardt
2021-09-03 20:18 ` Simon Wright
2021-08-29 17:34 ` Simon Wright
2021-08-29 17:45 ` Fernando Oleo Blanco
2021-09-01 13:28 ` John R. Marino
2021-09-01 14:58 ` Fernando Oleo Blanco
2021-09-17 17:36 ` Fernando Oleo Blanco
2021-09-18 16:39 ` Fernando Oleo Blanco
2021-09-22 20:05 ` Fernando Oleo Blanco
2021-09-22 20:57 ` Simon Wright
2021-09-23 8:04 ` Luke A. Guest
2021-09-23 10:48 ` Kevin Chadwick
2021-09-23 17:01 ` Fernando Oleo Blanco
2021-09-23 17:04 ` Fernando Oleo Blanco
2021-09-23 19:53 ` Fernando Oleo Blanco
2021-09-24 7:48 ` Simon Wright
2021-09-24 9:44 ` Fernando Oleo Blanco
2021-09-13 18:49 ` Fernando Oleo Blanco
2021-09-13 22:24 ` Dennis Lee Bieber
2021-09-17 17:19 ` Fernando Oleo Blanco
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox