From patchwork Tue Mar 27 21:20:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 891810 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-91268-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="rA6uYkIl"; 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 409kT74szlz9s0R for ; Wed, 28 Mar 2018 08:20:59 +1100 (AEDT) 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=CRYhqmbcnK2RCO2DQBj199PIu3TPrOnm2AyFBO220FqZlXhtWrwDD wG3MJ82Z3hycQ1MXDVKt6UZPaa/Y+dixQlaSKymhvW+95z+EcxW3F58RL3aZyddH 36kxxcnPt4XVAQsrjKwLstKTRiXJewrU1GadTGLw9r4zhIHYc3Ecgo= 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=zqOccVfcr4Nrj5BotAzW929OoG0=; b=rA6uYkIlDYoYhyPxi+PecGpk2tI8 uNRZN1ov3Jx7bv2FTE5tcv6NSgMiFDeH0b4vNheAeSovxhrin7B+GxxMUsw2mXte eUH139Nstp/JdUa1QMGurlwOroib4ZJC6U+7moHxBxYaBzUW+hDxlCBQqdJ36Ur/ ngE2jMpDLYr03oI= Received: (qmail 27050 invoked by alias); 27 Mar 2018 21:20:53 -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 27041 invoked by uid 89); 27 Mar 2018 21:20:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.1 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_HELO_PASS, SPF_NEUTRAL autolearn=ham version=3.3.2 spammy=H*r:4.90_1, advertise X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: advertise process memory locking option Date: Tue, 27 Mar 2018 23:20:45 +0200 Message-Id: <20180327212045.12801-1-samuel.thibault@ens-lyon.org> mlock/unlockall were already implemented. * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define. --- ChangeLog | 4 ++++ sysdeps/mach/hurd/bits/posix_opt.h | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 77751d628d..e6fe2aa1ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2018-03-27 Samuel Thibault + + * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_MEMLOCK): Define. + 2018-03-27 Andreas Schwab [BZ #23005] diff --git a/sysdeps/mach/hurd/bits/posix_opt.h b/sysdeps/mach/hurd/bits/posix_opt.h index 828d7ffc77..d42c010c20 100644 --- a/sysdeps/mach/hurd/bits/posix_opt.h +++ b/sysdeps/mach/hurd/bits/posix_opt.h @@ -42,8 +42,8 @@ /* Mapping of files to memory is supported. */ #define _POSIX_MAPPED_FILES 200809L -/* Locking of all memory could be supported in future. */ -#define _POSIX_MEMLOCK 0 +/* Locking of all memory is supported. */ +#define _POSIX_MEMLOCK 200809L /* Locking of ranges of memory is supported. */ #define _POSIX_MEMLOCK_RANGE 200809L