Message ID | 20240708222425.664-1-joel@rtems.org |
---|---|
State | New |
Headers |
Return-Path: <newlib-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 07BF9384A45B for <patchwork@sourceware.org>; Mon, 8 Jul 2024 22:24:46 +0000 (GMT) X-Original-To: newlib@sourceware.org Delivered-To: newlib@sourceware.org Received: from mail-yw1-f175.google.com (mail-yw1-f175.google.com [209.85.128.175]) by sourceware.org (Postfix) with ESMTPS id 168D23858D37 for <newlib@sourceware.org>; Mon, 8 Jul 2024 22:24:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 168D23858D37 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 168D23858D37 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=209.85.128.175 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720477472; cv=none; b=Wgc3uSc1v1AMjoMTNvL2EMi2sgoUljY+rnU5sus1dAEdF1j1NMUPQaBCanEeWqoL3gPjsAR/DPCPrU5CxhG/W3IxyZgTLKMc6AYdaE6SDAMKd1EZsx+3G1DcKQNwx7bf0XJPrR42j1kjp6H8gqImzyEw8VrP62KMnYg+uFQbZig= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1720477472; c=relaxed/simple; bh=35pWRebwuH9u5bGIm5eQ9CGNo0/8kdjZVJaR6c7VCWQ=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=eeJ7aCKM4PQhRcUozlozOLzEFQvAJPlS3CXJe9z8AWOn1jMEegNS+FeCZZ6RM2F0udHNANK0pb5R+aMPm6Zy2+qzIIIHgyOF3A0+S88WcJWtD1nTppZyqTbuufgUTLUV03en9jpjDhH7JytA+XbU/+qqPpbk8GBsYwlcI/GXj6Y= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-f175.google.com with SMTP id 00721157ae682-64f4fb6ce65so37948327b3.2 for <newlib@sourceware.org>; Mon, 08 Jul 2024 15:24:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720477467; x=1721082267; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GLVj4dDABJmYWAOWDHgGirbs54rVnaRSJg33NTKhOSg=; b=Uov0wZM9qbyFAfuZnIMgIpk4J3ECbWQOzixtprhq1WstnF2m78lfYhzmb2IGl2sI1P buzZYteIsWyrVULlBrYcrpFWmfeYwh8rAAPeanQn+LySVvbfdfpulobqW8zSeZh9UlqO hExcAktjLzUlI83yG1qewZWNRSHWL7uxql7ZXUWt0K8hnYvBi0dxmZ9iw6kxTJ8bnGUl fNf0XORgkZJVZjgl7kyFqs4mThrZMiwlZUXY5AHKeXv6oVS1vx5n0AWNCzjxS/ejhYq1 4LHigBNRsIQOzS2UGJ4em45b7Y9EnYVTdrPhmB7sVh1+6h6JZThGfdI0v/9uUqVoXAof kXwQ== X-Gm-Message-State: AOJu0YzQ0KanCXAI9sd5yrKR7B4M48rdp3kgy2bAxWeWsIWTfXifny8V /z/4TtSqh8VawXAS5XKbRcouZTmNtcPX4UCa9uLzt+kAAZ7JyXqYjAhIwZht X-Google-Smtp-Source: AGHT+IFPegchcZKV4Hbl+lWC1g2agCwrC9uw4smW5Lsl99KT51DsQHbgguN+fCKhtO4RPVvijKMb2Q== X-Received: by 2002:a0d:e605:0:b0:64b:89cd:7db0 with SMTP id 00721157ae682-658ef153a8bmr12780727b3.28.1720477467255; Mon, 08 Jul 2024 15:24:27 -0700 (PDT) Received: from devel.oarcorp.com (d27-96-189-151.evv.wideopenwest.com. [96.27.151.189]) by smtp.gmail.com with ESMTPSA id 00721157ae682-658e65e5f75sm1422557b3.87.2024.07.08.15.24.26 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Jul 2024 15:24:26 -0700 (PDT) From: Joel Sherrill <joel@rtems.org> To: newlib@sourceware.org Cc: Joel Sherrill <joel@rtems.org> Subject: [PATCH] libc/include/sys/resource.h: Add RUSAGE_THREAD Date: Mon, 8 Jul 2024 17:24:25 -0500 Message-Id: <20240708222425.664-1-joel@rtems.org> X-Mailer: git-send-email 2.24.4 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3039.0 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, GIT_PATCH_0, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Newlib mailing list <newlib.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/newlib>, <mailto:newlib-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/newlib/> List-Post: <mailto:newlib@sourceware.org> List-Help: <mailto:newlib-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/newlib>, <mailto:newlib-request@sourceware.org?subject=subscribe> Errors-To: newlib-bounces~patchwork=sourceware.org@sourceware.org |
Series |
libc/include/sys/resource.h: Add RUSAGE_THREAD
|
|
Commit Message
Joel Sherrill
July 8, 2024, 10:24 p.m. UTC
--- newlib/libc/include/sys/resource.h | 3 +++ 1 file changed, 3 insertions(+)
Comments
On Jul 8 17:24, Joel Sherrill wrote: > --- > newlib/libc/include/sys/resource.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/newlib/libc/include/sys/resource.h b/newlib/libc/include/sys/resource.h > index c0a0d2019..e653d08ee 100644 > --- a/newlib/libc/include/sys/resource.h > +++ b/newlib/libc/include/sys/resource.h > @@ -9,6 +9,9 @@ extern "C" { > > #define RUSAGE_SELF 0 /* calling process */ > #define RUSAGE_CHILDREN -1 /* terminated child processes */ > +#if __GNU_VISIBLE > +#define RUSAGE_THREAD 1 > +#endif > > struct rusage { > struct timeval ru_utime; /* user time used */ > -- > 2.24.4 LGTM, please push. Thanks, Corinna
Thanks. Pushed. On Tue, Jul 9, 2024 at 5:33 AM Corinna Vinschen <vinschen@redhat.com> wrote: > On Jul 8 17:24, Joel Sherrill wrote: > > --- > > newlib/libc/include/sys/resource.h | 3 +++ > > 1 file changed, 3 insertions(+) > > > > diff --git a/newlib/libc/include/sys/resource.h > b/newlib/libc/include/sys/resource.h > > index c0a0d2019..e653d08ee 100644 > > --- a/newlib/libc/include/sys/resource.h > > +++ b/newlib/libc/include/sys/resource.h > > @@ -9,6 +9,9 @@ extern "C" { > > > > #define RUSAGE_SELF 0 /* calling process */ > > #define RUSAGE_CHILDREN -1 /* terminated child > processes */ > > +#if __GNU_VISIBLE > > +#define RUSAGE_THREAD 1 > > +#endif > > > > struct rusage { > > struct timeval ru_utime; /* user time used */ > > -- > > 2.24.4 > > LGTM, please push. > > Thanks, > Corinna > >
diff --git a/newlib/libc/include/sys/resource.h b/newlib/libc/include/sys/resource.h index c0a0d2019..e653d08ee 100644 --- a/newlib/libc/include/sys/resource.h +++ b/newlib/libc/include/sys/resource.h @@ -9,6 +9,9 @@ extern "C" { #define RUSAGE_SELF 0 /* calling process */ #define RUSAGE_CHILDREN -1 /* terminated child processes */ +#if __GNU_VISIBLE +#define RUSAGE_THREAD 1 +#endif struct rusage { struct timeval ru_utime; /* user time used */