From patchwork Thu Nov 30 10:28:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yaakov Selkowitz X-Patchwork-Id: 120121 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp493313qgn; Thu, 30 Nov 2017 02:37:29 -0800 (PST) X-Google-Smtp-Source: AGs4zMa0FVlt++hoJdRQVzA/PxDwthWQRf3wRAoare6zPhZ6edmuKnyE+d19Qqr56VNtL3fYzrun X-Received: by 10.101.67.6 with SMTP id j6mr1938638pgq.278.1512038249152; Thu, 30 Nov 2017 02:37:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512038249; cv=none; d=google.com; s=arc-20160816; b=0i5/pryY1JWW8roVJU7nXp/aP4XMNe9wcoMyKazr4meBhV2/wwh1CxaS7EblEfe86U Vw/23iG4kxiO/nus7/flxrqGYgi2JjfIARRVQfLtDKTC99/EIz0tzqhDS15FTZYiMQrn 12tBXP4S+iaiegIZhCFok1OQXjjlja7yZkv8TTEU1HOlEcIwD9DWRwjdqEJw00bOOeiN R8UWvzcE7CZ3rv1WfQpxQdQ6HeBT/nThkw1h65mDoNWHpDa6ltf7jzQwe6FqwYxWZr1s XgnpBDA8/+j4pJWbB+x5pLSDVd2G+od4jmOTQLhlMeRoPq0fpLk5hcjYh6IyT84fIBsM hWSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:in-reply-to:message-id:date:subject:to:from:delivered-to :sender:list-help:list-post:list-archive:list-subscribe :list-unsubscribe:list-id:precedence:mailing-list:dkim-signature :domainkey-signature:arc-authentication-results; bh=8z0kr8YXRpGl6fUxxoax1yBeAid94OBn8tqmLFOJs9w=; b=MQmrudTa8pHsq9g7xOZXTWBHlLqYjR8XK6e/0LMFZNUA48cavtOZRWT5gzMhQAXiqf MhRWrEDIcV/BguzHd0gSSOUhqVuZqt85qjeuDq1Y2SBU6732zYsG74geGlE0Ag4xKTlU aan/T5LLabVJ5kWoINX+NU9ehz4KFrZNXFNUhY49UwebKkWE6httK+PQZQlZ1PXkw2RO UDU7pkUfs+V+ZVgjAkjGlj4Fvipp1Nl7P1Yv1q/AmMs7Ln4WTw6BwP8kvZN75Ba6UQUR CdddkOy9VDb412BUqqXyQ8WWWd85FQamN/1E+V0h2XaJnVxQgcFg8ca8hrccMGBBIX+V gsIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=AFqUnFDY; spf=pass (google.com: domain of newlib-return-15436-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15436-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id q61si2900909plb.581.2017.11.30.02.37.28 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 30 Nov 2017 02:37:29 -0800 (PST) Received-SPF: pass (google.com: domain of newlib-return-15436-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Authentication-Results: mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=AFqUnFDY; spf=pass (google.com: domain of newlib-return-15436-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) smtp.mailfrom=newlib-return-15436-patch=linaro.org@sourceware.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com 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:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=trdSYMJGwtmpXS6IvOuiWnOZ8BRpHYN J/zRGsnRuHmXn94/bj3rLNGNQR7n4Cl5cXolKgrs4eCuAW9bFTj8+efSHi+1WPn2 G18et9nTiDYXGzMMkSBgowtI6YDaEM1WoJuehY0Xk7NnO/lI3rZ4wl34gbuL/xmt pKwWD+oplYrw= 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:subject:date:message-id:in-reply-to :references; s=default; bh=Vvc8lzEFzagRAXhm6DfMiTQOZek=; b=AFqUn FDYPKc+mnKGE/BNNagOLzvedpeU5y12bgcMK0FhJS71hZ7FNZSnd9FDgrd+F35yb Arsxod1XKIswTTpEsKUujGyi7sDsGx8X153KdvQUeSR12vj6IOH1o51iAD9HFcrP C3L7eEWJqI0Xq+4iQFTmJF9iv3KJrHT01/a0NE= Received: (qmail 108772 invoked by alias); 30 Nov 2017 10:37:01 -0000 Mailing-List: contact newlib-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: newlib-owner@sourceware.org Delivered-To: mailing list newlib@sourceware.org Received: (qmail 108632 invoked by uid 89); 30 Nov 2017 10:37:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KB_WAM_FROM_NAME_SINGLEWORD, SPF_HELO_PASS, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=january, January, Universal X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 30 Nov 2017 10:36:59 +0000 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id ACCE4356FF for ; Thu, 30 Nov 2017 10:29:16 +0000 (UTC) Received: from localhost.localdomain (ovpn-116-45.phx2.redhat.com [10.3.116.45]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 651804DA0B for ; Thu, 30 Nov 2017 10:29:16 +0000 (UTC) From: Yaakov Selkowitz To: newlib@sourceware.org Subject: [PATCH 17/24] time: remove TRAD_SYNOPSIS Date: Thu, 30 Nov 2017 04:28:51 -0600 Message-Id: <20171130102858.16160-18-yselkowi@redhat.com> In-Reply-To: <20171130102858.16160-1-yselkowi@redhat.com> References: <20171130102858.16160-1-yselkowi@redhat.com> Signed-off-by: Yaakov Selkowitz --- newlib/libc/time/asctime.c | 10 +--------- newlib/libc/time/clock.c | 6 +----- newlib/libc/time/ctime.c | 11 +---------- newlib/libc/time/difftime.c | 8 +------- newlib/libc/time/gmtime.c | 10 +--------- newlib/libc/time/lcltime.c | 10 +--------- newlib/libc/time/mktime.c | 7 +------ newlib/libc/time/strftime.c | 10 +--------- newlib/libc/time/time.c | 7 +------ newlib/libc/time/tzlock.c | 6 +----- newlib/libc/time/tzset.c | 8 +------- newlib/libc/time/wcsftime.c | 2 +- 12 files changed, 12 insertions(+), 83 deletions(-) -- 2.15.0 diff --git a/newlib/libc/time/asctime.c b/newlib/libc/time/asctime.c index f56b511b8..b9345f581 100644 --- a/newlib/libc/time/asctime.c +++ b/newlib/libc/time/asctime.c @@ -19,19 +19,11 @@ INDEX INDEX _asctime_r -ANSI_SYNOPSIS +SYNOPSIS #include char *asctime(const struct tm *<[clock]>); char *_asctime_r(const struct tm *<[clock]>, char *<[buf]>); -TRAD_SYNOPSIS - #include - char *asctime(<[clock]>) - struct tm *<[clock]>; - char *asctime_r(<[clock]>) - struct tm *<[clock]>; - char *<[buf]>; - DESCRIPTION Format the time value at <[clock]> into a string of the form . Wed Jun 15 11:38:07 1988\n\0 diff --git a/newlib/libc/time/clock.c b/newlib/libc/time/clock.c index 0bcfbb6d3..53ca208ee 100644 --- a/newlib/libc/time/clock.c +++ b/newlib/libc/time/clock.c @@ -25,14 +25,10 @@ FUNCTION INDEX clock -ANSI_SYNOPSIS +SYNOPSIS #include clock_t clock(void); -TRAD_SYNOPSIS - #include - clock_t clock(); - DESCRIPTION Calculates the best available approximation of the cumulative amount of time used by your program since it started. To convert the result diff --git a/newlib/libc/time/ctime.c b/newlib/libc/time/ctime.c index df070a858..160eb9948 100644 --- a/newlib/libc/time/ctime.c +++ b/newlib/libc/time/ctime.c @@ -12,20 +12,11 @@ INDEX INDEX ctime_r -ANSI_SYNOPSIS +SYNOPSIS #include char *ctime(const time_t *<[clock]>); char *ctime_r(const time_t *<[clock]>, char *<[buf]>); -TRAD_SYNOPSIS - #include - char *ctime(<[clock]>) - time_t *<[clock]>; - - char *ctime_r(<[clock]>, <[buf]>) - time_t *<[clock]>; - char *<[buf]>; - DESCRIPTION Convert the time value at <[clock]> to local time (like <>) and format it into a string of the form diff --git a/newlib/libc/time/difftime.c b/newlib/libc/time/difftime.c index de6ffdb5c..893fa4700 100644 --- a/newlib/libc/time/difftime.c +++ b/newlib/libc/time/difftime.c @@ -10,16 +10,10 @@ FUNCTION INDEX difftime -ANSI_SYNOPSIS +SYNOPSIS #include double difftime(time_t <[tim1]>, time_t <[tim2]>); -TRAD_SYNOPSIS - #include - double difftime(<[tim1]>, <[tim2]>) - time_t <[tim1]>; - time_t <[tim2]>; - DESCRIPTION Subtracts the two times in the arguments: `<<<[tim1]> - <[tim2]>>>'. diff --git a/newlib/libc/time/gmtime.c b/newlib/libc/time/gmtime.c index 141d20327..c62a212f7 100644 --- a/newlib/libc/time/gmtime.c +++ b/newlib/libc/time/gmtime.c @@ -17,19 +17,11 @@ INDEX INDEX gmtime_r -ANSI_SYNOPSIS +SYNOPSIS #include struct tm *gmtime(const time_t *<[clock]>); struct tm *gmtime_r(const time_t *<[clock]>, struct tm *<[res]>); -TRAD_SYNOPSIS - #include - struct tm *gmtime(<[clock]>) - const time_t *<[clock]>; - struct tm *gmtime_r(<[clock]>, <[res]>) - const time_t *<[clock]>; - struct tm *<[res]>; - DESCRIPTION <> takes the time at <[clock]> representing the number of elapsed seconds since 00:00:00 on January 1, 1970, Universal diff --git a/newlib/libc/time/lcltime.c b/newlib/libc/time/lcltime.c index 2c9a25fd7..0129335a5 100644 --- a/newlib/libc/time/lcltime.c +++ b/newlib/libc/time/lcltime.c @@ -11,19 +11,11 @@ INDEX INDEX localtime_r -ANSI_SYNOPSIS +SYNOPSIS #include struct tm *localtime(time_t *<[clock]>); struct tm *localtime_r(time_t *<[clock]>, struct tm *<[res]>); -TRAD_SYNOPSIS - #include - struct tm *localtime(<[clock]>) - time_t *<[clock]>; - struct tm *localtime(<[clock]>, <[res]>) - time_t *<[clock]>; - struct tm *<[res]>; - DESCRIPTION <> converts the time at <[clock]> into local time, then converts its representation from the arithmetic representation to the diff --git a/newlib/libc/time/mktime.c b/newlib/libc/time/mktime.c index 44c0257f7..4849ea407 100644 --- a/newlib/libc/time/mktime.c +++ b/newlib/libc/time/mktime.c @@ -20,15 +20,10 @@ FUNCTION INDEX mktime -ANSI_SYNOPSIS +SYNOPSIS #include time_t mktime(struct tm *<[timp]>); -TRAD_SYNOPSIS - #include - time_t mktime(<[timp]>) - struct tm *<[timp]>; - DESCRIPTION <> assumes the time at <[timp]> is a local time, and converts its representation from the traditional representation defined by diff --git a/newlib/libc/time/strftime.c b/newlib/libc/time/strftime.c index 382318047..cf426d673 100644 --- a/newlib/libc/time/strftime.c +++ b/newlib/libc/time/strftime.c @@ -25,7 +25,7 @@ INDEX INDEX strftime_l -ANSI_SYNOPSIS +SYNOPSIS #include size_t strftime(char *restrict <[s]>, size_t <[maxsize]>, const char *restrict <[format]>, @@ -35,14 +35,6 @@ ANSI_SYNOPSIS const struct tm *restrict <[timp]>, locale_t <[locale]>); -TRAD_SYNOPSIS - #include - size_t strftime(<[s]>, <[maxsize]>, <[format]>, <[timp]>) - char *<[s]>; - size_t <[maxsize]>; - char *<[format]>; - struct tm *<[timp]>; - DESCRIPTION <> converts a <> representation of the time (at <[timp]>) into a null-terminated string, starting at <[s]> and occupying diff --git a/newlib/libc/time/time.c b/newlib/libc/time/time.c index 9de71d457..e0c3a8e74 100644 --- a/newlib/libc/time/time.c +++ b/newlib/libc/time/time.c @@ -5,15 +5,10 @@ FUNCTION INDEX time -ANSI_SYNOPSIS +SYNOPSIS #include time_t time(time_t *<[t]>); -TRAD_SYNOPSIS - #include - time_t time(<[t]>) - time_t *<[t]>; - DESCRIPTION <