From patchwork Sun Jul 27 22:59:58 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 374067 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ozlabs.org (Postfix) with ESMTP id 805A31400A3 for ; Mon, 28 Jul 2014 09:00:18 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 629CB8B5BC; Sun, 27 Jul 2014 23:00:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27+PYwfvjaDU; Sun, 27 Jul 2014 23:00:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 15ECE8B8BD; Sun, 27 Jul 2014 23:00:14 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from fraxinus.osuosl.org (fraxinus.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id C4A171C25F1 for ; Sun, 27 Jul 2014 23:00:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id BF7D589687 for ; Sun, 27 Jul 2014 23:00:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WVMf88a5_shz for ; Sun, 27 Jul 2014 23:00:12 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-la0-f52.google.com (mail-la0-f52.google.com [209.85.215.52]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 12B1C89661 for ; Sun, 27 Jul 2014 23:00:11 +0000 (UTC) Received: by mail-la0-f52.google.com with SMTP id e16so4803956lan.39 for ; Sun, 27 Jul 2014 16:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=W8gTm+P0kyCzF2tSp7w31VrMdkzWiHND71ABzLoQGBw=; b=tUfTiynOO5Un3AbO3Ll91krSFflyOdiJro8RgHGEfZEOFnYp7EF381FhcJOsXMRXY2 hAWcj0hUF9S8LRCVqOY1a2wt1RodCTr1WWEn5mfNHJetrremgjW0koriOZT6FxTtjPru DLB6rZo7Ba152l+i8phuoMwgxavIUQFBPwx11QtKGuuh0qS2tXt6EDYpX/JwAIhNsnNv 8HdoeoYIgecmM51sD1QLjyfow4I5WWl/rl3mhcUb1tyGU/xCYRGeOPOlY7NVu+u9p23Z Pjb3xUc8EYQ0Au4c92/d7XoJdV8NR0eOT1viF79Zt0eP7rdM6kLS82oD3XKF2OEHpdpC MWZQ== X-Received: by 10.112.171.134 with SMTP id au6mr29175560lbc.21.1406502009531; Sun, 27 Jul 2014 16:00:09 -0700 (PDT) Received: from octofox.metropolis ([5.18.160.1]) by mx.google.com with ESMTPSA id t7sm11336978lat.16.2014.07.27.16.00.08 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 27 Jul 2014 16:00:08 -0700 (PDT) From: Max Filippov To: uclibc@uclibc.org Subject: [PATCH v2] bits/time.h: synchronize CLOCK_* macros with glibc Date: Mon, 28 Jul 2014 02:59:58 +0400 Message-Id: <1406501998-423-1-git-send-email-jcmvbkbc@gmail.com> X-Mailer: git-send-email 1.8.1.4 X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: uclibc-bounces@uclibc.org Sender: uclibc-bounces@uclibc.org CLOCK_BOOTTIME is available since Linux 2.6.39, CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM are available since Linux 3.0. Signed-off-by: Max Filippov --- Changes v1->v2: - add CLOCK_REALTIME_ALARM and CLOCK_BOOTTIME_ALARM definitions libc/sysdeps/linux/common/bits/time.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libc/sysdeps/linux/common/bits/time.h b/libc/sysdeps/linux/common/bits/time.h index b397b60..71065e6 100644 --- a/libc/sysdeps/linux/common/bits/time.h +++ b/libc/sysdeps/linux/common/bits/time.h @@ -59,6 +59,12 @@ # define CLOCK_REALTIME_COARSE 5 /* Monotonic system-wide clock, updated only on ticks. */ # define CLOCK_MONOTONIC_COARSE 6 +/* Monotonic system-wide clock that includes time spent in suspension. */ +# define CLOCK_BOOTTIME 7 +/* Like CLOCK_REALTIME but also wakes suspended system. */ +# define CLOCK_REALTIME_ALARM 8 +/* Like CLOCK_BOOTTIME but also wakes suspended system. */ +# define CLOCK_BOOTTIME_ALARM 9 /* Flag to indicate time is absolute. */ # define TIMER_ABSTIME 1