From patchwork Thu Apr 19 21:56:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 901530 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-91743-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ens-lyon.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="T1tNmpeW"; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 40RtB00mgyz9s1t for ; Fri, 20 Apr 2018 07:56:55 +1000 (AEST) 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:date:message-id; q=dns; s= default; b=vNZYBvMo3fjLJUYVU+rp2994qyZMdL8Hn7RD3f0YVvQ9oCw/khmIA eWDHjwbi0C9rpoTTGslN+jA2IChrIpCOu0ZF6OdKfOSDzNVD4tZ+gCXVRlOCMWCX vRfCTe/K5bR1RZUvIuoLKoOvSzDtaTQX/rI/LYx18nrhDpHgxdce/4= 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:date:message-id; s=default; bh=SJRofIdEEA0AXFaIhiI1UPMkM3Q=; b=T1tNmpeWc892tyGWFdnBT16pdeks yREt6D106Ufz8clsguEtsacZhIKBjop4S/1p3dge87S//vPqD7RgMVXKWgnJz4zs PCyZ+ZlHfWFMuV5U/0p3aL5rBjz7Ej1kBpqL4sfaHQ68A/5Xngb7KvocaBgwLK+8 /bcobB80nxHUgkM= Received: (qmail 95852 invoked by alias); 19 Apr 2018 21:56:50 -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 Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 95758 invoked by uid 89); 19 Apr 2018 21:56:49 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.9 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, URIBL_RED autolearn=ham version=3.3.2 spammy=Hx-languages-length:1003 X-HELO: mail2-relais-roc.national.inria.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Add missing RLIM_SAVED_MAX/CUR Date: Thu, 19 Apr 2018 23:56:46 +0200 Message-Id: <20180419215646.38786-1-samuel.thibault@ens-lyon.org> * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros. --- ChangeLog | 1 + bits/resource.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 12ab0d6018..253f98332b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -83,6 +83,7 @@ [__USE_XOPEN && !__USE_XOPEN2K] (IUCLC, OLCUC): Define. [__USE_XOPEN] (OFDEL): New macro. [__USE_XOPEN && !__USE_XOPEN2K] (XCASE): New macro. + * bits/resource.h (RLIM_SAVED_MAX, RLIM_SAVED_CUR): New macros. 2018-04-18 Joseph Myers diff --git a/bits/resource.h b/bits/resource.h index cda455bccf..7693d20fed 100644 --- a/bits/resource.h +++ b/bits/resource.h @@ -86,6 +86,10 @@ enum __rlimit_resource # define RLIM64_INFINITY 0x7fffffffffffffffLL #endif +/* We can represent all limits. */ +#define RLIM_SAVED_MAX RLIM_INFINITY +#define RLIM_SAVED_CUR RLIM_INFINITY + /* Type for resource quantity measurement. */ #ifndef __USE_FILE_OFFSET64