unofficial mirror of libc-alpha@sourceware.org
 help / color / mirror / Atom feed
From: Elichai Turkel <elichai.turkel@gmail.com>
To: Christian Brauner <christian@brauner.io>
Cc: linux-api@vger.kernel.org, libc-alpha <libc-alpha@sourceware.org>
Subject: Re: Missing size_t declaration in UAPI
Date: Sat, 9 Nov 2019 13:52:11 +0200	[thread overview]
Message-ID: <CALN7hC+YmHGpniNKBiD03cBnTyO+cqXhrVvE7SdtgEb7GkG-LQ@mail.gmail.com> (raw)
In-Reply-To: <04EB5627-FD42-4397-995B-FDF051CFCFB5@brauner.io>

Hi,
I'm proposing to move `linux/tools/include/nolibc/nolibc.h` to the
UAPI interface.
It would then be included in `linux/types.h`
Would love feedback before I work on a patch.

Thanks.
Elichai.

On Fri, Nov 8, 2019 at 11:43 PM Christian Brauner <christian@brauner.io> wrote:
>
> On November 8, 2019 10:25:09 PM GMT+01:00, Elichai Turkel <elichai.turkel@gmail.com> wrote:
>>
>> Hi,
>> Currently compiling the following program fails:
>> ```
>> #include "linux/signal.h"
>> void main(void){}
>> ```
>> Because of `./asm/signal.h:127:2: error: unknown type name ‘size_t’`.
>>
>> I tried patching with `#include <stddef.h>` but there's a local file
>> with the same name overriding the include.
>>
>> How can this be fixed? the `drm` headers seems to work with `uint_*`.
>>
>> Right now the `linux/signal.h` header isn't usable without wrapping it
>> with another header to include/define size_t.
>>
>> Thanks,
>> Elichai.
>
>
> I think it might make sense to always cc the libc mailing list too for these things.



-- 
PGP: 5607C93B5F86650C

       reply	other threads:[~2019-11-09 11:52 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CALN7hCJRe1uL6pd+VwgzDt=5giMVjvX+YpF28f5qbLOVCZf4GQ@mail.gmail.com>
     [not found] ` <04EB5627-FD42-4397-995B-FDF051CFCFB5@brauner.io>
2019-11-09 11:52   ` Elichai Turkel [this message]
2019-11-09 12:15     ` Missing size_t declaration in UAPI Elichai Turkel
2019-11-09 12:27     ` Florian Weimer
     [not found]       ` <CALN7hC+QS=PJLvtH4k8paVae6PzLdAQJXyU64gUxXu-ULMKvng@mail.gmail.com>
     [not found]         ` <87sgmv5s8l.fsf@mid.deneb.enyo.de>
2020-01-29 11:41           ` Elichai Turkel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/libc/involved.html

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALN7hC+YmHGpniNKBiD03cBnTyO+cqXhrVvE7SdtgEb7GkG-LQ@mail.gmail.com \
    --to=elichai.turkel@gmail.com \
    --cc=christian@brauner.io \
    --cc=libc-alpha@sourceware.org \
    --cc=linux-api@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).