From patchwork Sun Jan 28 23:07:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 866926 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-89750-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="GMuY4QCQ"; 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 3zV7b33j8zz9s75 for ; Mon, 29 Jan 2018 10:07:43 +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=TwQDvOt8L+abvOBkK9ZC0yj4KhdNlUhkq0ZV2JcT8XPk0qtRydY7b /r5BBgGAYzTSnZ+bLXFuuHYxxzHe5U7BnSgrTRQ7II6jMadV9mWrgcjvmXAJrmGT XgNO1CGimmVPKReioA64XzN7JHGrjr7ZtP/RTNU6YcNzeN4zfV1HqM= 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=zlIAZiK1/wgJ3/tzlWRZPg8ycN8=; b=GMuY4QCQETVnRNaD95Q2Lbcf0FlB x1wGrMSiWBcUFcdn+tiSvAqzTFRg1SNHLwxGeRroFcpPIkXL+f3FnVCEvcOnQVY5 4B67vG+INIlDTVlMIQCMvwYd7vpUav6WTdtejpXmlFeg26WGT1yBWDRItxdkrWB0 VC5+YhnCn5LUpDU= Received: (qmail 122646 invoked by alias); 28 Jan 2018 23:07:38 -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 122636 invoked by uid 89); 28 Jan 2018 23:07:37 -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= X-HELO: hera.aquilenet.fr From: Samuel Thibault To: libc-alpha@sourceware.org Cc: Samuel Thibault Subject: [hurd,commited] hurd: Fix _POSIX_VDISABLE value Date: Mon, 29 Jan 2018 00:07:19 +0100 Message-Id: <20180128230719.4488-1-samuel.thibault@ens-lyon.org> * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0' instead of invalid -1. --- ChangeLog | 2 ++ sysdeps/mach/hurd/bits/posix_opt.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index babe572b5f..6ee1d44de9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -99,6 +99,8 @@ * mach/Makefile (user-interfaces): Add mach/gnumach. * sysdeps/mach/configure.ac (mach_interface_list): Add gnumach. * sysdeps/mach/configure (mach_interface_list): Regenerate. + * sysdeps/mach/hurd/bits/posix_opt.h (_POSIX_VDISABLE): Set to '\0' + instead of invalid -1. 2008-12-18 Thomas Schwinge diff --git a/sysdeps/mach/hurd/bits/posix_opt.h b/sysdeps/mach/hurd/bits/posix_opt.h index 03082adaa6..828d7ffc77 100644 --- a/sysdeps/mach/hurd/bits/posix_opt.h +++ b/sysdeps/mach/hurd/bits/posix_opt.h @@ -53,7 +53,7 @@ /* Elements of the `c_cc' member of `struct termios' structure can be disabled by using the value _POSIX_VDISABLE. */ -#define _POSIX_VDISABLE ((unsigned char) -1) +#define _POSIX_VDISABLE '\0' /* Different Hurd filesystems might do these differently.