From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-1.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS,URIBL_SBL, URIBL_SBL_A shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id BA2971F454 for ; Sat, 9 Nov 2019 12:16:04 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-type :content-transfer-encoding; q=dns; s=default; b=B3XLbWQ+lliON9e4 Xu0iJ3K+vLmkMY7YSxD15xunN7JMwnssZzPdUWfEDToD9JKzFqbticaSWFg+w29+ xwW6q7Km4HTzkodYi5QGaVimZtUxa3xDFmk7Lkh+eaFVVpqITrFTOK3RO835/SrI SypCs54CJcmwMWAvs0OcmvKEuzk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-type :content-transfer-encoding; s=default; bh=qyy2tdsBRQUpMZKTC1zd2m b6ybo=; b=rCVLCIf1hXr0DtkPudjNv/l/3yo8Z00yWSb3VoAQ7GGLP8oPTFcBQU yD5RjqOXCV9tC8evUGtaxT4JOzIbolbsmSl24dCwM3IlzPTQtk4eV/oxVlZqhPdZ D7hqI0zaRZiYZHalaGmUNSMRM/IM9l33/EpxpVaXZCNhRXTQiFClI= Received: (qmail 17464 invoked by alias); 9 Nov 2019 12:16:01 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 17428 invoked by uid 89); 9 Nov 2019 12:16:00 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail-lf1-f65.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=j54Tn5ZbYPJoRnAJ36pqoaL2ZMzTK7scfSSZFRv5Ns4=; b=HFGwogEKFzU3/E3ccnJhVYjC3Frb5RFYaNjh16uApilhETbu7kX8MJcJqF5t2IPEaP oHKNs1iZkOCauhh4xdPBv4spmb+gtG2dqqlNbJZ6aMWZtXQciaIGXg9v53QPYvolkDnZ 49YJTzqmu8BZTyAwNlg2egzrgL4kjbav0klQpL4wrSqJ5lv9GHbVLsw5dunb/vrbV+y3 pHfcRYptrFG2EqXwFb/OluWDvcKdZHk1ENfKlpduFPfL31Y9DDbv1zHR6YQjXtCqkvrJ HJbuCC1V+ir+5aXNFXiR0Odge1M9xl197oQJ0p+O0I/3iX8J61U2c9rgduWvV5bJzQdw /vAw== MIME-Version: 1.0 References: <04EB5627-FD42-4397-995B-FDF051CFCFB5@brauner.io> In-Reply-To: From: Elichai Turkel Date: Sat, 9 Nov 2019 14:15:30 +0200 Message-ID: Subject: Re: Missing size_t declaration in UAPI To: Christian Brauner Cc: linux-api@vger.kernel.org, libc-alpha Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable After further reading into `nolibc.h` I think not all of it should be in UAPI (specifically the syscalls wrappers don't). I think it should be split and both the ASM declarations and the types(i.e. size_t) should be in UAPI On Sat, Nov 9, 2019 at 1:52 PM Elichai Turkel wr= ote: > > 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 = wrote: > > > > On November 8, 2019 10:25:09 PM GMT+01:00, Elichai Turkel 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 =E2=80=98si= ze_t=E2=80=99`. > >> > >> I tried patching with `#include ` 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 --=20 PGP: 5607C93B5F86650C