From patchwork Mon Apr 2 15:07:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Thibault X-Patchwork-Id: 894290 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-91324-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="yX9yNkKB"; 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 40FFvk0Jw8z9s28 for ; Tue, 3 Apr 2018 01:07:45 +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=Kbrfxi7a88l1UzXfS27HCuCLCEh10JxpNnRxviJvHSfL4IosnCviY nqEUuIDFWQtJMDGPheW84ARNxNulpLUDPd/x+YqfDEsrSCnxYB8vPgULC3QetxvJ ET18ndmlf26Tv0gkrY/NAcghsuEGjx+U+DIgaO17QvmfmbeR5R2isE= 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=pbMa9YzBKOpFVt7viPnXjNAwiaQ=; b=yX9yNkKBtLwjZIxFtKP3R91vXRZL qRdNHQCRwf2MRKYEsX58s9UVM3GNUWwyV++SgdOquC7YdYbeXUeyf3SrYMHzsBBr 2yCL4FGvQxcG8nAMHHKnE9ZsCt0PDsAZXx/9TT8EJGOflbRwpHMibWmVir3YCiGa g3748zpHhOL0TjU= Received: (qmail 75264 invoked by alias); 2 Apr 2018 15:07:40 -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 75253 invoked by uid 89); 2 Apr 2018 15:07:40 -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 exposition of UTIME_NOW, UTIME_OMIT Date: Mon, 2 Apr 2018 17:07:34 +0200 Message-Id: <20180402150734.1024-1-samuel.thibault@ens-lyon.org> * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE] (UTIME_NOW, UTIME_OMIT): Define macros. --- ChangeLog | 3 +++ sysdeps/mach/hurd/bits/stat.h | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index ff6787cc7b..a3cb00e7cd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -223,6 +223,9 @@ * README: Remove the mention of out-of-tree patches needed for GNU/Hurd. + * sysdeps/mach/hurd/bits/stat.h [!__USE_MISC && __USE_ATFILE] + (UTIME_NOW, UTIME_OMIT): Define macros. + 2018-04-02 Agustina Arzille Amos Jeffries David Michael diff --git a/sysdeps/mach/hurd/bits/stat.h b/sysdeps/mach/hurd/bits/stat.h index e354a05237..cb8680e000 100644 --- a/sysdeps/mach/hurd/bits/stat.h +++ b/sysdeps/mach/hurd/bits/stat.h @@ -244,11 +244,6 @@ struct stat64 # define SF_NOUNLINK 0x00100000 /* file may not be removed or renamed */ # define SF_SNAPSHOT 0x00200000 /* snapshot inode */ -#ifdef __USE_ATFILE -# define UTIME_NOW -1 /* corresponds to the current time */ -# define UTIME_OMIT -2 /* target time is omitted */ -#endif - __BEGIN_DECLS /* Set file flags for FILE to FLAGS. */ @@ -260,4 +255,9 @@ extern int fchflags (int __fd, unsigned long int __flags) __THROW; __END_DECLS #endif +#ifdef __USE_ATFILE +# define UTIME_NOW -1 /* corresponds to the current time */ +# define UTIME_OMIT -2 /* target time is omitted */ +#endif + #endif /* bits/stat.h */