From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-2.8 required=3.0 tests=AWL,BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 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 dcvr.yhbt.net (Postfix) with ESMTPS id 9ED661F461 for ; Thu, 29 Aug 2019 20:43:00 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; q=dns; s=default; b=RQ+38Q1v/PQAQ0dZ1DHuZztXg9o9jE I618PZ9FBrvYGtYSR/5s9xg4Wta3/5XlD7EoRHvyTr5eXgiLAHsYhMbBmG68AYZA gREYukp3gwIJTz47GJJ1iPJgGTFFg4QlPxwWjIVW2g6Big0zv4xAZ59FdjoAo6J8 X808OUutPKa5o= 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:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=default; bh=VwPpE9DOXMjkXDxZeWyfJT84VAc=; b=K4yw qOeFf6Vbvs6zaTMHOJ8WV3ImjXw3t9GoznuxP6bh0IjYs/UOIJ+NxX5i6Rxo1fNv vVk6piU2tB4+eQDZyiSksy3PipGqQZUJfkUmsSnuRLOdh05IUnk0JCJgOnNeXmPk 8ujfqTyFNYwWC0Cip4D5tKfocUmk5Yw4HPcn9r0= Received: (qmail 73942 invoked by alias); 29 Aug 2019 20:42:58 -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 Received: (qmail 73715 invoked by uid 89); 29 Aug 2019 20:42:58 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: hera.aquilenet.fr Date: Thu, 29 Aug 2019 22:42:51 +0200 From: Samuel Thibault To: Adhemerval Zanella Cc: Zack Weinberg , libc-alpha@sourceware.org, Joseph Myers , Florian Weimer , Lukasz Majewski , Alistair Francis , Stepan Golosunov , Arnd Bergmann Subject: Re: [PATCH v2 01/10] Change most internal uses of __gettimeofday to __clock_gettime. Message-ID: <20190829204251.3kyt234iifp22247@function> References: <20190828153236.18229-1-zackw@panix.com> <20190828153236.18229-2-zackw@panix.com> <4c23c0d7-f953-ee53-2a6b-1c501d43c9b3@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4c23c0d7-f953-ee53-2a6b-1c501d43c9b3@linaro.org> User-Agent: NeoMutt/20170609 (1.8.3) Adhemerval Zanella, le jeu. 29 août 2019 17:30:26 -0300, a ecrit: > > usleep (useconds_t useconds) > > { > > mach_port_t recv; > > - struct timeval before, after; > > > > recv = __mach_reply_port (); > > > > - if (__gettimeofday (&before, NULL) < 0) > > - return -1; > > (void) __mach_msg (NULL, MACH_RCV_MSG|MACH_RCV_TIMEOUT|MACH_RCV_INTERRUPT, > > 0, 0, recv, (useconds + 999) / 1000, MACH_PORT_NULL); > > __mach_port_destroy (mach_task_self (), recv); > > - if (__gettimeofday (&after, NULL) < 0) > > - return -1; > > > > return 0; > > } > > Not sure why hurd is calling get __gettimeofday here... I guess it's a debugging leftover. Samuel