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=-3.9 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham 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 47AFB1F454 for ; Sat, 9 Nov 2019 12:27:39 +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:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; q=dns; s=default; b=NkOL2x34UfkrtnKP5jf9/96H5oWKb3OHgdaK/vMDb+f nAt67I8DdFd8KXp8363YbsnbY+paG1mfeHk0KTZzv7GjwKmfd32dB/W+b+ZK8whX KtXiUyyR1RmGTCT1DHjhbqW5pzVm1Fcfa3gWbC/xVE0Cuf+lenpQUtCA01I+RPFo = 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:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-type:content-transfer-encoding; s=default; bh=H6pJSHTUw73+GUN0zPAfopF9Qc8=; b=gEOjbNpD/vgZQ0pVk TLFkxS14Lz3nJhEOfLUfE+8iqMLPbpiM9G1zfclugexmedOv8uFsO9fDe7OnZSgP z54unaIUhnipJSxDQx7c0wuE8Is578GVZDMxjnDEgyfZF+rC0rbpephOgL0D/QUq UiigY/kbtAnHIG+6wJenw8vGvg= Received: (qmail 27287 invoked by alias); 9 Nov 2019 12:27:36 -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 27277 invoked by uid 89); 9 Nov 2019 12:27:36 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: albireo.enyo.de From: Florian Weimer To: Elichai Turkel Cc: Christian Brauner , linux-api@vger.kernel.org, libc-alpha Subject: Re: Missing size_t declaration in UAPI References: <04EB5627-FD42-4397-995B-FDF051CFCFB5@brauner.io> Date: Sat, 09 Nov 2019 13:27:30 +0100 In-Reply-To: (Elichai Turkel's message of "Sat, 9 Nov 2019 13:52:11 +0200") Message-ID: <87d0e19qvh.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable * Elichai Turkel: > 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. I do not think nolibc.h is a good starting point. The header is pretty much incompatible with everything, including multiple translation units that include it, so including it from will not work. >>> 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=98siz= e_t=E2=80=99`. >>> >>> I tried patching with `#include ` but there's a local file >>> with the same name overriding the include. is expected to be provided by the compiler. It's probably easier to fix your build environment.