public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 24/24] HOWTO: remove reference to TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (2 preceding siblings ...)
  2017-11-30 10:29 ` [PATCH 11/24] signal: " Yaakov Selkowitz
@ 2017-11-30 10:29 ` Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 03/24] locale: remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (20 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:29 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/HOWTO | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/newlib/HOWTO b/newlib/HOWTO
index c5754e5b8..bb49e79dd 100644
--- a/newlib/HOWTO
+++ b/newlib/HOWTO
@@ -47,14 +47,8 @@ but these, however, should be carefully limited and be given alternates for
 when a non-printed manual is produced--such as when info pages are produced.
 For an example of this kind of usage, see libm/common/s_logb.c.
 
-     Please note that most files with documentation contain both an
-ANSI_SYNOPSIS and a TRAD_SYNOPSIS section.  The TRAD_SYNOPSIS section gets
-deleted (since at least 2000) by makedoc, so when working on files these
-can safely be deleted and if you're making a new file, there is no need
-to add the TRAD_SYNOPSIS section.
-
      If writing a new function that requires documentation, the required
-sections are FUNCTION, INDEX, ANSI_SYNOPSIS (or SYNOPSIS), DESCRIPTION, RETURNS,
+sections are FUNCTION, INDEX, SYNOPSIS, DESCRIPTION, RETURNS,
 and PORTABILITY.  BUGS and SEEALSO should be added as appropriate.
 
      Source files which contain documentation are processed into ".def"
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 12/24] stdio: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (8 preceding siblings ...)
  2017-11-30 10:29 ` [PATCH 02/24] iconv: " Yaakov Selkowitz
@ 2017-11-30 10:29 ` Yaakov Selkowitz
  2017-11-30 10:34 ` [PATCH 14/24] stdlib: " Yaakov Selkowitz
                   ` (14 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:29 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/stdio/clearerr.c       | 12 +-------
 newlib/libc/stdio/diprintf.c       |  2 +-
 newlib/libc/stdio/dprintf.c        |  2 +-
 newlib/libc/stdio/fclose.c         | 11 +-------
 newlib/libc/stdio/fcloseall.c      |  9 +-----
 newlib/libc/stdio/fdopen.c         | 13 +--------
 newlib/libc/stdio/feof.c           | 12 +-------
 newlib/libc/stdio/ferror.c         | 12 +-------
 newlib/libc/stdio/fflush.c         |  2 +-
 newlib/libc/stdio/fgetc.c          | 23 +--------------
 newlib/libc/stdio/fgetpos.c        | 13 +--------
 newlib/libc/stdio/fgets.c          | 30 +-------------------
 newlib/libc/stdio/fgetwc.c         | 49 +-------------------------------
 newlib/libc/stdio/fgetws.c         | 30 +-------------------
 newlib/libc/stdio/fileno.c         | 12 +-------
 newlib/libc/stdio/fmemopen.c       |  2 +-
 newlib/libc/stdio/fopen.c          | 13 +--------
 newlib/libc/stdio/fopencookie.c    |  2 +-
 newlib/libc/stdio/fpurge.c         |  2 +-
 newlib/libc/stdio/fputc.c          | 26 +----------------
 newlib/libc/stdio/fputs.c          | 26 +----------------
 newlib/libc/stdio/fputwc.c         | 57 +-------------------------------------
 newlib/libc/stdio/fputws.c         | 26 +----------------
 newlib/libc/stdio/fread.c          | 34 +----------------------
 newlib/libc/stdio/freopen.c        | 15 +---------
 newlib/libc/stdio/fseek.c          | 26 +----------------
 newlib/libc/stdio/fseeko.c         | 26 +----------------
 newlib/libc/stdio/fsetlocking.c    |  2 +-
 newlib/libc/stdio/fsetpos.c        | 13 +--------
 newlib/libc/stdio/ftell.c          | 18 +-----------
 newlib/libc/stdio/ftello.c         | 18 +-----------
 newlib/libc/stdio/funopen.c        |  2 +-
 newlib/libc/stdio/fwide.c          | 13 +--------
 newlib/libc/stdio/fwrite.c         | 34 +----------------------
 newlib/libc/stdio/getc.c           | 12 +-------
 newlib/libc/stdio/getchar.c        |  9 +-----
 newlib/libc/stdio/getdelim.c       | 10 +------
 newlib/libc/stdio/getline.c        |  9 +-----
 newlib/libc/stdio/gets.c           | 12 +-------
 newlib/libc/stdio/getw.c           |  7 +----
 newlib/libc/stdio/getwchar.c       | 18 +-----------
 newlib/libc/stdio/mktemp.c         |  2 +-
 newlib/libc/stdio/nano-vfprintf.c  |  2 +-
 newlib/libc/stdio/nano-vfscanf.c   | 36 +-----------------------
 newlib/libc/stdio/open_memstream.c |  2 +-
 newlib/libc/stdio/perror.c         | 11 +-------
 newlib/libc/stdio/putc.c           | 14 +---------
 newlib/libc/stdio/putchar.c        | 11 +-------
 newlib/libc/stdio/puts.c           | 11 +-------
 newlib/libc/stdio/putw.c           |  8 +-----
 newlib/libc/stdio/putwchar.c       | 21 +-------------
 newlib/libc/stdio/remove.c         | 11 +-------
 newlib/libc/stdio/rename.c         |  8 +-----
 newlib/libc/stdio/rewind.c         | 11 +-------
 newlib/libc/stdio/setbuf.c         |  8 +-----
 newlib/libc/stdio/setbuffer.c      |  9 +-----
 newlib/libc/stdio/setlinebuf.c     |  7 +----
 newlib/libc/stdio/setvbuf.c        | 10 +------
 newlib/libc/stdio/siprintf.c       |  2 +-
 newlib/libc/stdio/siscanf.c        | 32 +--------------------
 newlib/libc/stdio/sprintf.c        |  2 +-
 newlib/libc/stdio/sscanf.c         | 32 +--------------------
 newlib/libc/stdio/stdio_ext.c      |  2 +-
 newlib/libc/stdio/swprintf.c       |  2 +-
 newlib/libc/stdio/swscanf.c        | 32 +--------------------
 newlib/libc/stdio/tmpfile.c        |  9 +-----
 newlib/libc/stdio/tmpnam.c         | 20 +------------
 newlib/libc/stdio/ungetc.c         |  2 +-
 newlib/libc/stdio/ungetwc.c        |  2 +-
 newlib/libc/stdio/vfprintf.c       |  2 +-
 newlib/libc/stdio/vfscanf.c        | 36 +-----------------------
 newlib/libc/stdio/vfwprintf.c      |  2 +-
 newlib/libc/stdio/vfwscanf.c       | 36 +-----------------------
 newlib/libc/stdio/viprintf.c       |  2 +-
 newlib/libc/stdio/viscanf.c        | 36 +-----------------------
 75 files changed, 75 insertions(+), 1022 deletions(-)

diff --git a/newlib/libc/stdio/clearerr.c b/newlib/libc/stdio/clearerr.c
index 9bf0837f5..4174a7425 100644
--- a/newlib/libc/stdio/clearerr.c
+++ b/newlib/libc/stdio/clearerr.c
@@ -24,7 +24,7 @@ INDEX
 INDEX
 	clearerr_unlocked
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	void clearerr(FILE *<[fp]>);
 
@@ -32,16 +32,6 @@ ANSI_SYNOPSIS
 	#include <stdio.h>
 	void clearerr_unlocked(FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	void clearerr(<[fp]>)
-	FILE *<[fp]>;
-
-	#define _BSD_SOURCE
-	#include <stdio.h>
-	void clearerr_unlocked(<[fp]>)
-	FILE *<[fp]>;
-
 DESCRIPTION
 The <<stdio>> functions maintain an error indicator with each file
 pointer <[fp]>, to record whether any read or write errors have
diff --git a/newlib/libc/stdio/diprintf.c b/newlib/libc/stdio/diprintf.c
index e0a5595e1..fde6ea44c 100644
--- a/newlib/libc/stdio/diprintf.c
+++ b/newlib/libc/stdio/diprintf.c
@@ -16,7 +16,7 @@ INDEX
 INDEX
 	_vdiprintf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	int diprintf(int <[fd]>, const char *<[format]>, ...);
diff --git a/newlib/libc/stdio/dprintf.c b/newlib/libc/stdio/dprintf.c
index 2925ceb31..7389eefaa 100644
--- a/newlib/libc/stdio/dprintf.c
+++ b/newlib/libc/stdio/dprintf.c
@@ -16,7 +16,7 @@ INDEX
 INDEX
 	_vdprintf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	int dprintf(int <[fd]>, const char *restrict <[format]>, ...);
diff --git a/newlib/libc/stdio/fclose.c b/newlib/libc/stdio/fclose.c
index 0ce112306..3325a8920 100644
--- a/newlib/libc/stdio/fclose.c
+++ b/newlib/libc/stdio/fclose.c
@@ -24,20 +24,11 @@ INDEX
 INDEX
 	_fclose_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fclose(FILE *<[fp]>);
 	int _fclose_r(struct _reent *<[reent]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fclose(<[fp]>)
-	FILE *<[fp]>;
-
-	int fclose(<[fp]>)
-        struct _reent *<[reent]>
-	FILE *<[fp]>;
-
 DESCRIPTION
 If the file or stream identified by <[fp]> is open, <<fclose>> closes
 it, after first ensuring that any pending data is written (by calling
diff --git a/newlib/libc/stdio/fcloseall.c b/newlib/libc/stdio/fcloseall.c
index 090f3f2c3..a578e8a00 100644
--- a/newlib/libc/stdio/fcloseall.c
+++ b/newlib/libc/stdio/fcloseall.c
@@ -24,18 +24,11 @@ INDEX
 INDEX
 	_fcloseall_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fcloseall(void);
 	int _fcloseall_r (struct _reent *<[ptr]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fcloseall()
-
-	int _fcloseall_r (<[ptr]>)
-	struct _reent *<[ptr]>;
-
 DESCRIPTION
 <<fcloseall>> closes all files in the current reentrancy struct's domain.
 The function <<_fcloseall_r>> is the same function, except the reentrancy
diff --git a/newlib/libc/stdio/fdopen.c b/newlib/libc/stdio/fdopen.c
index 77f599b65..e0268ed87 100644
--- a/newlib/libc/stdio/fdopen.c
+++ b/newlib/libc/stdio/fdopen.c
@@ -24,23 +24,12 @@ INDEX
 INDEX
 	_fdopen_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *fdopen(int <[fd]>, const char *<[mode]>);
 	FILE *_fdopen_r(struct _reent *<[reent]>,
                         int <[fd]>, const char *<[mode]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	FILE *fdopen(<[fd]>, <[mode]>)
-	int <[fd]>;
-	char *<[mode]>;
-
-	FILE *_fdopen_r(<[reent]>, <[fd]>, <[mode]>)
-	struct _reent *<[reent]>;
-        int <[fd]>;
-	char *<[mode]>);
-
 DESCRIPTION
 <<fdopen>> produces a file descriptor of type <<FILE *>>, from a
 descriptor for an already-open file (returned, for example, by the
diff --git a/newlib/libc/stdio/feof.c b/newlib/libc/stdio/feof.c
index 7aadd8209..617ce58df 100644
--- a/newlib/libc/stdio/feof.c
+++ b/newlib/libc/stdio/feof.c
@@ -24,7 +24,7 @@ INDEX
 INDEX
 	feof_unlocked
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int feof(FILE *<[fp]>);
 
@@ -32,16 +32,6 @@ ANSI_SYNOPSIS
 	#include <stdio.h>
 	int feof_unlocked(FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int feof(<[fp]>)
-	FILE *<[fp]>;
-
-	#define _BSD_SOURCE
-	#include <stdio.h>
-	int feof_unlocked(<[fp]>)
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<feof>> tests whether or not the end of the file identified by <[fp]>
 has been reached.
diff --git a/newlib/libc/stdio/ferror.c b/newlib/libc/stdio/ferror.c
index f93063d71..f99df2311 100644
--- a/newlib/libc/stdio/ferror.c
+++ b/newlib/libc/stdio/ferror.c
@@ -24,7 +24,7 @@ INDEX
 INDEX
 	ferror_unlocked
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int ferror(FILE *<[fp]>);
 
@@ -32,16 +32,6 @@ ANSI_SYNOPSIS
 	#include <stdio.h>
 	int ferror_unlocked(FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int ferror(<[fp]>)
-	FILE *<[fp]>;
-
-	#define _BSD_SOURCE
-	#include <stdio.h>
-	int ferror_unlocked(<[fp]>)
-	FILE *<[fp]>;
-
 DESCRIPTION
 The <<stdio>> functions maintain an error indicator with each file
 pointer <[fp]>, to record whether any read or write errors have
diff --git a/newlib/libc/stdio/fflush.c b/newlib/libc/stdio/fflush.c
index a4e639e72..199acbdc3 100644
--- a/newlib/libc/stdio/fflush.c
+++ b/newlib/libc/stdio/fflush.c
@@ -28,7 +28,7 @@ INDEX
 INDEX
 	_fflush_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fflush(FILE *<[fp]>);
 
diff --git a/newlib/libc/stdio/fgetc.c b/newlib/libc/stdio/fgetc.c
index 34447a2c8..54322a069 100644
--- a/newlib/libc/stdio/fgetc.c
+++ b/newlib/libc/stdio/fgetc.c
@@ -28,7 +28,7 @@ INDEX
 INDEX
 	_fgetc_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fgetc(FILE *<[fp]>);
 
@@ -43,27 +43,6 @@ ANSI_SYNOPSIS
 	#include <stdio.h>
 	int _fgetc_unlocked_r(struct _reent *<[ptr]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fgetc(<[fp]>)
-	FILE *<[fp]>;
-
-	#define _BSD_SOURCE
-	#include <stdio.h>
-	int fgetc_unlocked(<[fp]>)
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	int _fgetc_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
-	#define _BSD_SOURCE
-	#include <stdio.h>
-	int _fgetc_unlocked_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 Use <<fgetc>> to get the next single character from the file or stream
 identified by <[fp]>.  As a side effect, <<fgetc>> advances the file's
diff --git a/newlib/libc/stdio/fgetpos.c b/newlib/libc/stdio/fgetpos.c
index 20dd1082c..3074526b4 100644
--- a/newlib/libc/stdio/fgetpos.c
+++ b/newlib/libc/stdio/fgetpos.c
@@ -24,22 +24,11 @@ INDEX
 INDEX
 	_fgetpos_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fgetpos(FILE *restrict <[fp]>, fpos_t *restrict <[pos]>);
 	int _fgetpos_r(struct _reent *<[ptr]>, FILE *restrict <[fp]>, fpos_t *restrict <[pos]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fgetpos(<[fp]>, <[pos]>)
-	FILE *<[fp]>;
-	fpos_t *<[pos]>;
-
-	int _fgetpos_r(<[ptr]>, <[fp]>, <[pos]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-	fpos_t *<[pos]>;
-
 DESCRIPTION
 Objects of type <<FILE>> can have a ``position'' that records how much
 of the file your program has already read.  Many of the <<stdio>> functions
diff --git a/newlib/libc/stdio/fgets.c b/newlib/libc/stdio/fgets.c
index f7c8a0300..54097510d 100644
--- a/newlib/libc/stdio/fgets.c
+++ b/newlib/libc/stdio/fgets.c
@@ -28,7 +28,7 @@ INDEX
 INDEX
 	_fgets_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdio.h>
 	char *fgets(char *restrict <[buf]>, int <[n]>, FILE *restrict <[fp]>);
 
@@ -42,34 +42,6 @@ ANSI_SYNOPSIS
         #include <stdio.h>
 	char *_fgets_unlocked_r(struct _reent *<[ptr]>, char *restrict <[buf]>, int <[n]>, FILE *restrict <[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	char *fgets(<[buf]>,<[n]>,<[fp]>)
-        char *<[buf]>;
-	int <[n]>;
-	FILE *<[fp]>;
-
-	#define _GNU_SOURCE
-	#include <stdio.h>
-	char *fgets_unlocked(<[buf]>,<[n]>,<[fp]>)
-        char *<[buf]>;
-	int <[n]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	char *_fgets_r(<[ptr]>, <[buf]>,<[n]>,<[fp]>)
-	struct _reent *<[ptr]>;
-        char *<[buf]>;
-	int <[n]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	char *_fgets_unlocked_r(<[ptr]>, <[buf]>,<[n]>,<[fp]>)
-	struct _reent *<[ptr]>;
-        char *<[buf]>;
-	int <[n]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 	Reads at most <[n-1]> characters from <[fp]> until a newline
 	is found. The characters including to the newline are stored
diff --git a/newlib/libc/stdio/fgetwc.c b/newlib/libc/stdio/fgetwc.c
index d6de4b6cb..07731487d 100644
--- a/newlib/libc/stdio/fgetwc.c
+++ b/newlib/libc/stdio/fgetwc.c
@@ -45,7 +45,7 @@ INDEX
 INDEX
 	_getwc_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <wchar.h>
 	wint_t fgetwc(FILE *<[fp]>);
@@ -80,53 +80,6 @@ ANSI_SYNOPSIS
 	#include <wchar.h>
 	wint_t _getwc_unlocked_r(struct _reent *<[ptr]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t fgetwc(<[fp]>)
-	FILE *<[fp]>;
-
-	#define _GNU_SOURCE
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t fgetwc_unlocked(<[fp]>)
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t _fgetwc_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t _fgetwc_unlocked_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t getwc(<[fp]>)
-	FILE *<[fp]>;
-
-	#define _GNU_SOURCE
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t getwc_unlocked(<[fp]>)
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t _getwc_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t _getwc_unlocked_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 Use <<fgetwc>> to get the next wide character from the file or stream
 identified by <[fp]>.  As a side effect, <<fgetwc>> advances the file's
diff --git a/newlib/libc/stdio/fgetws.c b/newlib/libc/stdio/fgetws.c
index ae1f48e66..3dbf3ef74 100644
--- a/newlib/libc/stdio/fgetws.c
+++ b/newlib/libc/stdio/fgetws.c
@@ -37,7 +37,7 @@ INDEX
 INDEX
 	_fgetws_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *fgetws(wchar_t *__restrict <[ws]>, int <[n]>,
                         FILE *__restrict <[fp]>);
@@ -55,34 +55,6 @@ ANSI_SYNOPSIS
 	wchar_t *_fgetws_unlocked_r(struct _reent *<[ptr]>, wchar_t *<[ws]>,
                            int <[n]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	wchar_t *fgetws(<[ws]>,<[n]>,<[fp]>)
-	wchar_t *__restrict <[ws]>;
-	int <[n]>;
-	FILE *__restrict <[fp]>;
-
-	#define _GNU_SOURCE
-	#include <wchar.h>
-	wchar_t *fgetws_unlocked(<[ws]>,<[n]>,<[fp]>)
-	wchar_t *__restrict <[ws]>;
-	int <[n]>;
-	FILE *__restrict <[fp]>;
-
-	#include <wchar.h>
-	wchar_t *_fgetws_r(<[ptr]>, <[ws]>,<[n]>,<[fp]>)
-	struct _reent *<[ptr]>;
-	wchar_t *<[ws]>;
-	int <[n]>;
-	FILE *<[fp]>;
-
-	#include <wchar.h>
-	wchar_t *_fgetws_unlocked_r(<[ptr]>, <[ws]>,<[n]>,<[fp]>)
-	struct _reent *<[ptr]>;
-	wchar_t *<[ws]>;
-	int <[n]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 Reads at most <[n-1]> wide characters from <[fp]> until a newline
 is found. The wide characters including to the newline are stored
diff --git a/newlib/libc/stdio/fileno.c b/newlib/libc/stdio/fileno.c
index 7b505827d..949a381f8 100644
--- a/newlib/libc/stdio/fileno.c
+++ b/newlib/libc/stdio/fileno.c
@@ -24,7 +24,7 @@ INDEX
 INDEX
 	fileno_unlocked
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fileno(FILE *<[fp]>);
 
@@ -32,16 +32,6 @@ ANSI_SYNOPSIS
 	#include <stdio.h>
 	int fileno_unlocked(FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fileno(<[fp]>)
-	FILE *<[fp]>;
-
-	#define _BSD_SOURCE
-	#include <stdio.h>
-	int fileno_unlocked(<[fp]>)
-	FILE *<[fp]>;
-
 DESCRIPTION
 You can use <<fileno>> to return the file descriptor identified by <[fp]>.
 
diff --git a/newlib/libc/stdio/fmemopen.c b/newlib/libc/stdio/fmemopen.c
index 17a3c9b5c..520ba1b80 100644
--- a/newlib/libc/stdio/fmemopen.c
+++ b/newlib/libc/stdio/fmemopen.c
@@ -10,7 +10,7 @@ FUNCTION
 INDEX
 	fmemopen
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *fmemopen(void *restrict <[buf]>, size_t <[size]>,
 		       const char *restrict <[mode]>);
diff --git a/newlib/libc/stdio/fopen.c b/newlib/libc/stdio/fopen.c
index 6d07561a3..2551befed 100644
--- a/newlib/libc/stdio/fopen.c
+++ b/newlib/libc/stdio/fopen.c
@@ -24,24 +24,13 @@ INDEX
 INDEX
 	_fopen_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *fopen(const char *<[file]>, const char *<[mode]>);
 
 	FILE *_fopen_r(struct _reent *<[reent]>, 
                        const char *<[file]>, const char *<[mode]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	FILE *fopen(<[file]>, <[mode]>)
-	char *<[file]>;
-	char *<[mode]>;
-
-	FILE *_fopen_r(<[reent]>, <[file]>, <[mode]>)
-	struct _reent *<[reent]>;
-	char *<[file]>;
-	char *<[mode]>;
-
 DESCRIPTION
 <<fopen>> initializes the data structures needed to read or write a
 file.  Specify the file's name as the string at <[file]>, and the kind
diff --git a/newlib/libc/stdio/fopencookie.c b/newlib/libc/stdio/fopencookie.c
index 3697b48d7..eb9861392 100644
--- a/newlib/libc/stdio/fopencookie.c
+++ b/newlib/libc/stdio/fopencookie.c
@@ -10,7 +10,7 @@ FUNCTION
 INDEX
 	fopencookie
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *fopencookie(const void *<[cookie]>, const char *<[mode]>,
 			  cookie_io_functions_t <[functions]>);
diff --git a/newlib/libc/stdio/fpurge.c b/newlib/libc/stdio/fpurge.c
index dc052e85b..de621feb6 100644
--- a/newlib/libc/stdio/fpurge.c
+++ b/newlib/libc/stdio/fpurge.c
@@ -14,7 +14,7 @@ INDEX
 INDEX
 	__fpurge
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fpurge(FILE *<[fp]>);
 
diff --git a/newlib/libc/stdio/fputc.c b/newlib/libc/stdio/fputc.c
index 0aad0a9f7..f9273d6ae 100644
--- a/newlib/libc/stdio/fputc.c
+++ b/newlib/libc/stdio/fputc.c
@@ -28,7 +28,7 @@ INDEX
 INDEX
 	_fputc_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fputc(int <[ch]>, FILE *<[fp]>);
 
@@ -42,30 +42,6 @@ ANSI_SYNOPSIS
 	#include <stdio.h>
 	int _fputc_unlocked_r(struct _rent *<[ptr]>, int <[ch]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fputc(<[ch]>, <[fp]>)
-	int <[ch]>;
-	FILE *<[fp]>;
-
-	#define _BSD_SOURCE
-	#include <stdio.h>
-	int fputc_unlocked(<[ch]>, <[fp]>)
-	int <[ch]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	int _fputc_r(<[ptr]>, <[ch]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	int <[ch]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	int _fputc_unlocked_r(<[ptr]>, <[ch]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	int <[ch]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<fputc>> converts the argument <[ch]> from an <<int>> to an
 <<unsigned char>>, then writes it to the file or stream identified by
diff --git a/newlib/libc/stdio/fputs.c b/newlib/libc/stdio/fputs.c
index 75f65d96e..c4588265b 100644
--- a/newlib/libc/stdio/fputs.c
+++ b/newlib/libc/stdio/fputs.c
@@ -28,7 +28,7 @@ INDEX
 INDEX
 	_fputs_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fputs(const char *restrict <[s]>, FILE *restrict <[fp]>);
 
@@ -42,30 +42,6 @@ ANSI_SYNOPSIS
 	#include <stdio.h>
 	int _fputs_unlocked_r(struct _reent *<[ptr]>, const char *restrict <[s]>, FILE *restrict <[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fputs(<[s]>, <[fp]>)
-	char *<[s]>;
-	FILE *<[fp]>;
-
-	#define _GNU_SOURCE
-	#include <stdio.h>
-	int fputs_unlocked(<[s]>, <[fp]>)
-	char *<[s]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	int _fputs_r(<[ptr]>, <[s]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	char *<[s]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	int _fputs_unlocked_r(<[ptr]>, <[s]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	char *<[s]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<fputs>> writes the string at <[s]> (but without the trailing null)
 to the file or stream identified by <[fp]>.
diff --git a/newlib/libc/stdio/fputwc.c b/newlib/libc/stdio/fputwc.c
index 9c2ef6c3b..5e2a9e322 100644
--- a/newlib/libc/stdio/fputwc.c
+++ b/newlib/libc/stdio/fputwc.c
@@ -45,7 +45,7 @@ INDEX
 INDEX
 	_putwc_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <wchar.h>
 	wint_t fputwc(wchar_t <[wc]>, FILE *<[fp]>);
@@ -80,61 +80,6 @@ ANSI_SYNOPSIS
 	#include <wchar.h>
 	wint_t _putwc_unlocked_r(struct _reent *<[ptr]>, wchar_t <[wc]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t fputwc(<[wc]>, <[fp]>)
-	wchar_t <[wc]>;
-	FILE *<[fp]>;
-
-	#define _GNU_SOURCE
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t fputwc_unlocked(<[wc]>, <[fp]>)
-	wchar_t <[wc]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t _fputwc_r(<[ptr]>, <[wc]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	wchar_t <[wc]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t _fputwc_unlocked_r(<[ptr]>, <[wc]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	wchar_t <[wc]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t putwc(<[wc]>, <[fp]>)
-	wchar_t <[wc]>;
-	FILE *<[fp]>;
-
-	#define _GNU_SOURCE
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t putwc_unlocked(<[wc]>, <[fp]>)
-	wchar_t <[wc]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t _putwc_r(<[ptr]>, <[wc]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	wchar_t <[wc]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	#include <wchar.h>
-	wint_t _putwc_unlocked_r(<[ptr]>, <[wc]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	wchar_t <[wc]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<fputwc>> writes the wide character argument <[wc]> to the file or
 stream identified by <[fp]>.
diff --git a/newlib/libc/stdio/fputws.c b/newlib/libc/stdio/fputws.c
index bb2fa6dbe..c68241c92 100644
--- a/newlib/libc/stdio/fputws.c
+++ b/newlib/libc/stdio/fputws.c
@@ -37,7 +37,7 @@ INDEX
 INDEX
 	_fputws_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int fputws(const wchar_t *__restrict <[ws]>, FILE *__restrict <[fp]>);
 
@@ -53,30 +53,6 @@ ANSI_SYNOPSIS
 	int _fputws_unlocked_r(struct _reent *<[ptr]>, const wchar_t *<[ws]>,
                                FILE *<[fp]>);
 
-TRAD_SYNOPSIS   
-	#include <wchar.h>
-	int fputws(<[ws]>, <[fp]>)
-	wchar_t *__restrict <[ws]>;
-	FILE *__restrict <[fp]>;
-
-	#define _GNU_SOURCE
-	#include <wchar.h>
-	int fputws_unlocked(<[ws]>, <[fp]>)
-	wchar_t *__restrict <[ws]>;
-	FILE *__restrict <[fp]>;
-
-	#include <wchar.h>
-	int _fputws_r(<[ptr]>, <[ws]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	wchar_t *<[ws]>;
-	FILE *<[fp]>;
-
-	#include <wchar.h>
-	int _fputws_unlocked_r(<[ptr]>, <[ws]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	wchar_t *<[ws]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<fputws>> writes the wide character string at <[ws]> (but without the
 trailing null) to the file or stream identified by <[fp]>.
diff --git a/newlib/libc/stdio/fread.c b/newlib/libc/stdio/fread.c
index c6839476d..c2e60bedc 100644
--- a/newlib/libc/stdio/fread.c
+++ b/newlib/libc/stdio/fread.c
@@ -28,7 +28,7 @@ INDEX
 INDEX
 	_fread_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	size_t fread(void *restrict <[buf]>, size_t <[size]>, size_t <[count]>,
 		     FILE *restrict <[fp]>);
@@ -46,38 +46,6 @@ ANSI_SYNOPSIS
 	size_t _fread_unlocked_r(struct _reent *<[ptr]>, void *restrict <[buf]>,
 	                size_t <[size]>, size_t <[count]>, FILE *restrict <[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	size_t fread(<[buf]>, <[size]>, <[count]>, <[fp]>)
-	char *<[buf]>;
-	size_t <[size]>;
-	size_t <[count]>;
-	FILE *<[fp]>;
-
-	#define _BSD_SOURCE
-	#include <stdio.h>
-	size_t fread_unlocked(<[buf]>, <[size]>, <[count]>, <[fp]>)
-	char *<[buf]>;
-	size_t <[size]>;
-	size_t <[count]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	size_t _fread_r(<[ptr]>, <[buf]>, <[size]>, <[count]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	char *<[buf]>;
-	size_t <[size]>;
-	size_t <[count]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	size_t _fread_unlocked_r(<[ptr]>, <[buf]>, <[size]>, <[count]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	char *<[buf]>;
-	size_t <[size]>;
-	size_t <[count]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<fread>> attempts to copy, from the file or stream identified by
 <[fp]>, <[count]> elements (each of size <[size]>) into memory,
diff --git a/newlib/libc/stdio/freopen.c b/newlib/libc/stdio/freopen.c
index fb1f6c4db..e5bb73a26 100644
--- a/newlib/libc/stdio/freopen.c
+++ b/newlib/libc/stdio/freopen.c
@@ -24,26 +24,13 @@ INDEX
 INDEX
 	_freopen_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *freopen(const char *restrict <[file]>, const char *restrict <[mode]>,
 		      FILE *restrict <[fp]>);
 	FILE *_freopen_r(struct _reent *<[ptr]>, const char *restrict <[file]>,
 		      const char *restrict <[mode]>, FILE *restrict <[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	FILE *freopen(<[file]>, <[mode]>, <[fp]>)
-	char *<[file]>;
-	char *<[mode]>;
-	FILE *<[fp]>;
-
-	FILE *_freopen_r(<[ptr]>, <[file]>, <[mode]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	char *<[file]>;
-	char *<[mode]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 Use this variant of <<fopen>> if you wish to specify a particular file
 descriptor <[fp]> (notably <<stdin>>, <<stdout>>, or <<stderr>>) for
diff --git a/newlib/libc/stdio/fseek.c b/newlib/libc/stdio/fseek.c
index b8fc36a04..b5bd979d3 100644
--- a/newlib/libc/stdio/fseek.c
+++ b/newlib/libc/stdio/fseek.c
@@ -28,7 +28,7 @@ INDEX
 INDEX
 	_fseeko_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fseek(FILE *<[fp]>, long <[offset]>, int <[whence]>);
 	int fseeko(FILE *<[fp]>, off_t <[offset]>, int <[whence]>);
@@ -37,30 +37,6 @@ ANSI_SYNOPSIS
 	int _fseeko_r(struct _reent *<[ptr]>, FILE *<[fp]>,
 	             off_t <[offset]>, int <[whence]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fseek(<[fp]>, <[offset]>, <[whence]>);
-	FILE *<[fp]>;
-	long <[offset]>;
-	int <[whence]>;
-
-	int fseeko(<[fp]>, <[offset]>, <[whence]>);
-	FILE *<[fp]>;
-	off_t <[offset]>;
-	int <[whence]>;
-
-	int _fseek_r(<[ptr]>, <[fp]>, <[offset]>, <[whence]>);
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-	long <[offset]>;
-	int <[whence]>;
-
-	int _fseeko_r(<[ptr]>, <[fp]>, <[offset]>, <[whence]>);
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-	off_t <[offset]>;
-	int <[whence]>;
-
 DESCRIPTION
 Objects of type <<FILE>> can have a ``position'' that records how much
 of the file your program has already read.  Many of the <<stdio>> functions
diff --git a/newlib/libc/stdio/fseeko.c b/newlib/libc/stdio/fseeko.c
index 2c9419d97..52f978929 100644
--- a/newlib/libc/stdio/fseeko.c
+++ b/newlib/libc/stdio/fseeko.c
@@ -28,7 +28,7 @@ INDEX
 INDEX
 	_fseeko_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fseek(FILE *<[fp]>, long <[offset]>, int <[whence]>)
 	int fseeko(FILE *<[fp]>, off_t <[offset]>, int <[whence]>)
@@ -37,30 +37,6 @@ ANSI_SYNOPSIS
 	int _fseeko_r(struct _reent *<[ptr]>, FILE *<[fp]>,
 	             off_t <[offset]>, int <[whence]>)
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fseek(<[fp]>, <[offset]>, <[whence]>)
-	FILE *<[fp]>;
-	long <[offset]>;
-	int <[whence]>;
-
-	int fseeko(<[fp]>, <[offset]>, <[whence]>)
-	FILE *<[fp]>;
-	off_t <[offset]>;
-	int <[whence]>;
-
-	int _fseek_r(<[ptr]>, <[fp]>, <[offset]>, <[whence]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-	long <[offset]>;
-	int <[whence]>;
-
-	int _fseeko_r(<[ptr]>, <[fp]>, <[offset]>, <[whence]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-	off_t <[offset]>;
-	int <[whence]>;
-
 DESCRIPTION
 Objects of type <<FILE>> can have a ``position'' that records how much
 of the file your program has already read.  Many of the <<stdio>> functions
diff --git a/newlib/libc/stdio/fsetlocking.c b/newlib/libc/stdio/fsetlocking.c
index 3c489f54d..d62aef334 100644
--- a/newlib/libc/stdio/fsetlocking.c
+++ b/newlib/libc/stdio/fsetlocking.c
@@ -30,7 +30,7 @@ FUNCTION
 INDEX
 	__fsetlocking
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdio_ext.h>
 	int __fsetlocking(FILE *<[fp]>, int <[type]>);
diff --git a/newlib/libc/stdio/fsetpos.c b/newlib/libc/stdio/fsetpos.c
index d1596293b..a2a5d7b2e 100644
--- a/newlib/libc/stdio/fsetpos.c
+++ b/newlib/libc/stdio/fsetpos.c
@@ -24,23 +24,12 @@ INDEX
 INDEX
 	_fsetpos_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fsetpos(FILE *<[fp]>, const fpos_t *<[pos]>);
 	int _fsetpos_r(struct _reent *<[ptr]>, FILE *<[fp]>,
 	               const fpos_t *<[pos]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fsetpos(<[fp]>, <[pos]>)
-	FILE *<[fp]>;
-	fpos_t *<[pos]>;
-
-	int _fsetpos_r(<[ptr]>, <[fp]>, <[pos]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-	fpos_t *<[pos]>;
-
 DESCRIPTION
 Objects of type <<FILE>> can have a ``position'' that records how much
 of the file your program has already read.  Many of the <<stdio>> functions
diff --git a/newlib/libc/stdio/ftell.c b/newlib/libc/stdio/ftell.c
index 5af0709cb..70eed84c0 100644
--- a/newlib/libc/stdio/ftell.c
+++ b/newlib/libc/stdio/ftell.c
@@ -28,29 +28,13 @@ INDEX
 INDEX
 	_ftello_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	long ftell(FILE *<[fp]>);
 	off_t ftello(FILE *<[fp]>);
 	long _ftell_r(struct _reent *<[ptr]>, FILE *<[fp]>);
 	off_t _ftello_r(struct _reent *<[ptr]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	long ftell(<[fp]>)
-	FILE *<[fp]>;
-
-	off_t ftello(<[fp]>)
-	FILE *<[fp]>;
-
-	long _ftell_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
-	off_t _ftello_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 Objects of type <<FILE>> can have a ``position'' that records how much
 of the file your program has already read.  Many of the <<stdio>> functions
diff --git a/newlib/libc/stdio/ftello.c b/newlib/libc/stdio/ftello.c
index 3a1885e81..c120c26a9 100644
--- a/newlib/libc/stdio/ftello.c
+++ b/newlib/libc/stdio/ftello.c
@@ -28,29 +28,13 @@ INDEX
 INDEX
 	_ftello_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	long ftell(FILE *<[fp]>);
 	off_t ftello(FILE *<[fp]>);
 	long _ftell_r(struct _reent *<[ptr]>, FILE *<[fp]>);
 	off_t _ftello_r(struct _reent *<[ptr]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	long ftell(<[fp]>)
-	FILE *<[fp]>;
-
-	off_t ftello(<[fp]>)
-	FILE *<[fp]>;
-
-	long _ftell_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
-	off_t _ftello_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 Objects of type <<FILE>> can have a ``position'' that records how much
 of the file your program has already read.  Many of the <<stdio>> functions
diff --git a/newlib/libc/stdio/funopen.c b/newlib/libc/stdio/funopen.c
index e71d23187..58b75648a 100644
--- a/newlib/libc/stdio/funopen.c
+++ b/newlib/libc/stdio/funopen.c
@@ -14,7 +14,7 @@ INDEX
 INDEX
 	fwopen
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *funopen(const void *<[cookie]>,
 	              int (*<[readfn]>) (void *cookie, char *buf, int n),
diff --git a/newlib/libc/stdio/fwide.c b/newlib/libc/stdio/fwide.c
index b2aaf8a62..a57a77c95 100644
--- a/newlib/libc/stdio/fwide.c
+++ b/newlib/libc/stdio/fwide.c
@@ -7,23 +7,12 @@ INDEX
 INDEX
 	_fwide_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int fwide(FILE *<[fp]>, int <[mode]>);
 
 	int _fwide_r(struct _reent *<[ptr]>, FILE *<[fp]>, int <[mode]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	int fwide(<[fp]>, <[mode]>);
-	FILE *<[fp]>;
-	int <[mode]>;
-
-	int _fwide_r(<[ptr]>, <[fp]>, <[mode]>);
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-	int <[mode]>;
-
 DESCRIPTION
 When <[mode]> is zero, the <<fwide>> function determines the current
 orientation of <[fp]>. It returns a value > 0 if <[fp]> is
diff --git a/newlib/libc/stdio/fwrite.c b/newlib/libc/stdio/fwrite.c
index 6b3ff9015..2ba71f38a 100644
--- a/newlib/libc/stdio/fwrite.c
+++ b/newlib/libc/stdio/fwrite.c
@@ -28,7 +28,7 @@ INDEX
 INDEX
 	_fwrite_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	size_t fwrite(const void *restrict <[buf]>, size_t <[size]>,
 		      size_t <[count]>, FILE *restrict <[fp]>);
@@ -46,38 +46,6 @@ ANSI_SYNOPSIS
 	size_t _fwrite_unlocked_r(struct _reent *<[ptr]>, const void *restrict <[buf]>, size_t <[size]>,
 		      size_t <[count]>, FILE *restrict <[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	size_t fwrite(<[buf]>, <[size]>, <[count]>, <[fp]>)
-	char *<[buf]>;
-	size_t <[size]>;
-	size_t <[count]>;
-	FILE *<[fp]>;
-
-	#define _BSD_SOURCE
-	#include <stdio.h>
-	size_t fwrite_unlocked(<[buf]>, <[size]>, <[count]>, <[fp]>)
-	char *<[buf]>;
-	size_t <[size]>;
-	size_t <[count]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	size_t _fwrite_r(<[ptr]>, <[buf]>, <[size]>, <[count]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	char *<[buf]>;
-	size_t <[size]>;
-	size_t <[count]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	size_t _fwrite_unlocked_r(<[ptr]>, <[buf]>, <[size]>, <[count]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	char *<[buf]>;
-	size_t <[size]>;
-	size_t <[count]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<fwrite>> attempts to copy, starting from the memory location
 <[buf]>, <[count]> elements (each of size <[size]>) into the file or
diff --git a/newlib/libc/stdio/getc.c b/newlib/libc/stdio/getc.c
index 7951cdc93..37e345870 100644
--- a/newlib/libc/stdio/getc.c
+++ b/newlib/libc/stdio/getc.c
@@ -24,23 +24,13 @@ INDEX
 INDEX
 	_getc_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int getc(FILE *<[fp]>);
 
 	#include <stdio.h>
 	int _getc_r(struct _reent *<[ptr]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int getc(<[fp]>)
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	int _getc_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<getc>> is a macro, defined in <<stdio.h>>.  You can use <<getc>>
 to get the next single character from the file or stream
diff --git a/newlib/libc/stdio/getchar.c b/newlib/libc/stdio/getchar.c
index 7f3ceac62..07ba9e64f 100644
--- a/newlib/libc/stdio/getchar.c
+++ b/newlib/libc/stdio/getchar.c
@@ -24,19 +24,12 @@ INDEX
 INDEX
 	_getchar_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int getchar(void);
 
 	int _getchar_r(struct _reent *<[reent]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int getchar();
-
-	int _getchar_r(<[reent]>)
-	char * <[reent]>;
-
 DESCRIPTION
 <<getchar>> is a macro, defined in <<stdio.h>>.  You can use <<getchar>>
 to get the next single character from the standard input stream.
diff --git a/newlib/libc/stdio/getdelim.c b/newlib/libc/stdio/getdelim.c
index 63a579a79..d806c02cf 100644
--- a/newlib/libc/stdio/getdelim.c
+++ b/newlib/libc/stdio/getdelim.c
@@ -6,19 +6,11 @@ FUNCTION
 INDEX
 	getdelim
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int getdelim(char **<[bufptr]>, size_t *<[n]>,
                      int <[delim]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int getdelim(<[bufptr]>, <[n]>, <[delim]>, <[fp]>)
-	char **<[bufptr]>;
-	size_t *<[n]>;
-	int <[delim]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<getdelim>> reads a file <[fp]> up to and possibly including a specified
 delimiter <[delim]>.  The line is read into a buffer pointed to
diff --git a/newlib/libc/stdio/getline.c b/newlib/libc/stdio/getline.c
index c758ae964..66ffd1990 100644
--- a/newlib/libc/stdio/getline.c
+++ b/newlib/libc/stdio/getline.c
@@ -6,17 +6,10 @@ FUNCTION
 INDEX
         getline
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdio.h>
         ssize_t getline(char **<[bufptr]>, size_t *<[n]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-        #include <stdio.h>
-        ssize_t getline(<[bufptr]>, <[n]>, <[fp]>)
-        char **<[bufptr]>;
-        size_t *<[n]>;
-        FILE *<[fp]>;
-
 DESCRIPTION
 <<getline>> reads a file <[fp]> up to and possibly including the
 newline character.  The line is read into a buffer pointed to
diff --git a/newlib/libc/stdio/gets.c b/newlib/libc/stdio/gets.c
index 6c21f3e0c..a78d06b89 100644
--- a/newlib/libc/stdio/gets.c
+++ b/newlib/libc/stdio/gets.c
@@ -24,23 +24,13 @@ INDEX
 INDEX
 	_gets_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdio.h>
 
 	char *gets(char *<[buf]>);
 
 	char *_gets_r(struct _reent *<[reent]>, char *<[buf]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-
-	char *gets(<[buf]>)
-	char *<[buf]>;
-
-	char *_gets_r(<[reent]>, <[buf]>)
-	struct _reent *<[reent]>;
-	char *<[buf]>;
-
 DESCRIPTION
 	Reads characters from standard input until a newline is found.
 	The characters up to the newline are stored in <[buf]>. The
diff --git a/newlib/libc/stdio/getw.c b/newlib/libc/stdio/getw.c
index 210c5939a..4585d9f37 100644
--- a/newlib/libc/stdio/getw.c
+++ b/newlib/libc/stdio/getw.c
@@ -22,15 +22,10 @@ FUNCTION
 INDEX
 	getw
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int getw(FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int getw(<[fp]>)
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<getw>> is a function, defined in <<stdio.h>>.  You can use <<getw>>
 to get the next word from the file or stream identified by <[fp]>.  As
diff --git a/newlib/libc/stdio/getwchar.c b/newlib/libc/stdio/getwchar.c
index 7ab230a4c..61031e5a6 100644
--- a/newlib/libc/stdio/getwchar.c
+++ b/newlib/libc/stdio/getwchar.c
@@ -37,7 +37,7 @@ INDEX
 INDEX
 	_getwchar_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wint_t getwchar(void);
 
@@ -51,22 +51,6 @@ ANSI_SYNOPSIS
 	#include <wchar.h>
 	wint_t _getwchar_unlocked_r(struct _reent *<[reent]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	wint_t getwchar();
-
-	#define _GNU_SOURCE
-	#include <wchar.h>
-	wint_t getwchar_unlocked();
-
-	#include <wchar.h>
-	wint_t _getwchar_r(<[reent]>)
-	char * <[reent]>;
-
-	#include <wchar.h>
-	wint_t _getwchar_unlocked_r(<[reent]>)
-	char * <[reent]>;
-
 DESCRIPTION
 <<getwchar>> function or macro is the wide character equivalent of
 the <<getchar>> function.  You can use <<getwchar>> to get the next
diff --git a/newlib/libc/stdio/mktemp.c b/newlib/libc/stdio/mktemp.c
index ecbc7afea..3ece9ab2c 100644
--- a/newlib/libc/stdio/mktemp.c
+++ b/newlib/libc/stdio/mktemp.c
@@ -52,7 +52,7 @@ INDEX
 INDEX
 	_mkostemps_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	char *mktemp(char *<[path]>);
 	char *mkdtemp(char *<[path]>);
diff --git a/newlib/libc/stdio/nano-vfprintf.c b/newlib/libc/stdio/nano-vfprintf.c
index f106a4167..e6604e771 100644
--- a/newlib/libc/stdio/nano-vfprintf.c
+++ b/newlib/libc/stdio/nano-vfprintf.c
@@ -87,7 +87,7 @@ INDEX
 INDEX
 	_vasnprintf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	int vprintf(const char *<[fmt]>, va_list <[list]>);
diff --git a/newlib/libc/stdio/nano-vfscanf.c b/newlib/libc/stdio/nano-vfscanf.c
index 5ba00f797..564f2916d 100644
--- a/newlib/libc/stdio/nano-vfscanf.c
+++ b/newlib/libc/stdio/nano-vfscanf.c
@@ -60,7 +60,7 @@ INDEX
 INDEX
 	_vsscanf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	int vscanf(const char *<[fmt]>, va_list <[list]>);
@@ -74,40 +74,6 @@ ANSI_SYNOPSIS
 	int _vsscanf_r(struct _reent *<[reent]>, const char *<[str]>,
                        const char *<[fmt]>, va_list <[list]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	#include <varargs.h>
-	int vscanf( <[fmt]>, <[ist]>)
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int vfscanf( <[fp]>, <[fmt]>, <[list]>)
-	FILE *<[fp]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int vsscanf( <[str]>, <[fmt]>, <[list]>)
-	char *<[str]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vscanf_r( <[reent]>, <[fmt]>, <[ist]>)
-	struct _reent *<[reent]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vfscanf_r( <[reent]>, <[fp]>, <[fmt]>, <[list]>)
-	struct _reent *<[reent]>;
-	FILE *<[fp]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vsscanf_r( <[reent]>, <[str]>, <[fmt]>, <[list]>)
-	struct _reent *<[reent]>;
-	char *<[str]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
 DESCRIPTION
 <<vscanf>>, <<vfscanf>>, and <<vsscanf>> are (respectively) variants
 of <<scanf>>, <<fscanf>>, and <<sscanf>>.  They differ only in
diff --git a/newlib/libc/stdio/open_memstream.c b/newlib/libc/stdio/open_memstream.c
index 5de99474d..9e6736f77 100644
--- a/newlib/libc/stdio/open_memstream.c
+++ b/newlib/libc/stdio/open_memstream.c
@@ -12,7 +12,7 @@ INDEX
 INDEX
 	open_wmemstream
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *open_memstream(char **restrict <[buf]>,
 			     size_t *restrict <[size]>);
diff --git a/newlib/libc/stdio/perror.c b/newlib/libc/stdio/perror.c
index 14b4d2173..0f0259632 100644
--- a/newlib/libc/stdio/perror.c
+++ b/newlib/libc/stdio/perror.c
@@ -24,21 +24,12 @@ INDEX
 INDEX
 	_perror_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	void perror(char *<[prefix]>);
 
 	void _perror_r(struct _reent *<[reent]>, char *<[prefix]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	void perror(<[prefix]>)
-	char *<[prefix]>;
-
-	void _perror_r(<[reent]>, <[prefix]>)
-	struct _reent *<[reent]>;
-	char *<[prefix]>;
-
 DESCRIPTION
 Use <<perror>> to print (on standard error) an error message
 corresponding to the current value of the global variable <<errno>>.
diff --git a/newlib/libc/stdio/putc.c b/newlib/libc/stdio/putc.c
index 2b1fd1bf3..a00aaad08 100644
--- a/newlib/libc/stdio/putc.c
+++ b/newlib/libc/stdio/putc.c
@@ -24,25 +24,13 @@ INDEX
 INDEX
 	_putc_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int putc(int <[ch]>, FILE *<[fp]>);
 
 	#include <stdio.h>
 	int _putc_r(struct _reent *<[ptr]>, int <[ch]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int putc(<[ch]>, <[fp]>)
-	int <[ch]>;
-	FILE *<[fp]>;
-
-	#include <stdio.h>
-	int _putc_r(<[ptr]>, <[ch]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	int <[ch]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<putc>> is a macro, defined in <<stdio.h>>.  <<putc>>
 writes the argument <[ch]> to the file or stream identified by
diff --git a/newlib/libc/stdio/putchar.c b/newlib/libc/stdio/putchar.c
index bb27dc4e6..a4b669832 100644
--- a/newlib/libc/stdio/putchar.c
+++ b/newlib/libc/stdio/putchar.c
@@ -24,21 +24,12 @@ INDEX
 INDEX
 	_putchar_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int putchar(int <[ch]>);
 
 	int _putchar_r(struct _reent *<[reent]>, int <[ch]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int putchar(<[ch]>)
-	int <[ch]>;
-
-	int _putchar_r(<[reent]>, <[ch]>)
-	struct _reent *<[reent]>;
-	int <[ch]>;
-
 DESCRIPTION
 <<putchar>> is a macro, defined in <<stdio.h>>.  <<putchar>>
 writes its argument to the standard output stream,
diff --git a/newlib/libc/stdio/puts.c b/newlib/libc/stdio/puts.c
index 74673715f..72f929eea 100644
--- a/newlib/libc/stdio/puts.c
+++ b/newlib/libc/stdio/puts.c
@@ -24,21 +24,12 @@ INDEX
 INDEX
 	_puts_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int puts(const char *<[s]>);
 
 	int _puts_r(struct _reent *<[reent]>, const char *<[s]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int puts(<[s]>)
-	char *<[s]>;
-
-	int _puts_r(<[reent]>, <[s]>)
-	struct _reent *<[reent]>;
-	char *<[s]>;
-
 DESCRIPTION
 <<puts>> writes the string at <[s]> (followed by a newline, instead of
 the trailing null) to the standard output stream.
diff --git a/newlib/libc/stdio/putw.c b/newlib/libc/stdio/putw.c
index 682015c0a..d4f785814 100644
--- a/newlib/libc/stdio/putw.c
+++ b/newlib/libc/stdio/putw.c
@@ -22,16 +22,10 @@ FUNCTION
 INDEX
 	putw
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int putw(int <[w]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int putw(<w>, <[fp]>)
-	int <w>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<putw>> is a function, defined in <<stdio.h>>.  You can use <<putw>>
 to write a word to the file or stream identified by <[fp]>.  As a side
diff --git a/newlib/libc/stdio/putwchar.c b/newlib/libc/stdio/putwchar.c
index cdd254217..248d5922d 100644
--- a/newlib/libc/stdio/putwchar.c
+++ b/newlib/libc/stdio/putwchar.c
@@ -37,7 +37,7 @@ INDEX
 INDEX
 	_putwchar_unlocked_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wint_t putwchar(wchar_t <[wc]>);
 
@@ -50,25 +50,6 @@ ANSI_SYNOPSIS
 	#include <wchar.h>
 	wint_t _putwchar_unlocked_r(struct _reent *<[reent]>, wchar_t <[wc]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	wint_t putwchar(<[wc]>)
-	wchar_t <[wc]>;
-
-	#include <wchar.h>
-	wint_t putwchar_unlocked(<[wc]>)
-	wchar_t <[wc]>;
-
-	#include <wchar.h>
-	wint_t _putwchar_r(<[reent]>, <[wc]>)
-	struct _reent *<[reent]>;
-	wchar_t <[wc]>;
-
-	#include <wchar.h>
-	wint_t _putwchar_unlocked_r(<[reent]>, <[wc]>)
-	struct _reent *<[reent]>;
-	wchar_t <[wc]>;
-
 DESCRIPTION
 The <<putwchar>> function or macro is the wide-character equivalent of
 the <<putchar>> function. It writes the wide character wc to stdout.
diff --git a/newlib/libc/stdio/remove.c b/newlib/libc/stdio/remove.c
index 5a3e16be9..7b8d3060f 100644
--- a/newlib/libc/stdio/remove.c
+++ b/newlib/libc/stdio/remove.c
@@ -24,21 +24,12 @@ INDEX
 INDEX
 	_remove_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int remove(char *<[filename]>);
 
 	int _remove_r(struct _reent *<[reent]>, char *<[filename]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int remove(<[filename]>)
-	char *<[filename]>;
-
-	int _remove_r(<[reent]>, <[filename]>)
-	struct _reent *<[reent]>;
-	char *<[filename]>;
-
 DESCRIPTION
 Use <<remove>> to dissolve the association between a particular
 filename (the string at <[filename]>) and the file it represents.
diff --git a/newlib/libc/stdio/rename.c b/newlib/libc/stdio/rename.c
index 6eb1f7d19..1b807f8b2 100644
--- a/newlib/libc/stdio/rename.c
+++ b/newlib/libc/stdio/rename.c
@@ -22,16 +22,10 @@ FUNCTION
 INDEX
 	rename
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int rename(const char *<[old]>, const char *<[new]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int rename(<[old]>, <[new]>)
-	char *<[old]>;
-	char *<[new]>;
-
 DESCRIPTION
 Use <<rename>> to establish a new name (the string at <[new]>) for a
 file now known by the string at <[old]>.  After a successful
diff --git a/newlib/libc/stdio/rewind.c b/newlib/libc/stdio/rewind.c
index fb03e5be7..417a5963d 100644
--- a/newlib/libc/stdio/rewind.c
+++ b/newlib/libc/stdio/rewind.c
@@ -24,20 +24,11 @@ INDEX
 INDEX
 	_rewind_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	void rewind(FILE *<[fp]>);
 	void _rewind_r(struct _reent *<[ptr]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	void rewind(<[fp]>)
-	FILE *<[fp]>;
-
-	void _rewind_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<rewind>> returns the file position indicator (if any) for the file
 or stream identified by <[fp]> to the beginning of the file.  It also
diff --git a/newlib/libc/stdio/setbuf.c b/newlib/libc/stdio/setbuf.c
index cffb6fbf4..29f5377a7 100644
--- a/newlib/libc/stdio/setbuf.c
+++ b/newlib/libc/stdio/setbuf.c
@@ -22,16 +22,10 @@ FUNCTION
 INDEX
 	setbuf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	void setbuf(FILE *<[fp]>, char *<[buf]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	void setbuf(<[fp]>, <[buf]>)
-	FILE *<[fp]>;
-	char *<[buf]>;
-
 DESCRIPTION
 <<setbuf>> specifies that output to the file or stream identified by <[fp]>
 should be fully buffered.  All output for this file will go to a
diff --git a/newlib/libc/stdio/setbuffer.c b/newlib/libc/stdio/setbuffer.c
index e88187446..880779d13 100644
--- a/newlib/libc/stdio/setbuffer.c
+++ b/newlib/libc/stdio/setbuffer.c
@@ -27,17 +27,10 @@ FUNCTION
 INDEX
 	setbuffer
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	void setbuffer(FILE *<[fp]>, char *<[buf]>, int <[size]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	void setbuffer(<[fp]>, <[buf]>, <[size]>)
-	FILE *<[fp]>;
-	char *<[buf]>;
-	int <[size]>;
-
 DESCRIPTION
 <<setbuffer>> specifies that output to the file or stream identified by
 <[fp]> should be fully buffered.  All output for this file will go to a
diff --git a/newlib/libc/stdio/setlinebuf.c b/newlib/libc/stdio/setlinebuf.c
index 0df6a579a..d8cb013d9 100644
--- a/newlib/libc/stdio/setlinebuf.c
+++ b/newlib/libc/stdio/setlinebuf.c
@@ -27,15 +27,10 @@ FUNCTION
 INDEX
 	setlinebuf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	void setlinebuf(FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	void setlinebuf(<[fp]>)
-	FILE *<[fp]>;
-
 DESCRIPTION
 <<setlinebuf>> specifies that output to the file or stream identified by
 <[fp]> should be line buffered.  This causes the file or stream to pass
diff --git a/newlib/libc/stdio/setvbuf.c b/newlib/libc/stdio/setvbuf.c
index a8e46a5d0..6fa0252b0 100644
--- a/newlib/libc/stdio/setvbuf.c
+++ b/newlib/libc/stdio/setvbuf.c
@@ -22,19 +22,11 @@ FUNCTION
 INDEX
 	setvbuf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int setvbuf(FILE *<[fp]>, char *<[buf]>,
 	            int <[mode]>, size_t <[size]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int setvbuf(<[fp]>, <[buf]>, <[mode]>, <[size]>)
-	FILE *<[fp]>;
-	char *<[buf]>;
-	int <[mode]>;
-	size_t <[size]>;
-
 DESCRIPTION
 Use <<setvbuf>> to specify what kind of buffering you want for the
 file or stream identified by <[fp]>, by using one of the following
diff --git a/newlib/libc/stdio/siprintf.c b/newlib/libc/stdio/siprintf.c
index f0a80980c..d9559c359 100644
--- a/newlib/libc/stdio/siprintf.c
+++ b/newlib/libc/stdio/siprintf.c
@@ -44,7 +44,7 @@ INDEX
 INDEX
 	_asniprintf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdio.h>
 
         int iprintf(const char *<[format]>, ...);
diff --git a/newlib/libc/stdio/siscanf.c b/newlib/libc/stdio/siscanf.c
index a6a812670..c89eb7c8d 100644
--- a/newlib/libc/stdio/siscanf.c
+++ b/newlib/libc/stdio/siscanf.c
@@ -32,7 +32,7 @@ INDEX
 INDEX
 	_siscanf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdio.h>
 
         int iscanf(const char *<[format]>, ...);
@@ -45,36 +45,6 @@ ANSI_SYNOPSIS
         int _siscanf_r(struct _reent *<[ptr]>, const char *<[str]>,
                    const char *<[format]>, ...);
 
-
-TRAD_SYNOPSIS
-	#include <stdio.h>
-
-	int iscanf(<[format]> [, <[arg]>, ...])
-	char *<[format]>;
-
-	int fiscanf(<[fd]>, <[format]> [, <[arg]>, ...]);
-	FILE *<[fd]>;
-	char *<[format]>;
-
-	int siscanf(<[str]>, <[format]> [, <[arg]>, ...]);
-	char *<[str]>;
-	char *<[format]>;
-
-	int _iscanf_r(<[ptr]>, <[format]> [, <[arg]>, ...])
-        struct _reent *<[ptr]>;
-	char *<[format]>;
-
-	int _fiscanf_r(<[ptr]>, <[fd]>, <[format]> [, <[arg]>, ...]);
-        struct _reent *<[ptr]>;
-	FILE *<[fd]>;
-	char *<[format]>;
-
-	int _siscanf_r(<[ptr]>, <[str]>, <[format]> [, <[arg]>, ...]);
-        struct _reent *<[ptr]>;
-	char *<[str]>;
-	char *<[format]>;
-
-
 DESCRIPTION
         <<iscanf>>, <<fiscanf>>, and <<siscanf>> are the same as
 	<<scanf>>, <<fscanf>>, and <<sscanf>> respectively, only that
diff --git a/newlib/libc/stdio/sprintf.c b/newlib/libc/stdio/sprintf.c
index d74c6f891..7fc9e6821 100644
--- a/newlib/libc/stdio/sprintf.c
+++ b/newlib/libc/stdio/sprintf.c
@@ -44,7 +44,7 @@ INDEX
 INDEX
 	_asnprintf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdio.h>
 
         int printf(const char *restrict <[format]>, ...);
diff --git a/newlib/libc/stdio/sscanf.c b/newlib/libc/stdio/sscanf.c
index 7961294e7..d2d9dfe8b 100644
--- a/newlib/libc/stdio/sscanf.c
+++ b/newlib/libc/stdio/sscanf.c
@@ -32,7 +32,7 @@ INDEX
 INDEX
 	_sscanf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdio.h>
 
         int scanf(const char *restrict <[format]>, ...);
@@ -45,36 +45,6 @@ ANSI_SYNOPSIS
         int _sscanf_r(struct _reent *<[ptr]>, const char *restrict <[str]>,
                       const char *restrict <[format]>, ...);
 
-
-TRAD_SYNOPSIS
-	#include <stdio.h>
-
-	int scanf(<[format]> [, <[arg]>, ...])
-	char *<[format]>;
-
-	int fscanf(<[fd]>, <[format]> [, <[arg]>, ...]);
-	FILE *<[fd]>;
-	char *<[format]>;
-
-	int sscanf(<[str]>, <[format]> [, <[arg]>, ...]);
-	char *<[str]>;
-	char *<[format]>;
-
-	int _scanf_r(<[ptr]>, <[format]> [, <[arg]>, ...])
-        struct _reent *<[ptr]>;
-	char *<[format]>;
-
-	int _fscanf_r(<[ptr]>, <[fd]>, <[format]> [, <[arg]>, ...]);
-        struct _reent *<[ptr]>;
-	FILE *<[fd]>;
-	char *<[format]>;
-
-	int _sscanf_r(<[ptr]>, <[str]>, <[format]> [, <[arg]>, ...]);
-        struct _reent *<[ptr]>;
-	char *<[str]>;
-	char *<[format]>;
-
-
 DESCRIPTION
         <<scanf>> scans a series of input fields from standard input,
 		one character at a time.  Each field is interpreted according to
diff --git a/newlib/libc/stdio/stdio_ext.c b/newlib/libc/stdio/stdio_ext.c
index 588209d18..98f2ccaa9 100644
--- a/newlib/libc/stdio/stdio_ext.c
+++ b/newlib/libc/stdio/stdio_ext.c
@@ -17,7 +17,7 @@ INDEX
 INDEX
 	__fwriting
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdio_ext.h>
 	size_t __fbufsize(FILE *<[fp]>);
diff --git a/newlib/libc/stdio/swprintf.c b/newlib/libc/stdio/swprintf.c
index 2233b3ba7..fe106f036 100644
--- a/newlib/libc/stdio/swprintf.c
+++ b/newlib/libc/stdio/swprintf.c
@@ -32,7 +32,7 @@ INDEX
 INDEX
 	_swprintf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <wchar.h>
 
         int wprintf(const wchar_t *<[format]>, ...);
diff --git a/newlib/libc/stdio/swscanf.c b/newlib/libc/stdio/swscanf.c
index 6a469ac31..d52d826e3 100644
--- a/newlib/libc/stdio/swscanf.c
+++ b/newlib/libc/stdio/swscanf.c
@@ -32,7 +32,7 @@ INDEX
 INDEX
 	_swscanf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdio.h>
 
         int wscanf(const wchar_t *__restrict <[format]>, ...);
@@ -47,36 +47,6 @@ ANSI_SYNOPSIS
         int _swscanf_r(struct _reent *<[ptr]>, const wchar_t *<[str]>,
                       const wchar_t *<[format]>, ...);
 
-
-TRAD_SYNOPSIS
-	#include <stdio.h>
-
-	int wscanf(<[format]> [, <[arg]>, ...])
-	wchar_t *__restrict <[format]>;
-
-	int fwscanf(<[fd]>, <[format]> [, <[arg]>, ...]);
-	FILE *<[fd]>;
-	wchar_t *<[format]>;
-
-	int swscanf(<[str]>, <[format]> [, <[arg]>, ...]);
-	wchar_t *__restrict <[str]>;
-	wchar_t *__restrict <[format]>;
-
-	int _wscanf_r(<[ptr]>, <[format]> [, <[arg]>, ...])
-        struct _reent *<[ptr]>;
-	wchar_t *<[format]>;
-
-	int _fwscanf_r(<[ptr]>, <[fd]>, <[format]> [, <[arg]>, ...]);
-        struct _reent *<[ptr]>;
-	FILE *<[fd]>;
-	wchar_t *<[format]>;
-
-	int _swscanf_r(<[ptr]>, <[str]>, <[format]> [, <[arg]>, ...]);
-        struct _reent *<[ptr]>;
-	wchar_t *<[str]>;
-	wchar_t *<[format]>;
-
-
 DESCRIPTION
         <<wscanf>> scans a series of input fields from standard input,
 		one wide character at a time.  Each field is interpreted according to
diff --git a/newlib/libc/stdio/tmpfile.c b/newlib/libc/stdio/tmpfile.c
index eca4ec735..6145ad0bc 100644
--- a/newlib/libc/stdio/tmpfile.c
+++ b/newlib/libc/stdio/tmpfile.c
@@ -7,19 +7,12 @@ INDEX
 INDEX
 	_tmpfile_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *tmpfile(void);
 
 	FILE *_tmpfile_r(struct _reent *<[reent]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	FILE *tmpfile();
-
-	FILE *_tmpfile_r(<[reent]>)
-	struct _reent *<[reent]>;
-
 DESCRIPTION
 Create a temporary file (a file which will be deleted automatically),
 using a name generated by <<tmpnam>>.  The temporary file is opened with
diff --git a/newlib/libc/stdio/tmpnam.c b/newlib/libc/stdio/tmpnam.c
index ee722e630..765d27afd 100644
--- a/newlib/libc/stdio/tmpnam.c
+++ b/newlib/libc/stdio/tmpnam.c
@@ -15,31 +15,13 @@ INDEX
 INDEX
 	_tempnam_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	char *tmpnam(char *<[s]>);
 	char *tempnam(char *<[dir]>, char *<[pfx]>);
 	char *_tmpnam_r(struct _reent *<[reent]>, char *<[s]>);
 	char *_tempnam_r(struct _reent *<[reent]>, char *<[dir]>, char *<[pfx]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	char *tmpnam(<[s]>)
-	char *<[s]>;
-
-	char *tempnam(<[dir]>, <[pfx]>)
-	char *<[dir]>;
-	char *<[pfx]>;
-
-	char *_tmpnam_r(<[reent]>, <[s]>)
-	struct _reent *<[reent]>;
-	char *<[s]>;
-
-	char *_tempnam_r(<[reent]>, <[dir]>, <[pfx]>)
-	struct *<[reent]>;
-	char *<[dir]>;
-	char *<[pfx]>;
-
 DESCRIPTION
 Use either of these functions to generate a name for a temporary file.
 The generated name is guaranteed to avoid collision with other files
diff --git a/newlib/libc/stdio/ungetc.c b/newlib/libc/stdio/ungetc.c
index e385ce8fb..da4b19d3c 100644
--- a/newlib/libc/stdio/ungetc.c
+++ b/newlib/libc/stdio/ungetc.c
@@ -23,7 +23,7 @@ INDEX
 INDEX
 	_ungetc_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int ungetc(int <[c]>, FILE *<[stream]>);
 
diff --git a/newlib/libc/stdio/ungetwc.c b/newlib/libc/stdio/ungetwc.c
index a69449eb2..000d4bdbb 100644
--- a/newlib/libc/stdio/ungetwc.c
+++ b/newlib/libc/stdio/ungetwc.c
@@ -33,7 +33,7 @@ INDEX
 INDEX
         _ungetwc_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdio.h>
         #include <wchar.h>
         wint_t ungetwc(wint_t <[wc]>, FILE *<[stream]>);
diff --git a/newlib/libc/stdio/vfprintf.c b/newlib/libc/stdio/vfprintf.c
index 3585423af..50a3478a4 100644
--- a/newlib/libc/stdio/vfprintf.c
+++ b/newlib/libc/stdio/vfprintf.c
@@ -63,7 +63,7 @@ INDEX
 INDEX
 	_vasnprintf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	int vprintf(const char *<[fmt]>, va_list <[list]>);
diff --git a/newlib/libc/stdio/vfscanf.c b/newlib/libc/stdio/vfscanf.c
index c5fcae577..23b7a5686 100644
--- a/newlib/libc/stdio/vfscanf.c
+++ b/newlib/libc/stdio/vfscanf.c
@@ -32,7 +32,7 @@ INDEX
 INDEX
 	_vsscanf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	int vscanf(const char *<[fmt]>, va_list <[list]>);
@@ -46,40 +46,6 @@ ANSI_SYNOPSIS
 	int _vsscanf_r(struct _reent *<[reent]>, const char *<[str]>,
                        const char *<[fmt]>, va_list <[list]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	#include <varargs.h>
-	int vscanf( <[fmt]>, <[ist]>)
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int vfscanf( <[fp]>, <[fmt]>, <[list]>)
-	FILE *<[fp]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int vsscanf( <[str]>, <[fmt]>, <[list]>)
-	char *<[str]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vscanf_r( <[reent]>, <[fmt]>, <[ist]>)
-	struct _reent *<[reent]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vfscanf_r( <[reent]>, <[fp]>, <[fmt]>, <[list]>)
-	struct _reent *<[reent]>;
-	FILE *<[fp]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vsscanf_r( <[reent]>, <[str]>, <[fmt]>, <[list]>)
-	struct _reent *<[reent]>;
-	char *<[str]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
 DESCRIPTION
 <<vscanf>>, <<vfscanf>>, and <<vsscanf>> are (respectively) variants
 of <<scanf>>, <<fscanf>>, and <<sscanf>>.  They differ only in
diff --git a/newlib/libc/stdio/vfwprintf.c b/newlib/libc/stdio/vfwprintf.c
index 4786ed6a9..9c421d267 100644
--- a/newlib/libc/stdio/vfwprintf.c
+++ b/newlib/libc/stdio/vfwprintf.c
@@ -47,7 +47,7 @@ INDEX
 INDEX
 	_vswprintf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	#include <wchar.h>
diff --git a/newlib/libc/stdio/vfwscanf.c b/newlib/libc/stdio/vfwscanf.c
index fd4f1f9f6..b945a3507 100644
--- a/newlib/libc/stdio/vfwscanf.c
+++ b/newlib/libc/stdio/vfwscanf.c
@@ -32,7 +32,7 @@ INDEX
 INDEX
 	_vswscanf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	int vwscanf(const wchar_t *__restrict <[fmt]>, va_list <[list]>);
@@ -48,40 +48,6 @@ ANSI_SYNOPSIS
 	int _vswscanf(struct _reent *<[reent]>, const wchar_t *<[str]>,
                        const wchar_t *<[fmt]>, va_list <[list]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	#include <varargs.h>
-	int vwscanf( <[fmt]>, <[ist]>)
-	wchar_t *__restrict <[fmt]>;
-	va_list <[list]>;
-
-	int vfwscanf( <[fp]>, <[fmt]>, <[list]>)
-	FILE *__restrict <[fp]>;
-	wchar_t *__restrict <[fmt]>;
-	va_list <[list]>;
-
-	int vswscanf( <[str]>, <[fmt]>, <[list]>)
-	wchar_t *__restrict <[str]>;
-	wchar_t *__restrict <[fmt]>;
-	va_list <[list]>;
-
-	int _vwscanf( <[reent]>, <[fmt]>, <[ist]>)
-	struct _reent *<[reent]>;
-	wchar_t *<[fmt]>;
-	va_list <[list]>;
-
-	int _vfwscanf( <[reent]>, <[fp]>, <[fmt]>, <[list]>)
-	struct _reent *<[reent]>;
-	FILE *<[fp]>;
-	wchar_t *<[fmt]>;
-	va_list <[list]>;
-
-	int _vswscanf( <[reent]>, <[str]>, <[fmt]>, <[list]>)
-	struct _reent *<[reent]>;
-	wchar_t *<[str]>;
-	wchar_t *<[fmt]>;
-	va_list <[list]>;
-
 DESCRIPTION
 <<vwscanf>>, <<vfwscanf>>, and <<vswscanf>> are (respectively) variants
 of <<wscanf>>, <<fwscanf>>, and <<swscanf>>.  They differ only in
diff --git a/newlib/libc/stdio/viprintf.c b/newlib/libc/stdio/viprintf.c
index fec92fa8a..85ae286bb 100644
--- a/newlib/libc/stdio/viprintf.c
+++ b/newlib/libc/stdio/viprintf.c
@@ -44,7 +44,7 @@ INDEX
 INDEX
 	_vasniprintf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	int viprintf(const char *<[fmt]>, va_list <[list]>);
diff --git a/newlib/libc/stdio/viscanf.c b/newlib/libc/stdio/viscanf.c
index 9a7d0c5f2..379daa232 100644
--- a/newlib/libc/stdio/viscanf.c
+++ b/newlib/libc/stdio/viscanf.c
@@ -34,7 +34,7 @@ INDEX
 INDEX
 	_vsiscanf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	int viscanf(const char *<[fmt]>, va_list <[list]>);
@@ -48,40 +48,6 @@ ANSI_SYNOPSIS
 	int _vsiscanf_r(struct _reent *<[reent]>, const char *<[str]>,
                        const char *<[fmt]>, va_list <[list]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	#include <varargs.h>
-	int viscanf( <[fmt]>, <[ist]>)
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int vfiscanf( <[fp]>, <[fmt]>, <[list]>)
-	FILE *<[fp]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-	
-	int vsiscanf( <[str]>, <[fmt]>, <[list]>)
-	char *<[str]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _viscanf_r( <[reent]>, <[fmt]>, <[ist]>)
-	struct _reent *<[reent]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vfiscanf_r( <[reent]>, <[fp]>, <[fmt]>, <[list]>)
-	struct _reent *<[reent]>;
-	FILE *<[fp]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-	
-	int _vsiscanf_r( <[reent]>, <[str]>, <[fmt]>, <[list]>)
-	struct _reent *<[reent]>;
-	char *<[str]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
 DESCRIPTION
 <<viscanf>>, <<vfiscanf>>, and <<vsiscanf>> are (respectively) variants
 of <<iscanf>>, <<fiscanf>>, and <<siscanf>>.  They differ only in 
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 19/24] libm/common: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (4 preceding siblings ...)
  2017-11-30 10:29 ` [PATCH 03/24] locale: remove TRAD_SYNOPSIS Yaakov Selkowitz
@ 2017-11-30 10:29 ` Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 16/24] sys: " Yaakov Selkowitz
                   ` (18 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:29 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libm/common/isgreater.c   |  2 +-
 newlib/libm/common/s_cbrt.c      |  7 +------
 newlib/libm/common/s_copysign.c  | 12 +-----------
 newlib/libm/common/s_exp10.c     | 10 +---------
 newlib/libm/common/s_expm1.c     | 10 +---------
 newlib/libm/common/s_fdim.c      |  2 +-
 newlib/libm/common/s_fma.c       |  2 +-
 newlib/libm/common/s_fmax.c      |  2 +-
 newlib/libm/common/s_fmin.c      |  2 +-
 newlib/libm/common/s_ilogb.c     | 11 +----------
 newlib/libm/common/s_infinity.c  |  2 +-
 newlib/libm/common/s_isnan.c     |  2 +-
 newlib/libm/common/s_isnand.c    | 17 +----------------
 newlib/libm/common/s_log1p.c     | 10 +---------
 newlib/libm/common/s_log2.c      |  2 +-
 newlib/libm/common/s_logb.c      |  2 +-
 newlib/libm/common/s_lrint.c     |  2 +-
 newlib/libm/common/s_lround.c    |  2 +-
 newlib/libm/common/s_matherr.c   |  7 +------
 newlib/libm/common/s_modf.c      | 12 +-----------
 newlib/libm/common/s_nan.c       |  7 +------
 newlib/libm/common/s_nearbyint.c |  2 +-
 newlib/libm/common/s_nextafter.c | 14 +-------------
 newlib/libm/common/s_pow10.c     | 10 +---------
 newlib/libm/common/s_remquo.c    |  2 +-
 newlib/libm/common/s_rint.c      |  2 +-
 newlib/libm/common/s_round.c     |  2 +-
 newlib/libm/common/s_scalbn.c    |  2 +-
 newlib/libm/common/s_signbit.c   |  2 +-
 newlib/libm/common/s_trunc.c     |  2 +-
 30 files changed, 30 insertions(+), 133 deletions(-)

diff --git a/newlib/libm/common/isgreater.c b/newlib/libm/common/isgreater.c
index 54a8e6d42..cac9b10c4 100644
--- a/newlib/libm/common/isgreater.c
+++ b/newlib/libm/common/isgreater.c
@@ -17,7 +17,7 @@ INDEX
 INDEX
 	isunordered
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	int isgreater(real-floating <[x]>, real-floating <[y]>);
 	int isgreaterequal(real-floating <[x]>, real-floating <[y]>);
diff --git a/newlib/libm/common/s_cbrt.c b/newlib/libm/common/s_cbrt.c
index 95185d0fa..9289c368a 100644
--- a/newlib/libm/common/s_cbrt.c
+++ b/newlib/libm/common/s_cbrt.c
@@ -21,16 +21,11 @@ INDEX
 INDEX
 	cbrtf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double cbrt(double <[x]>);
 	float  cbrtf(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double cbrt(<[x]>);
-	float  cbrtf(<[x]>);
-
 DESCRIPTION
 	<<cbrt>> computes the cube root of the argument.
 
diff --git a/newlib/libm/common/s_copysign.c b/newlib/libm/common/s_copysign.c
index bfc546db5..4ea2d5f3e 100644
--- a/newlib/libm/common/s_copysign.c
+++ b/newlib/libm/common/s_copysign.c
@@ -20,21 +20,11 @@ INDEX
 INDEX
 	copysignf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double copysign (double <[x]>, double <[y]>);
 	float copysignf (float <[x]>, float <[y]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double copysign (<[x]>, <[y]>)
-	double <[x]>;
-	double <[y]>;
-
-	float copysignf (<[x]>, <[y]>)
-	float <[x]>;
-	float <[y]>;
-
 DESCRIPTION
 <<copysign>> constructs a number with the magnitude (absolute value)
 of its first argument, <[x]>, and the sign of its second argument,
diff --git a/newlib/libm/common/s_exp10.c b/newlib/libm/common/s_exp10.c
index 23cedfbf3..08fa5ff16 100644
--- a/newlib/libm/common/s_exp10.c
+++ b/newlib/libm/common/s_exp10.c
@@ -20,19 +20,11 @@ INDEX
 INDEX
 	exp10f
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double exp10(double <[x]>);
 	float exp10f(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double exp10(<[x]>);
-	double <[x]>;
-
-	float exp10f(<[x]>);
-	float <[x]>;
-
 DESCRIPTION
 	<<exp10>> and <<exp10f>> calculate 10 ^ <[x]>, that is, 
 	@ifnottex
diff --git a/newlib/libm/common/s_expm1.c b/newlib/libm/common/s_expm1.c
index 12c88f16b..a4c391209 100644
--- a/newlib/libm/common/s_expm1.c
+++ b/newlib/libm/common/s_expm1.c
@@ -19,19 +19,11 @@ INDEX
 INDEX
 	expm1f
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double expm1(double <[x]>);
 	float expm1f(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double expm1(<[x]>);
-	double <[x]>;
-
-	float expm1f(<[x]>);
-	float <[x]>;
-
 DESCRIPTION
 	<<expm1>> and <<expm1f>> calculate the exponential of <[x]>
 	and subtract 1, that is,
diff --git a/newlib/libm/common/s_fdim.c b/newlib/libm/common/s_fdim.c
index a6c465cc4..73a027953 100644
--- a/newlib/libm/common/s_fdim.c
+++ b/newlib/libm/common/s_fdim.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	fdimf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double fdim(double <[x]>, double <[y]>);
 	float fdimf(float <[x]>, float <[y]>);
diff --git a/newlib/libm/common/s_fma.c b/newlib/libm/common/s_fma.c
index bbb3eb09b..ab9e525b0 100644
--- a/newlib/libm/common/s_fma.c
+++ b/newlib/libm/common/s_fma.c
@@ -6,7 +6,7 @@ INDEX
 INDEX
 	fmaf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double fma(double <[x]>, double <[y]>, double <[z]>);
 	float fmaf(float <[x]>, float <[y]>, float <[z]>);
diff --git a/newlib/libm/common/s_fmax.c b/newlib/libm/common/s_fmax.c
index 8f446e216..f6fa5fc6a 100644
--- a/newlib/libm/common/s_fmax.c
+++ b/newlib/libm/common/s_fmax.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	fmaxf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double fmax(double <[x]>, double <[y]>);
 	float fmaxf(float <[x]>, float <[y]>);
diff --git a/newlib/libm/common/s_fmin.c b/newlib/libm/common/s_fmin.c
index 2d0cd8021..9217c0251 100644
--- a/newlib/libm/common/s_fmin.c
+++ b/newlib/libm/common/s_fmin.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	fminf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double fmin(double <[x]>, double <[y]>);
 	float fminf(float <[x]>, float <[y]>);
diff --git a/newlib/libm/common/s_ilogb.c b/newlib/libm/common/s_ilogb.c
index 477ec2e7c..cc5f7750b 100644
--- a/newlib/libm/common/s_ilogb.c
+++ b/newlib/libm/common/s_ilogb.c
@@ -19,20 +19,11 @@ INDEX
 INDEX
 	ilogbf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
         int ilogb(double <[val]>);
         int ilogbf(float <[val]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-        int ilogb(<[val]>)
-        double <[val]>;
-
-        int ilogbf(<[val]>)
-        float <[val]>;
-
-
 DESCRIPTION
 
 	All nonzero, normal numbers can be described as <[m]> *
diff --git a/newlib/libm/common/s_infinity.c b/newlib/libm/common/s_infinity.c
index 9285a762f..990777d2c 100644
--- a/newlib/libm/common/s_infinity.c
+++ b/newlib/libm/common/s_infinity.c
@@ -12,7 +12,7 @@ INDEX
 INDEX
 	infinityf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double infinity(void);
 	float infinityf(void);
diff --git a/newlib/libm/common/s_isnan.c b/newlib/libm/common/s_isnan.c
index bc0a91631..91649dca4 100644
--- a/newlib/libm/common/s_isnan.c
+++ b/newlib/libm/common/s_isnan.c
@@ -43,7 +43,7 @@ INDEX
 	finitef
 @c SUSv2 end)
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	[C99 standard macros:]
 	#include <math.h>
 	int fpclassify(real-floating <[x]>);
diff --git a/newlib/libm/common/s_isnand.c b/newlib/libm/common/s_isnand.c
index 0ac8c5938..5f2c06467 100644
--- a/newlib/libm/common/s_isnand.c
+++ b/newlib/libm/common/s_isnand.c
@@ -27,7 +27,7 @@ INDEX
 INDEX
 	finitef
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	int isnan(double <[arg]>);
 	int isinf(double <[arg]>);
@@ -36,21 +36,6 @@ ANSI_SYNOPSIS
 	int isinff(float <[arg]>);
 	int finitef(float <[arg]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	int isnan(<[arg]>)
-	double <[arg]>;
-	int isinf(<[arg]>)
-	double <[arg]>;
-	int finite(<[arg]>);
-	double <[arg]>;
-	int isnanf(<[arg]>);
-	float <[arg]>;
-	int isinff(<[arg]>);
-	float <[arg]>;
-	int finitef(<[arg]>);
-	float <[arg]>;
-
 
 DESCRIPTION
 	These functions provide information on the floating-point
diff --git a/newlib/libm/common/s_log1p.c b/newlib/libm/common/s_log1p.c
index 351c887e7..359c257d8 100644
--- a/newlib/libm/common/s_log1p.c
+++ b/newlib/libm/common/s_log1p.c
@@ -20,19 +20,11 @@ INDEX
 INDEX
 	log1pf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double log1p(double <[x]>);
 	float log1pf(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double log1p(<[x]>)
-	double <[x]>;
-
-	float log1pf(<[x]>)
-	float <[x]>;
-
 DESCRIPTION
 <<log1p>> calculates 
 @tex
diff --git a/newlib/libm/common/s_log2.c b/newlib/libm/common/s_log2.c
index 3b05066b1..3655778e8 100644
--- a/newlib/libm/common/s_log2.c
+++ b/newlib/libm/common/s_log2.c
@@ -20,7 +20,7 @@ INDEX
 INDEX
 	log2f
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double log2(double <[x]>);
 	float log2f(float <[x]>);
diff --git a/newlib/libm/common/s_logb.c b/newlib/libm/common/s_logb.c
index 7e71457a5..26dfed01b 100644
--- a/newlib/libm/common/s_logb.c
+++ b/newlib/libm/common/s_logb.c
@@ -18,7 +18,7 @@ INDEX
 INDEX
 	logbf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
         double logb(double <[x]>);
         float logbf(float <[x]>);
diff --git a/newlib/libm/common/s_lrint.c b/newlib/libm/common/s_lrint.c
index 52bb52292..9d2cb7306 100644
--- a/newlib/libm/common/s_lrint.c
+++ b/newlib/libm/common/s_lrint.c
@@ -22,7 +22,7 @@ INDEX
 INDEX
 	llrintf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	long int lrint(double <[x]>);
 	long int lrintf(float <[x]>);
diff --git a/newlib/libm/common/s_lround.c b/newlib/libm/common/s_lround.c
index 52cd74f16..c0a4ebc40 100644
--- a/newlib/libm/common/s_lround.c
+++ b/newlib/libm/common/s_lround.c
@@ -20,7 +20,7 @@ INDEX
 INDEX
 	llroundf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	long int lround(double <[x]>);
 	long int lroundf(float <[x]>);
diff --git a/newlib/libm/common/s_matherr.c b/newlib/libm/common/s_matherr.c
index 58e242834..00d2caa38 100644
--- a/newlib/libm/common/s_matherr.c
+++ b/newlib/libm/common/s_matherr.c
@@ -19,15 +19,10 @@ FUNCTION
 INDEX 
 	matherr
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	int matherr(struct exception *<[e]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	int matherr(*<[e]>)
-	struct exception *<[e]>;
-
 DESCRIPTION
 <<matherr>> is called whenever a math library function generates an error.
 You can replace <<matherr>> by your own subroutine to customize
diff --git a/newlib/libm/common/s_modf.c b/newlib/libm/common/s_modf.c
index 2e9bfb125..8551a99e4 100644
--- a/newlib/libm/common/s_modf.c
+++ b/newlib/libm/common/s_modf.c
@@ -20,21 +20,11 @@ INDEX
 INDEX
 	modff
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double modf(double <[val]>, double *<[ipart]>);
         float modff(float <[val]>, float *<[ipart]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double modf(<[val]>, <[ipart]>)
-        double <[val]>;
-        double *<[ipart]>;
-
-	float modff(<[val]>, <[ipart]>)
-	float <[val]>;
-        float *<[ipart]>;
-
 DESCRIPTION
 	<<modf>> splits the double <[val]> apart into an integer part
 	and a fractional part, returning the fractional part and
diff --git a/newlib/libm/common/s_nan.c b/newlib/libm/common/s_nan.c
index a98650db0..d5710385c 100644
--- a/newlib/libm/common/s_nan.c
+++ b/newlib/libm/common/s_nan.c
@@ -12,16 +12,11 @@ INDEX
 INDEX
 	nanf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double nan(const char *<[unused]>);
 	float nanf(const char *<[unused]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double nan();
-	float nanf();
-
 
 DESCRIPTION
 	<<nan>> and <<nanf>> return an IEEE NaN (Not a Number) in
diff --git a/newlib/libm/common/s_nearbyint.c b/newlib/libm/common/s_nearbyint.c
index 714b66a5c..d142c68f2 100644
--- a/newlib/libm/common/s_nearbyint.c
+++ b/newlib/libm/common/s_nearbyint.c
@@ -16,7 +16,7 @@ INDEX
 INDEX
 	nearbyintf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double nearbyint(double <[x]>);
 	float nearbyintf(float <[x]>);
diff --git a/newlib/libm/common/s_nextafter.c b/newlib/libm/common/s_nextafter.c
index 3a7fa3fec..9453a0a00 100644
--- a/newlib/libm/common/s_nextafter.c
+++ b/newlib/libm/common/s_nextafter.c
@@ -20,23 +20,11 @@ INDEX
 INDEX
 	nextafterf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <math.h>
        double nextafter(double <[val]>, double <[dir]>);
        float nextafterf(float <[val]>, float <[dir]>);
 
-TRAD_SYNOPSIS
-       #include <math.h>
-
-       double nextafter(<[val]>, <[dir]>)
-              double <[val]>;
-              double <[exp]>;
-
-       float nextafter(<[val]>, <[dir]>)
-              float <[val]>;
-              float <[dir]>;
-
-
 DESCRIPTION
 <<nextafter>> returns the double-precision floating-point number
 closest to <[val]> in the direction toward <[dir]>.  <<nextafterf>>
diff --git a/newlib/libm/common/s_pow10.c b/newlib/libm/common/s_pow10.c
index 052e26d36..46645c71b 100644
--- a/newlib/libm/common/s_pow10.c
+++ b/newlib/libm/common/s_pow10.c
@@ -20,19 +20,11 @@ INDEX
 INDEX
 	pow10f
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double pow10(double <[x]>);
 	float pow10f(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double pow10(<[x]>);
-	double <[x]>;
-
-	float pow10f(<[x]>);
-	float <[x]>;
-
 DESCRIPTION
 	<<pow10>> and <<pow10f>> calculate 10 ^ <[x]>, that is, 
 	@ifnottex
diff --git a/newlib/libm/common/s_remquo.c b/newlib/libm/common/s_remquo.c
index 30bf15f14..468b56630 100644
--- a/newlib/libm/common/s_remquo.c
+++ b/newlib/libm/common/s_remquo.c
@@ -19,7 +19,7 @@ INDEX
 INDEX
 	remquof
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double remquo(double <[x]>, double <[y]>, int *<[quo]>);
 	float remquof(float <[x]>, float <[y]>, int *<[quo]>);
diff --git a/newlib/libm/common/s_rint.c b/newlib/libm/common/s_rint.c
index f06325a8d..7dce9f52b 100644
--- a/newlib/libm/common/s_rint.c
+++ b/newlib/libm/common/s_rint.c
@@ -18,7 +18,7 @@ INDEX
 INDEX
 	rintf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double rint(double <[x]>);
 	float rintf(float <[x]>);
diff --git a/newlib/libm/common/s_round.c b/newlib/libm/common/s_round.c
index 07aac9ecf..047574a84 100644
--- a/newlib/libm/common/s_round.c
+++ b/newlib/libm/common/s_round.c
@@ -16,7 +16,7 @@ INDEX
 INDEX
 	roundf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double round(double <[x]>);
 	float roundf(float <[x]>);
diff --git a/newlib/libm/common/s_scalbn.c b/newlib/libm/common/s_scalbn.c
index 7fab5861f..e9dbb16ac 100644
--- a/newlib/libm/common/s_scalbn.c
+++ b/newlib/libm/common/s_scalbn.c
@@ -23,7 +23,7 @@ INDEX
 INDEX
 	scalblnf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double scalbn(double <[x]>, int <[n]>);
 	float scalbnf(float <[x]>, int <[n]>);
diff --git a/newlib/libm/common/s_signbit.c b/newlib/libm/common/s_signbit.c
index d2ba1fcb9..098a32dfa 100644
--- a/newlib/libm/common/s_signbit.c
+++ b/newlib/libm/common/s_signbit.c
@@ -10,7 +10,7 @@ FUNCTION
 INDEX
 	signbit
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	int signbit(real-floating <[x]>);
 
diff --git a/newlib/libm/common/s_trunc.c b/newlib/libm/common/s_trunc.c
index 31a1f92b9..0e06add22 100644
--- a/newlib/libm/common/s_trunc.c
+++ b/newlib/libm/common/s_trunc.c
@@ -16,7 +16,7 @@ INDEX
 INDEX
 	truncf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double trunc(double <[x]>);
 	float truncf(float <[x]>);
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 01/24] ctype: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
@ 2017-11-30 10:29 ` Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 23/24] mathfp: " Yaakov Selkowitz
                   ` (23 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:29 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/ctype/isalnum.c   | 6 +-----
 newlib/libc/ctype/isalpha.c   | 6 +-----
 newlib/libc/ctype/isascii.c   | 6 +-----
 newlib/libc/ctype/isblank.c   | 6 +-----
 newlib/libc/ctype/iscntrl.c   | 6 +-----
 newlib/libc/ctype/isdigit.c   | 6 +-----
 newlib/libc/ctype/islower.c   | 6 +-----
 newlib/libc/ctype/isprint.c   | 7 +------
 newlib/libc/ctype/ispunct.c   | 6 +-----
 newlib/libc/ctype/isspace.c   | 6 +-----
 newlib/libc/ctype/isupper.c   | 6 +-----
 newlib/libc/ctype/iswalnum.c  | 7 +------
 newlib/libc/ctype/iswalpha.c  | 7 +------
 newlib/libc/ctype/iswblank.c  | 7 +------
 newlib/libc/ctype/iswcntrl.c  | 7 +------
 newlib/libc/ctype/iswctype.c  | 8 +-------
 newlib/libc/ctype/iswdigit.c  | 7 +------
 newlib/libc/ctype/iswgraph.c  | 7 +------
 newlib/libc/ctype/iswlower.c  | 7 +------
 newlib/libc/ctype/iswprint.c  | 7 +------
 newlib/libc/ctype/iswpunct.c  | 7 +------
 newlib/libc/ctype/iswspace.c  | 7 +------
 newlib/libc/ctype/iswupper.c  | 7 +------
 newlib/libc/ctype/iswxdigit.c | 7 +------
 newlib/libc/ctype/isxdigit.c  | 6 +-----
 newlib/libc/ctype/toascii.c   | 7 +------
 newlib/libc/ctype/tolower.c   | 7 +------
 newlib/libc/ctype/toupper.c   | 7 +------
 newlib/libc/ctype/towctrans.c | 8 +-------
 newlib/libc/ctype/towlower.c  | 7 +------
 newlib/libc/ctype/towupper.c  | 7 +------
 newlib/libc/ctype/wctrans.c   | 7 +------
 newlib/libc/ctype/wctype.c    | 7 +------
 33 files changed, 33 insertions(+), 189 deletions(-)

diff --git a/newlib/libc/ctype/isalnum.c b/newlib/libc/ctype/isalnum.c
index 113ef0232..ebb414c69 100644
--- a/newlib/libc/ctype/isalnum.c
+++ b/newlib/libc/ctype/isalnum.c
@@ -7,17 +7,13 @@ INDEX
 INDEX
 	isalnum_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int isalnum(int <[c]>);
 
 	#include <ctype.h>
 	int isalnum_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int isalnum(<[c]>);
-
 
 DESCRIPTION
 <<isalnum>> is a macro which classifies singlebyte charset values by table
diff --git a/newlib/libc/ctype/isalpha.c b/newlib/libc/ctype/isalpha.c
index 59511e18e..7a737a527 100644
--- a/newlib/libc/ctype/isalpha.c
+++ b/newlib/libc/ctype/isalpha.c
@@ -8,17 +8,13 @@ INDEX
 INDEX
 	isalpha_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int isalpha(int <[c]>);
 
 	#include <ctype.h>
 	int isalpha_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int isalpha(<[c]>);
-
 DESCRIPTION
 <<isalpha>> is a macro which classifies singlebyte charset values by table
 lookup.  It is a predicate returning non-zero when <[c]> represents an
diff --git a/newlib/libc/ctype/isascii.c b/newlib/libc/ctype/isascii.c
index 45e19efd3..71f299fa0 100644
--- a/newlib/libc/ctype/isascii.c
+++ b/newlib/libc/ctype/isascii.c
@@ -8,17 +8,13 @@ INDEX
 INDEX
 	isascii_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int isascii(int <[c]>);
 
 	#include <ctype.h>
 	int isascii_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int isascii(<[c]>);
-
 DESCRIPTION
 <<isascii>> is a macro which returns non-zero when <[c]> is an ASCII
 character, and 0 otherwise.  It is defined for all integer values.
diff --git a/newlib/libc/ctype/isblank.c b/newlib/libc/ctype/isblank.c
index db62a2681..e054b947c 100644
--- a/newlib/libc/ctype/isblank.c
+++ b/newlib/libc/ctype/isblank.c
@@ -8,17 +8,13 @@ INDEX
 INDEX
 	isblank_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int isblank(int <[c]>);
 
 	#include <ctype.h>
 	int isblank_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int isblank(<[c]>);
-
 DESCRIPTION
 <<isblank>> is a function which classifies singlebyte charset values by table
 lookup.  It is a predicate returning non-zero for blank characters, and 0
diff --git a/newlib/libc/ctype/iscntrl.c b/newlib/libc/ctype/iscntrl.c
index d78c957f8..b57b71790 100644
--- a/newlib/libc/ctype/iscntrl.c
+++ b/newlib/libc/ctype/iscntrl.c
@@ -8,17 +8,13 @@ INDEX
 INDEX
 	iscntrl_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int iscntrl(int <[c]>);
 
 	#include <ctype.h>
 	int iscntrl_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int iscntrl(<[c]>);
-
 DESCRIPTION
 <<iscntrl>> is a macro which classifies singlebyte charset values by table
 lookup.  It is a predicate returning non-zero for control characters, and 0 
diff --git a/newlib/libc/ctype/isdigit.c b/newlib/libc/ctype/isdigit.c
index 06f14221d..5cd411b65 100644
--- a/newlib/libc/ctype/isdigit.c
+++ b/newlib/libc/ctype/isdigit.c
@@ -8,17 +8,13 @@ INDEX
 INDEX
 	isdigit_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int isdigit(int <[c]>);
 
 	#include <ctype.h>
 	int isdigit_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int isdigit(<[c]>);
-
 DESCRIPTION
 <<isdigit>> is a macro which classifies singlebyte charset values by table
 lookup.  It is a predicate returning non-zero for decimal digits, and 0 for
diff --git a/newlib/libc/ctype/islower.c b/newlib/libc/ctype/islower.c
index 466252a63..a6fb889a1 100644
--- a/newlib/libc/ctype/islower.c
+++ b/newlib/libc/ctype/islower.c
@@ -8,17 +8,13 @@ INDEX
 INDEX
 	islower_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int islower(int <[c]>);
 
 	#include <ctype.h>
 	int islower_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int islower(<[c]>);
-
 DESCRIPTION
 <<islower>> is a macro which classifies singlebyte charset values by table
 lookup.  It is a predicate returning non-zero for minuscules
diff --git a/newlib/libc/ctype/isprint.c b/newlib/libc/ctype/isprint.c
index 21fdf5b1d..afabe8b1d 100644
--- a/newlib/libc/ctype/isprint.c
+++ b/newlib/libc/ctype/isprint.c
@@ -14,7 +14,7 @@ INDEX
 INDEX
 	isgraph_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int isprint(int <[c]>);
 	int isgraph(int <[c]>);
@@ -23,11 +23,6 @@ ANSI_SYNOPSIS
 	int isprint_l(int <[c]>, locale_t <[locale]>);
 	int isgraph_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int isprint(<[c]>);
-	int isgraph(<[c]>);
-
 DESCRIPTION
 <<isprint>> is a macro which classifies singlebyte charset values by table
 lookup.  It is a predicate returning non-zero for printable characters,
diff --git a/newlib/libc/ctype/ispunct.c b/newlib/libc/ctype/ispunct.c
index 4fb62197d..83796dc1c 100644
--- a/newlib/libc/ctype/ispunct.c
+++ b/newlib/libc/ctype/ispunct.c
@@ -8,17 +8,13 @@ INDEX
 INDEX
 	ispunct_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int ispunct(int <[c]>);
 
 	#include <ctype.h>
 	int ispunct_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int ispunct(<[c]>);
-
 DESCRIPTION
 <<ispunct>> is a macro which classifies singlebyte charset values by table
 lookup.  It is a predicate returning non-zero for printable
diff --git a/newlib/libc/ctype/isspace.c b/newlib/libc/ctype/isspace.c
index 2a19518eb..68dc5cb1d 100644
--- a/newlib/libc/ctype/isspace.c
+++ b/newlib/libc/ctype/isspace.c
@@ -8,17 +8,13 @@ INDEX
 INDEX
 	isspace_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int isspace(int <[c]>);
 
 	#include <ctype.h>
 	int isspace_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int isspace(<[c]>);
-
 DESCRIPTION
 <<isspace>> is a macro which classifies singlebyte charset values by table
 lookup.  It is a predicate returning non-zero for whitespace
diff --git a/newlib/libc/ctype/isupper.c b/newlib/libc/ctype/isupper.c
index e36b3a35d..10fa230bd 100644
--- a/newlib/libc/ctype/isupper.c
+++ b/newlib/libc/ctype/isupper.c
@@ -8,17 +8,13 @@ INDEX
 INDEX
 	isupper_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int isupper(int <[c]>);
 
 	#include <ctype.h>
 	int isupper_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int isupper(<[c]>);
-
 DESCRIPTION
 <<isupper>> is a macro which classifies singlebyte charset values by table
 lookup.  It is a predicate returning non-zero for uppercase letters
diff --git a/newlib/libc/ctype/iswalnum.c b/newlib/libc/ctype/iswalnum.c
index 76fa5042c..d9295434d 100644
--- a/newlib/libc/ctype/iswalnum.c
+++ b/newlib/libc/ctype/iswalnum.c
@@ -8,18 +8,13 @@ INDEX
 INDEX
 	iswalnum_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswalnum(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswalnum_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswalnum(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswalnum>> is a function which classifies wide-character values that
 are alphanumeric.
diff --git a/newlib/libc/ctype/iswalpha.c b/newlib/libc/ctype/iswalpha.c
index 92fad8e04..973aa09b4 100644
--- a/newlib/libc/ctype/iswalpha.c
+++ b/newlib/libc/ctype/iswalpha.c
@@ -37,18 +37,13 @@ INDEX
 INDEX
 	iswalpha_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswalpha(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswalpha_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswalpha(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswalpha>> is a function which classifies wide-character values that
 are alphabetic.
diff --git a/newlib/libc/ctype/iswblank.c b/newlib/libc/ctype/iswblank.c
index ca448a997..b83683d94 100644
--- a/newlib/libc/ctype/iswblank.c
+++ b/newlib/libc/ctype/iswblank.c
@@ -37,18 +37,13 @@ INDEX
 INDEX
 	iswblank_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswblank(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswblank_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswblank(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswblank>> is a function which classifies wide-character values that
 are categorized as blank.
diff --git a/newlib/libc/ctype/iswcntrl.c b/newlib/libc/ctype/iswcntrl.c
index d094d19ed..c96ed343a 100644
--- a/newlib/libc/ctype/iswcntrl.c
+++ b/newlib/libc/ctype/iswcntrl.c
@@ -37,18 +37,13 @@ INDEX
 INDEX
 	iswcntrl_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswcntrl(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswcntrl_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswcntrl(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswcntrl>> is a function which classifies wide-character values that
 are categorized as control characters.
diff --git a/newlib/libc/ctype/iswctype.c b/newlib/libc/ctype/iswctype.c
index ff8e3246b..bfa7b003c 100644
--- a/newlib/libc/ctype/iswctype.c
+++ b/newlib/libc/ctype/iswctype.c
@@ -8,19 +8,13 @@ INDEX
 INDEX
 	iswctype_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswctype(wint_t <[c]>, wctype_t <[desc]>);
 
 	#include <wctype.h>
 	int iswctype_l(wint_t <[c]>, wctype_t <[desc]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswctype(<[c]>, <[desc]>)
-	wint_t <[c]>;
-	wctype_t <[desc]>;
-
 DESCRIPTION
 <<iswctype>> is a function which classifies wide-character values using the
 wide-character test specified by <[desc]>.
diff --git a/newlib/libc/ctype/iswdigit.c b/newlib/libc/ctype/iswdigit.c
index 7c3ad4be0..7926f8dc2 100644
--- a/newlib/libc/ctype/iswdigit.c
+++ b/newlib/libc/ctype/iswdigit.c
@@ -8,18 +8,13 @@ INDEX
 INDEX
 	iswdigit_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswdigit(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswdigit_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswdigit(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswdigit>> is a function which classifies wide-character values that
 are decimal digits.
diff --git a/newlib/libc/ctype/iswgraph.c b/newlib/libc/ctype/iswgraph.c
index 17e3060e5..90e1f97fa 100644
--- a/newlib/libc/ctype/iswgraph.c
+++ b/newlib/libc/ctype/iswgraph.c
@@ -37,18 +37,13 @@ INDEX
 INDEX
 	iswgraph_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswgraph(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswgraph_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswgraph(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswgraph>> is a function which classifies wide-character values that
 are graphic.
diff --git a/newlib/libc/ctype/iswlower.c b/newlib/libc/ctype/iswlower.c
index 9d3b8441f..19cfdc420 100644
--- a/newlib/libc/ctype/iswlower.c
+++ b/newlib/libc/ctype/iswlower.c
@@ -8,18 +8,13 @@ INDEX
 INDEX
 	iswlower_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswlower(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswlower_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswlower(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswlower>> is a function which classifies wide-character values that
 have uppercase translations.
diff --git a/newlib/libc/ctype/iswprint.c b/newlib/libc/ctype/iswprint.c
index aad34acab..51a50019b 100644
--- a/newlib/libc/ctype/iswprint.c
+++ b/newlib/libc/ctype/iswprint.c
@@ -37,18 +37,13 @@ INDEX
 INDEX
 	iswprint_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswprint(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswprint_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswprint(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswprint>> is a function which classifies wide-character values that
 are printable.
diff --git a/newlib/libc/ctype/iswpunct.c b/newlib/libc/ctype/iswpunct.c
index 8b1791b03..b1069a202 100644
--- a/newlib/libc/ctype/iswpunct.c
+++ b/newlib/libc/ctype/iswpunct.c
@@ -37,18 +37,13 @@ INDEX
 INDEX
 	iswpunct_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswpunct(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswpunct_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswpunct(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswpunct>> is a function which classifies wide-character values that
 are punctuation.
diff --git a/newlib/libc/ctype/iswspace.c b/newlib/libc/ctype/iswspace.c
index 40a667cd4..d6ba3e97d 100644
--- a/newlib/libc/ctype/iswspace.c
+++ b/newlib/libc/ctype/iswspace.c
@@ -37,18 +37,13 @@ INDEX
 INDEX
 	iswspace_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswspace(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswspace_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswspace(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswspace>> is a function which classifies wide-character values that
 are categorized as whitespace.
diff --git a/newlib/libc/ctype/iswupper.c b/newlib/libc/ctype/iswupper.c
index 588e7f173..49f009346 100644
--- a/newlib/libc/ctype/iswupper.c
+++ b/newlib/libc/ctype/iswupper.c
@@ -8,18 +8,13 @@ INDEX
 INDEX
 	iswupper_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswupper(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswupper_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswupper(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswupper>> is a function which classifies wide-character values that
 have uppercase translations.
diff --git a/newlib/libc/ctype/iswxdigit.c b/newlib/libc/ctype/iswxdigit.c
index 7cd3abbd5..3f47962f1 100644
--- a/newlib/libc/ctype/iswxdigit.c
+++ b/newlib/libc/ctype/iswxdigit.c
@@ -8,18 +8,13 @@ INDEX
 INDEX
 	iswxdigit_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	int iswxdigit(wint_t <[c]>);
 
 	#include <wctype.h>
 	int iswxdigit_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	int iswxdigit(<[c]>)
-	wint_t <[c]>;
-
 DESCRIPTION
 <<iswxdigit>> is a function which classifies wide character values that
 are hexadecimal digits.
diff --git a/newlib/libc/ctype/isxdigit.c b/newlib/libc/ctype/isxdigit.c
index b55ba9c13..f5e858c94 100644
--- a/newlib/libc/ctype/isxdigit.c
+++ b/newlib/libc/ctype/isxdigit.c
@@ -8,17 +8,13 @@ INDEX
 INDEX
 	isxdigit_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int isxdigit(int <[c]>);
 
 	#include <ctype.h>
 	int isxdigit_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int isxdigit(int <[c]>);
-
 DESCRIPTION
 <<isxdigit>> is a macro which classifies singlebyte charset values by table
 lookup.  It is a predicate returning non-zero for hexadecimal digits,
diff --git a/newlib/libc/ctype/toascii.c b/newlib/libc/ctype/toascii.c
index 945e91883..450e231a3 100644
--- a/newlib/libc/ctype/toascii.c
+++ b/newlib/libc/ctype/toascii.c
@@ -8,18 +8,13 @@ INDEX
 INDEX
 	toascii_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int toascii(int <[c]>);
 
 	#include <ctype.h>
 	int toascii_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int toascii(<[c]>);
-	int (<[c]>);
-
 DESCRIPTION
 <<toascii>> is a macro which coerces integers to the ASCII range (0--127) by zeroing any higher-order bits.
 
diff --git a/newlib/libc/ctype/tolower.c b/newlib/libc/ctype/tolower.c
index d1850ede5..5ebd3cd96 100644
--- a/newlib/libc/ctype/tolower.c
+++ b/newlib/libc/ctype/tolower.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_tolower
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int tolower(int <[c]>);
 	int _tolower(int <[c]>);
@@ -19,11 +19,6 @@ ANSI_SYNOPSIS
 	#include <ctype.h>
 	int tolower_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int tolower(<[c]>);
-	int _tolower(<[c]>);
-
 
 DESCRIPTION
 <<tolower>> is a macro which converts uppercase characters to lowercase,
diff --git a/newlib/libc/ctype/toupper.c b/newlib/libc/ctype/toupper.c
index dc800e449..d9089a95b 100644
--- a/newlib/libc/ctype/toupper.c
+++ b/newlib/libc/ctype/toupper.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_toupper
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <ctype.h>
 	int toupper(int <[c]>);
 	int _toupper(int <[c]>);
@@ -19,11 +19,6 @@ ANSI_SYNOPSIS
 	#include <ctype.h>
 	int toupper_l(int <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <ctype.h>
-	int toupper(<[c]>);
-	int _toupper(<[c]>);
-
 
 DESCRIPTION
 <<toupper>> is a macro which converts lowercase characters to uppercase,
diff --git a/newlib/libc/ctype/towctrans.c b/newlib/libc/ctype/towctrans.c
index a9eaf495d..5528542ff 100644
--- a/newlib/libc/ctype/towctrans.c
+++ b/newlib/libc/ctype/towctrans.c
@@ -37,19 +37,13 @@ INDEX
 INDEX
 	towctrans_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	wint_t towctrans(wint_t <[c]>, wctrans_t <[w]>);
 
 	#include <wctype.h>
 	wint_t towctrans_l(wint_t <[c]>, wctrans_t <[w]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	wint_t towctrans(<[c]>, <[w]>)
-	wint_t <[c]>;
-	wctrans_t <[w]>;
-
 
 DESCRIPTION
 <<towctrans>> is a function which converts wide characters based on
diff --git a/newlib/libc/ctype/towlower.c b/newlib/libc/ctype/towlower.c
index b69c8ffe5..4485fdef4 100644
--- a/newlib/libc/ctype/towlower.c
+++ b/newlib/libc/ctype/towlower.c
@@ -37,18 +37,13 @@ INDEX
 INDEX
 	towlower_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	wint_t towlower(wint_t <[c]>);
 
 	#include <wctype.h>
 	wint_t towlower_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	wint_t towlower(<[c]>)
-	wint_t <[c]>;
-
 
 DESCRIPTION
 <<towlower>> is a function which converts uppercase wide characters to
diff --git a/newlib/libc/ctype/towupper.c b/newlib/libc/ctype/towupper.c
index 1e4d0f5cb..06d12ea99 100644
--- a/newlib/libc/ctype/towupper.c
+++ b/newlib/libc/ctype/towupper.c
@@ -37,18 +37,13 @@ INDEX
 INDEX
 	towupper_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	wint_t towupper(wint_t <[c]>);
 
 	#include <wctype.h>
 	wint_t towupper_l(wint_t <[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	wint_t towupper(<[c]>)
-	wint_t <[c]>;
-
 
 DESCRIPTION
 <<towupper>> is a function which converts lowercase wide characters to
diff --git a/newlib/libc/ctype/wctrans.c b/newlib/libc/ctype/wctrans.c
index b3ad0bbdb..dd5b28c4b 100644
--- a/newlib/libc/ctype/wctrans.c
+++ b/newlib/libc/ctype/wctrans.c
@@ -37,18 +37,13 @@ INDEX
 INDEX
 	wctrans_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	wctrans_t wctrans(const char *<[c]>);
 
 	#include <wctype.h>
 	wctrans_t wctrans_l(const char *<[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	wctrans_t wctrans(<[c]>)
-	const char * <[c]>;
-
 
 DESCRIPTION
 <<wctrans>> is a function which takes a string <[c]> and gives back
diff --git a/newlib/libc/ctype/wctype.c b/newlib/libc/ctype/wctype.c
index f32c42151..c1a70eebb 100644
--- a/newlib/libc/ctype/wctype.c
+++ b/newlib/libc/ctype/wctype.c
@@ -37,18 +37,13 @@ INDEX
 INDEX
 	wctype_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wctype.h>
 	wctype_t wctype(const char *<[c]>);
 
 	#include <wctype.h>
 	wctype_t wctype_l(const char *<[c]>, locale_t <[locale]>);
 
-TRAD_SYNOPSIS
-	#include <wctype.h>
-	wctype_t wctype(<[c]>)
-	const char * <[c]>;
-
 
 DESCRIPTION
 <<wctype>> is a function which takes a string <[c]> and gives back
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 13/24] stdio64: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (6 preceding siblings ...)
  2017-11-30 10:29 ` [PATCH 16/24] sys: " Yaakov Selkowitz
@ 2017-11-30 10:29 ` Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 02/24] iconv: " Yaakov Selkowitz
                   ` (16 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:29 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/stdio64/fgetpos64.c | 12 +-----------
 newlib/libc/stdio64/fopen64.c   | 13 +------------
 newlib/libc/stdio64/freopen64.c | 15 +--------------
 newlib/libc/stdio64/fseeko64.c  | 15 +--------------
 newlib/libc/stdio64/fsetpos64.c | 13 +------------
 newlib/libc/stdio64/ftello64.c  | 11 +----------
 newlib/libc/stdio64/tmpfile64.c |  9 +--------
 7 files changed, 7 insertions(+), 81 deletions(-)

diff --git a/newlib/libc/stdio64/fgetpos64.c b/newlib/libc/stdio64/fgetpos64.c
index 36f7ec90b..a1d0a3724 100644
--- a/newlib/libc/stdio64/fgetpos64.c
+++ b/newlib/libc/stdio64/fgetpos64.c
@@ -7,22 +7,12 @@ INDEX
 INDEX
 	_fgetpos64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fgetpos64(FILE *<[fp]>, _fpos64_t *<[pos]>);
 	int _fgetpos64_r(struct _reent *<[ptr]>, FILE *<[fp]>, 
 	                 _fpos64_t *<[pos]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fgetpos64(<[fp]>, <[pos]>)
-	FILE *<[fp]>;
-	_fpos64_t *<[pos]>;
-
-	int _fgetpos64_r(<[ptr]>, <[fp]>, <[pos]>)
-	FILE *<[fp]>;
-	_fpos64_t *<[pos]>;
-
 DESCRIPTION
 Objects of type <<FILE>> can have a ``position'' that records how much
 of the file your program has already read.  Many of the <<stdio>> functions
diff --git a/newlib/libc/stdio64/fopen64.c b/newlib/libc/stdio64/fopen64.c
index 84f7b6e49..60ac73fda 100644
--- a/newlib/libc/stdio64/fopen64.c
+++ b/newlib/libc/stdio64/fopen64.c
@@ -24,23 +24,12 @@ INDEX
 INDEX
 	_fopen64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *fopen64(const char *<[file]>, const char *<[mode]>);
 	FILE *_fopen64_r(void *<[reent]>,
                        const char *<[file]>, const char *<[mode]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	FILE *fopen64(<[file]>, <[mode]>)
-	char *<[file]>;
-	char *<[mode]>;
-
-	FILE *_fopen64_r(<[reent]>, <[file]>, <[mode]>)
-	char *<[reent]>;
-	char *<[file]>;
-	char *<[mode]>;
-
 DESCRIPTION
 <<fopen64>> is identical to <<fopen>> except it opens a large file that
 is potentially >2GB in size.  See <<fopen>> for further details.
diff --git a/newlib/libc/stdio64/freopen64.c b/newlib/libc/stdio64/freopen64.c
index f7df35407..379462c31 100644
--- a/newlib/libc/stdio64/freopen64.c
+++ b/newlib/libc/stdio64/freopen64.c
@@ -24,26 +24,13 @@ INDEX
 INDEX
 	_freopen64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *freopen64(const char *<[file]>, const char *<[mode]>,
 		        FILE *<[fp]>);
 	FILE *_freopen64_r(struct _reent *<[ptr]>, const char *<[file]>,
 		        const char *<[mode]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	FILE *freopen64(<[file]>, <[mode]>, <[fp]>)
-	char *<[file]>;
-	char *<[mode]>;
-	FILE *<[fp]>;
-
-	FILE *_freopen64_r(<[ptr]>, <[file]>, <[mode]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	char *<[file]>;
-	char *<[mode]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 Use this variant of <<fopen64>> if you wish to specify a particular file
 descriptor <[fp]> (notably <<stdin>>, <<stdout>>, or <<stderr>>) for
diff --git a/newlib/libc/stdio64/fseeko64.c b/newlib/libc/stdio64/fseeko64.c
index 34eee6783..624e91275 100644
--- a/newlib/libc/stdio64/fseeko64.c
+++ b/newlib/libc/stdio64/fseeko64.c
@@ -24,24 +24,11 @@ INDEX
 INDEX
 	_fseeko64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fseeko64(FILE *<[fp]>, _off64_t <[offset]>, int <[whence]>);
 	int _fseeko64_r (struct _reent *<[ptr]>, FILE *<[fp]>,
                          _off64_t <[offset]>, int <[whence]>);
-TRAD_SYNOPSIS
-	#include <stdio.h>
-
-	int fseeko64(<[fp]>, <[offset]>, <[whence]>);
-	FILE *<[fp]>;
-	_off64_t <[offset]>;
-	int <[whence]>;
-
-	int _fseeko64_r (<[ptr]>, <[fp]>, <[offset]>, <[whence]>);
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-	_off64_t <[offset]>;
-	int <[whence]>;
 
 DESCRIPTION
 Objects of type <<FILE>> can have a ``position'' that records how much
diff --git a/newlib/libc/stdio64/fsetpos64.c b/newlib/libc/stdio64/fsetpos64.c
index 046990d7a..83d99627d 100644
--- a/newlib/libc/stdio64/fsetpos64.c
+++ b/newlib/libc/stdio64/fsetpos64.c
@@ -7,23 +7,12 @@ INDEX
 INDEX
 	_fsetpos64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	int fsetpos64(FILE *<[fp]>, const _fpos64_t *<[pos]>);
 	int _fsetpos64_r(struct _reent *<[ptr]>, FILE *<[fp]>, 
 	                 const _fpos64_t *<[pos]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	int fsetpos64(<[fp]>, <[pos]>)
-	FILE *<[fp]>;
-	_fpos64_t *<[pos]>;
-
-	int _fsetpos64_r(<[ptr]>, <[fp]>, <[pos]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-	_fpos64_t *<[pos]>;
-
 DESCRIPTION
 Objects of type <<FILE>> can have a ``position'' that records how much
 of the file your program has already read.  Many of the <<stdio>> functions
diff --git a/newlib/libc/stdio64/ftello64.c b/newlib/libc/stdio64/ftello64.c
index c4d6da24b..c6226d105 100644
--- a/newlib/libc/stdio64/ftello64.c
+++ b/newlib/libc/stdio64/ftello64.c
@@ -24,20 +24,11 @@ INDEX
 INDEX
 	_ftello64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	_off64_t ftello64(FILE *<[fp]>);
 	_off64_t _ftello64_r(struct _reent *<[ptr]>, FILE *<[fp]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	_off64_t ftello64(<[fp]>)
-	FILE *<[fp]>;
-
-	_off64_t _ftello64_r(<[ptr]>, <[fp]>)
-	struct _reent *<[ptr]>;
-	FILE *<[fp]>;
-
 DESCRIPTION
 Objects of type <<FILE>> can have a ``position'' that records how much
 of the file your program has already read.  Many of the <<stdio>> functions
diff --git a/newlib/libc/stdio64/tmpfile64.c b/newlib/libc/stdio64/tmpfile64.c
index 98a7d7817..d58aa1472 100644
--- a/newlib/libc/stdio64/tmpfile64.c
+++ b/newlib/libc/stdio64/tmpfile64.c
@@ -7,19 +7,12 @@ INDEX
 INDEX
 	_tmpfile64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *tmpfile64(void);
 
 	FILE *_tmpfile64_r(void *<[reent]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	FILE *tmpfile64();
-
-	FILE *_tmpfile64_r(<[reent]>)
-	char *<[reent]>;
-
 DESCRIPTION
 Create a large temporary file (a file which will be deleted automatically),
 using a name generated by <<tmpnam>>.  The temporary file is opened with
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 23/24] mathfp: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 01/24] ctype: remove TRAD_SYNOPSIS Yaakov Selkowitz
@ 2017-11-30 10:29 ` Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 11/24] signal: " Yaakov Selkowitz
                   ` (22 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:29 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libm/mathfp/e_acosh.c     | 10 +---------
 newlib/libm/mathfp/e_atanh.c     | 10 +---------
 newlib/libm/mathfp/e_hypot.c     |  9 +--------
 newlib/libm/mathfp/e_remainder.c |  9 +--------
 newlib/libm/mathfp/er_lgamma.c   | 25 +------------------------
 newlib/libm/mathfp/s_acos.c      | 12 +-----------
 newlib/libm/mathfp/s_asine.c     | 22 +---------------------
 newlib/libm/mathfp/s_asinh.c     | 10 +---------
 newlib/libm/mathfp/s_atan.c      | 10 +---------
 newlib/libm/mathfp/s_atan2.c     | 12 +-----------
 newlib/libm/mathfp/s_atangent.c  | 19 +------------------
 newlib/libm/mathfp/s_cosh.c      | 10 +---------
 newlib/libm/mathfp/s_erf.c       | 16 +---------------
 newlib/libm/mathfp/s_exp.c       | 10 +---------
 newlib/libm/mathfp/s_fabs.c      | 10 +---------
 newlib/libm/mathfp/s_floor.c     | 13 +------------
 newlib/libm/mathfp/s_fmod.c      | 10 +---------
 newlib/libm/mathfp/s_frexp.c     | 13 +------------
 newlib/libm/mathfp/s_ldexp.c     | 13 +------------
 newlib/libm/mathfp/s_log10.c     | 10 +---------
 newlib/libm/mathfp/s_logarithm.c | 16 +---------------
 newlib/libm/mathfp/s_pow.c       | 10 +---------
 newlib/libm/mathfp/s_sine.c      | 14 +-------------
 newlib/libm/mathfp/s_sineh.c     | 15 +--------------
 newlib/libm/mathfp/s_sqrt.c      |  7 +------
 newlib/libm/mathfp/s_tan.c       | 11 +----------
 newlib/libm/mathfp/s_tanh.c      | 11 +----------
 newlib/libm/mathfp/w_jn.c        | 35 +----------------------------------
 28 files changed, 28 insertions(+), 344 deletions(-)

diff --git a/newlib/libm/mathfp/e_acosh.c b/newlib/libm/mathfp/e_acosh.c
index 7b199c5d9..0ad0f0611 100644
--- a/newlib/libm/mathfp/e_acosh.c
+++ b/newlib/libm/mathfp/e_acosh.c
@@ -10,19 +10,11 @@ acosh
 INDEX
 acoshf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double acosh(double <[x]>);
         float acoshf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double acosh(<[x]>)
-        double <[x]>;
-
-        float acoshf(<[x]>)
-        float <[x]>;
-
 DESCRIPTION
 <<acosh>> calculates the inverse hyperbolic cosine of <[x]>.
 <<acosh>> is defined as
diff --git a/newlib/libm/mathfp/e_atanh.c b/newlib/libm/mathfp/e_atanh.c
index fb233e5d4..072c44607 100644
--- a/newlib/libm/mathfp/e_atanh.c
+++ b/newlib/libm/mathfp/e_atanh.c
@@ -21,19 +21,11 @@ INDEX
 INDEX
         atanhf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double atanh(double <[x]>);
         float atanhf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double atanh(<[x]>)
-        double <[x]>;
-
-        float atanhf(<[x]>)
-        float <[x]>;
-
 DESCRIPTION
         <<atanh>> calculates the inverse hyperbolic tangent of <[x]>.
 
diff --git a/newlib/libm/mathfp/e_hypot.c b/newlib/libm/mathfp/e_hypot.c
index 713aa77c2..1a59afcde 100644
--- a/newlib/libm/mathfp/e_hypot.c
+++ b/newlib/libm/mathfp/e_hypot.c
@@ -19,18 +19,11 @@ INDEX
 INDEX
         hypotf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double hypot(double <[x]>, double <[y]>);
         float hypotf(float <[x]>, float <[y]>);
 
-TRAD_SYNOPSIS
-        double hypot(<[x]>, <[y]>)
-        double <[x]>, <[y]>;
-
-        float hypotf(<[x]>, <[y]>)
-        float <[x]>, <[y]>;
-
 DESCRIPTION
         <<hypot>> calculates the Euclidean distance
         @tex
diff --git a/newlib/libm/mathfp/e_remainder.c b/newlib/libm/mathfp/e_remainder.c
index 02a714d5b..a80706cc1 100644
--- a/newlib/libm/mathfp/e_remainder.c
+++ b/newlib/libm/mathfp/e_remainder.c
@@ -19,18 +19,11 @@ INDEX
 INDEX
         remainderf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double remainder(double <[x]>, double <[y]>);
         float remainderf(float <[x]>, float <[y]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double remainder(<[x]>,<[y]>)
-        double <[x]>, <[y]>;
-        float remainderf(<[x]>,<[y]>)
-        float <[x]>, <[y]>;
-
 DESCRIPTION
 <<remainder>> and <<remainderf>> find the remainder of
 <[x]>/<[y]>; this value is in the range -<[y]>/2 .. +<[y]>/2.
diff --git a/newlib/libm/mathfp/er_lgamma.c b/newlib/libm/mathfp/er_lgamma.c
index fd49c252e..915dac7d0 100644
--- a/newlib/libm/mathfp/er_lgamma.c
+++ b/newlib/libm/mathfp/er_lgamma.c
@@ -34,7 +34,7 @@ lgamma_r
 INDEX
 lgammaf_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 #include <math.h>
 double gamma(double <[x]>);
 float gammaf(float <[x]>);
@@ -45,29 +45,6 @@ float gammaf_r(float <[x]>, int *<[signgamp]>);
 double lgamma_r(double <[x]>, int *<[signgamp]>);
 float lgammaf_r(float <[x]>, int *<[signgamp]>);
 
-TRAD_SYNOPSIS
-#include <math.h>
-double gamma(<[x]>)
-double <[x]>;
-float gammaf(<[x]>)
-float <[x]>;
-double lgamma(<[x]>)
-double <[x]>;
-float lgammaf(<[x]>)
-float <[x]>;
-double gamma_r(<[x]>, <[signgamp]>)
-double <[x]>;
-int <[signgamp]>;
-float gammaf_r(<[x]>, <[signgamp]>)
-float <[x]>;
-int <[signgamp]>;
-double lgamma_r(<[x]>, <[signgamp]>)
-double <[x]>;
-int <[signgamp]>;
-float lgammaf_r(<[x]>, <[signgamp]>)
-float <[x]>;
-int <[signgamp]>;
-
 DESCRIPTION
 <<gamma>> calculates
 @tex
diff --git a/newlib/libm/mathfp/s_acos.c b/newlib/libm/mathfp/s_acos.c
index 051afea72..d66a5cd26 100644
--- a/newlib/libm/mathfp/s_acos.c
+++ b/newlib/libm/mathfp/s_acos.c
@@ -10,21 +10,11 @@ INDEX
 INDEX
         acosf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double acos(double <[x]>);
         float acosf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double acos(<[x]>)
-        double <[x]>;
-
-        float acosf(<[x]>)
-        float <[x]>;
-
-
-
 DESCRIPTION
 
         <<acos>> computes the inverse cosine (arc cosine) of the input value.
diff --git a/newlib/libm/mathfp/s_asine.c b/newlib/libm/mathfp/s_asine.c
index 89a2bed5e..3212862b8 100644
--- a/newlib/libm/mathfp/s_asine.c
+++ b/newlib/libm/mathfp/s_asine.c
@@ -24,7 +24,7 @@ INDEX
 INDEX
    asinef
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double asine(double <[x]>);
         float asinef(float <[x]>);
@@ -33,26 +33,6 @@ ANSI_SYNOPSIS
         double acos(double <[x]>);
         float acosf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double asine(<[x]>);
-        double <[x]>;
-
-        float asinef(<[x]>);
-        float <[x]>;
-
-        double asin(<[x]>)
-        double <[x]>;
-
-        float asinf(<[x]>)
-        float <[x]>;
-
-        double acos(<[x]>)
-        double <[x]>;
-
-        float acosf(<[x]>)
-        float <[x]>;
-
 DESCRIPTION
 
 <<asin>> computes the inverse sine or cosine of the argument <[x]>.
diff --git a/newlib/libm/mathfp/s_asinh.c b/newlib/libm/mathfp/s_asinh.c
index d70cc61db..cedc941a3 100644
--- a/newlib/libm/mathfp/s_asinh.c
+++ b/newlib/libm/mathfp/s_asinh.c
@@ -20,19 +20,11 @@ INDEX
 INDEX
 	asinhf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double asinh(double <[x]>);
 	float asinhf(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double asinh(<[x]>)
-	double <[x]>;
-
-	float asinhf(<[x]>)
-	float <[x]>;
-
 DESCRIPTION
 <<asinh>> calculates the inverse hyperbolic sine of <[x]>.
 <<asinh>> is defined as 
diff --git a/newlib/libm/mathfp/s_atan.c b/newlib/libm/mathfp/s_atan.c
index a5a818979..0dd339474 100644
--- a/newlib/libm/mathfp/s_atan.c
+++ b/newlib/libm/mathfp/s_atan.c
@@ -10,19 +10,11 @@ INDEX
 INDEX
    atanf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double atan(double <[x]>);
         float atanf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double atan(<[x]>);
-        double <[x]>;
-
-        float atanf(<[x]>);
-        float <[x]>;
-
 DESCRIPTION
 
 <<atan>> computes the inverse tangent (arc tangent) of the input value.
diff --git a/newlib/libm/mathfp/s_atan2.c b/newlib/libm/mathfp/s_atan2.c
index 60034b3ad..00121db4b 100644
--- a/newlib/libm/mathfp/s_atan2.c
+++ b/newlib/libm/mathfp/s_atan2.c
@@ -10,21 +10,11 @@ INDEX
 INDEX
    atan2f
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double atan2(double <[y]>,double <[x]>);
         float atan2f(float <[y]>,float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double atan2(<[y]>,<[x]>);
-        double <[y]>;
-        double <[x]>;
-
-        float atan2f(<[y]>,<[x]>);
-        float <[y]>;
-        float <[x]>;
-
 DESCRIPTION
 
 <<atan2>> computes the inverse tangent (arc tangent) of <[y]>/<[x]>.
diff --git a/newlib/libm/mathfp/s_atangent.c b/newlib/libm/mathfp/s_atangent.c
index 0a7c4d2f8..cd9db2dcd 100644
--- a/newlib/libm/mathfp/s_atangent.c
+++ b/newlib/libm/mathfp/s_atangent.c
@@ -20,30 +20,13 @@ INDEX
 INDEX
    atanf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double atan(double <[x]>);
         float atan(float <[x]>);
         double atan2(double <[y]>,double <[x]>);
         float atan2f(float <[y]>,float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double atan2(<[y]>,<[x]>);
-        double <[y]>;
-        double <[x]>;
-
-        float atan2f(<[y]>,<[x]>);
-        float <[y]>;
-        float <[x]>;
-
-        #include <math.h>
-        double atan(<[x]>);
-        double <[x]>;
-
-        float atanf(<[x]>);
-        float <[x]>;
-
 DESCRIPTION
 
 <<atan2>> computes the inverse tangent (arc tangent) of y / x.
diff --git a/newlib/libm/mathfp/s_cosh.c b/newlib/libm/mathfp/s_cosh.c
index f91411037..552e5ee5c 100644
--- a/newlib/libm/mathfp/s_cosh.c
+++ b/newlib/libm/mathfp/s_cosh.c
@@ -6,19 +6,11 @@
 FUNCTION
         <<cosh>>, <<coshf>>---hyperbolic cosine
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double cosh(double <[x]>);
         float coshf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double cosh(<[x]>);
-        double <[x]>;
-
-        float coshf(<[x]>);
-        float <[x]>;
-
 DESCRIPTION
 
         <<cosh>> computes the hyperbolic cosine of the argument <[x]>.
diff --git a/newlib/libm/mathfp/s_erf.c b/newlib/libm/mathfp/s_erf.c
index 2d8faa3d8..514da7464 100644
--- a/newlib/libm/mathfp/s_erf.c
+++ b/newlib/libm/mathfp/s_erf.c
@@ -23,26 +23,12 @@ INDEX
 INDEX
 	erfcf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double erf(double <[x]>);
 	float erff(float <[x]>);
 	double erfc(double <[x]>);
 	float erfcf(float <[x]>);
-TRAD_SYNOPSIS
-	#include <math.h>
-
-	double erf(<[x]>)
-	double <[x]>;
-
-	float erff(<[x]>)
-	float <[x]>;
-
-	double erfc(<[x]>)
-	double <[x]>;
-
-	float erfcf(<[x]>)
-	float <[x]>;
 
 DESCRIPTION
 	<<erf>> calculates an approximation to the ``error function'',
diff --git a/newlib/libm/mathfp/s_exp.c b/newlib/libm/mathfp/s_exp.c
index e70699b06..362b8b079 100644
--- a/newlib/libm/mathfp/s_exp.c
+++ b/newlib/libm/mathfp/s_exp.c
@@ -15,19 +15,11 @@ INDEX
 INDEX
         expf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double exp(double <[x]>);
         float expf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double exp(<[x]>);
-        double <[x]>;
-
-        float expf(<[x]>);
-        float <[x]>;
-
 DESCRIPTION
         <<exp>> and <<expf>> calculate the exponential of <[x]>, that is,
         @ifnottex
diff --git a/newlib/libm/mathfp/s_fabs.c b/newlib/libm/mathfp/s_fabs.c
index 9e1d75eb3..3d6d83889 100644
--- a/newlib/libm/mathfp/s_fabs.c
+++ b/newlib/libm/mathfp/s_fabs.c
@@ -9,19 +9,11 @@ INDEX
 INDEX
         fabsf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
        double fabs(double <[x]>);
        float fabsf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-       double fabs(<[x]>)
-       double <[x]>;
-
-       float fabsf(<[x]>)
-       float <[x]>;
-
 DESCRIPTION
 <<fabs>> and <<fabsf>> calculate
 @tex
diff --git a/newlib/libm/mathfp/s_floor.c b/newlib/libm/mathfp/s_floor.c
index 0dbc207f3..ebdb9a7b3 100644
--- a/newlib/libm/mathfp/s_floor.c
+++ b/newlib/libm/mathfp/s_floor.c
@@ -13,24 +13,13 @@ INDEX
 INDEX
         ceilf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double floor(double <[x]>);
         float floorf(float <[x]>);
         double ceil(double <[x]>);
         float ceilf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double floor(<[x]>)
-        double <[x]>;
-        float floorf(<[x]>)
-        float <[x]>;
-        double ceil(<[x]>)
-        double <[x]>;
-        float ceilf(<[x]>)
-        float <[x]>;
-
 DESCRIPTION
 <<floor>> and <<floorf>> find
 @tex
diff --git a/newlib/libm/mathfp/s_fmod.c b/newlib/libm/mathfp/s_fmod.c
index 19bba9c18..d878f009c 100644
--- a/newlib/libm/mathfp/s_fmod.c
+++ b/newlib/libm/mathfp/s_fmod.c
@@ -20,19 +20,11 @@ fmod
 INDEX
 fmodf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 #include <math.h>
 double fmod(double <[x]>, double <[y]>);
 float fmodf(float <[x]>, float <[y]>);
 
-TRAD_SYNOPSIS
-#include <math.h>
-double fmod(<[x]>, <[y]>);
-double (<[x]>, <[y]>);
-
-float fmodf(<[x]>, <[y]>);
-float (<[x]>, <[y]>);
-
 DESCRIPTION
 The <<fmod>> and <<fmodf>> functions compute the floating-point
 remainder of <[x]>/<[y]> (<[x]> modulo <[y]>).
diff --git a/newlib/libm/mathfp/s_frexp.c b/newlib/libm/mathfp/s_frexp.c
index 54fa336c8..c0990df5f 100644
--- a/newlib/libm/mathfp/s_frexp.c
+++ b/newlib/libm/mathfp/s_frexp.c
@@ -9,22 +9,11 @@ INDEX
 INDEX
         frexpf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double frexp(double <[val]>, int *<[exp]>);
         float frexpf(float <[val]>, int *<[exp]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double frexp(<[val]>, <[exp]>)
-        double <[val]>;
-        int *<[exp]>;
-
-        float frexpf(<[val]>, <[exp]>)
-        float <[val]>;
-        int *<[exp]>;
-
-
 DESCRIPTION
         All nonzero, normal numbers can be described as <[m]> * 2**<[p]>.
         <<frexp>> represents the double <[val]> as a mantissa <[m]>
diff --git a/newlib/libm/mathfp/s_ldexp.c b/newlib/libm/mathfp/s_ldexp.c
index 6da41284b..6971af697 100644
--- a/newlib/libm/mathfp/s_ldexp.c
+++ b/newlib/libm/mathfp/s_ldexp.c
@@ -10,22 +10,11 @@ INDEX
 INDEX
         ldexpf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <math.h>
        double ldexp(double <[val]>, int <[exp]>);
        float ldexpf(float <[val]>, int <[exp]>);
 
-TRAD_SYNOPSIS
-       #include <math.h>
-
-       double ldexp(<[val]>, <[exp]>)
-              double <[val]>;
-              int <[exp]>;
-
-       float ldexpf(<[val]>, <[exp]>)
-              float <[val]>;
-              int <[exp]>;
-
 DESCRIPTION
 <<ldexp>> calculates the value
 @ifnottex
diff --git a/newlib/libm/mathfp/s_log10.c b/newlib/libm/mathfp/s_log10.c
index 080cecd81..9491cff76 100644
--- a/newlib/libm/mathfp/s_log10.c
+++ b/newlib/libm/mathfp/s_log10.c
@@ -23,19 +23,11 @@ log10
 INDEX
 log10f
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double log10(double <[x]>);
         float log10f(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double log10(<[x]>)
-        double <[x]>;
-
-        float log10f(<[x]>)
-        float <[x]>;
-
 DESCRIPTION
 <<log10>> returns the base 10 logarithm of <[x]>.
 It is implemented as <<log(<[x]>) / log(10)>>.
diff --git a/newlib/libm/mathfp/s_logarithm.c b/newlib/libm/mathfp/s_logarithm.c
index 51e7f3066..977a6406d 100644
--- a/newlib/libm/mathfp/s_logarithm.c
+++ b/newlib/libm/mathfp/s_logarithm.c
@@ -20,27 +20,13 @@ INDEX
 INDEX
     log10f
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <math.h>
        double log(double <[x]>);
        float logf(float <[x]>);
        double log10(double <[x]>);
        float log10f(float <[x]>);
 
-TRAD_SYNOPSIS
-       #include <math.h>
-       double log(<[x]>);
-       double <[x]>;
-
-       float logf(<[x]>);
-       float <[x]>;
-
-       double log10(<[x]>);
-       double <[x]>;
-
-       float log10f(<[x]>);
-       float <[x]>;
-
 DESCRIPTION
 Return the natural or base 10 logarithm of <[x]>, that is, its logarithm base e
 (where e is the base of the natural system of logarithms, 2.71828@dots{}) or
diff --git a/newlib/libm/mathfp/s_pow.c b/newlib/libm/mathfp/s_pow.c
index 90d9d0b5f..5866dcd06 100644
--- a/newlib/libm/mathfp/s_pow.c
+++ b/newlib/libm/mathfp/s_pow.c
@@ -10,19 +10,11 @@ INDEX
         powf
 
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double pow(double <[x]>, double <[y]>);
         float pow(float <[x]>, float <[y]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double pow(<[x]>, <[y]>);
-        double <[x]>, <[y]>;
-
-        float pow(<[x]>, <[y]>);
-        float <[x]>, <[y]>;
-
 DESCRIPTION
         <<pow>> and <<powf>> calculate <[x]> raised to the exponent <[y]>.
         @tex
diff --git a/newlib/libm/mathfp/s_sine.c b/newlib/libm/mathfp/s_sine.c
index 9642f4a56..f8bf52952 100644
--- a/newlib/libm/mathfp/s_sine.c
+++ b/newlib/libm/mathfp/s_sine.c
@@ -18,25 +18,13 @@ INDEX
 cos
 INDEX
 cosf
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double sin(double <[x]>);
         float  sinf(float <[x]>);
         double cos(double <[x]>);
         float cosf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double sin(<[x]>)
-        double <[x]>;
-        float  sinf(<[x]>)
-        float <[x]>;
-
-        double cos(<[x]>)
-        double <[x]>;
-        float cosf(<[x]>)
-        float <[x]>;
-
 DESCRIPTION
         <<sin>> and <<cos>> compute (respectively) the sine and cosine
         of the argument <[x]>.  Angles are specified in radians.
diff --git a/newlib/libm/mathfp/s_sineh.c b/newlib/libm/mathfp/s_sineh.c
index 6f5e208b0..581484ac1 100644
--- a/newlib/libm/mathfp/s_sineh.c
+++ b/newlib/libm/mathfp/s_sineh.c
@@ -20,25 +20,12 @@ INDEX
 INDEX
         coshf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double sinh(double <[x]>);
         float  sinhf(float <[x]>);
         double cosh(double <[x]>);
         float  coshf(float <[x]>);
-TRAD_SYNOPSIS
-        #include <math.h>
-        double sinh(<[x]>)
-        double <[x]>;
-
-        float  sinhf(<[x]>)
-        float <[x]>;
-
-        double cosh(<[x]>)
-        double <[x]>;
-
-        float  coshf(<[x]>)
-        float <[x]>;
 
 DESCRIPTION
         <<sinh>> and <<cosh>> compute the hyperbolic sine or cosine
diff --git a/newlib/libm/mathfp/s_sqrt.c b/newlib/libm/mathfp/s_sqrt.c
index bafbb38b1..af3b1d85e 100644
--- a/newlib/libm/mathfp/s_sqrt.c
+++ b/newlib/libm/mathfp/s_sqrt.c
@@ -16,16 +16,11 @@ INDEX
 INDEX
         sqrtf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double sqrt(double <[x]>);
         float  sqrtf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double sqrt(<[x]>);
-        float  sqrtf(<[x]>);
-
 DESCRIPTION
         <<sqrt>> computes the positive square root of the argument.
 
diff --git a/newlib/libm/mathfp/s_tan.c b/newlib/libm/mathfp/s_tan.c
index 725aeec26..3910a4c49 100644
--- a/newlib/libm/mathfp/s_tan.c
+++ b/newlib/libm/mathfp/s_tan.c
@@ -16,20 +16,11 @@ tan
 INDEX
 tanf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double tan(double <[x]>);
         float tanf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double tan(<[x]>)
-        double <[x]>;
-
-        float tanf(<[x]>)
-        float <[x]>;
-
-
 DESCRIPTION
 <<tan>> computes the tangent of the argument <[x]>.
 Angles are specified in radians.
diff --git a/newlib/libm/mathfp/s_tanh.c b/newlib/libm/mathfp/s_tanh.c
index a19855e0b..7c92c1750 100644
--- a/newlib/libm/mathfp/s_tanh.c
+++ b/newlib/libm/mathfp/s_tanh.c
@@ -17,20 +17,11 @@ tanh
 INDEX
 tanhf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double tanh(double <[x]>);
         float tanhf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double tanh(<[x]>)
-        double <[x]>;
-
-        float tanhf(<[x]>)
-        float <[x]>;
-
-
 DESCRIPTION
 
 <<tanh>> computes the hyperbolic tangent of
diff --git a/newlib/libm/mathfp/w_jn.c b/newlib/libm/mathfp/w_jn.c
index 14c2225f0..71ea4a095 100644
--- a/newlib/libm/mathfp/w_jn.c
+++ b/newlib/libm/mathfp/w_jn.c
@@ -40,7 +40,7 @@ yn
 INDEX
 ynf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 #include <math.h>
 double j0(double <[x]>);
 float j0f(float <[x]>);
@@ -55,39 +55,6 @@ float y1f(float <[x]>);
 double yn(int <[n]>, double <[x]>);
 float ynf(int <[n]>, float <[x]>);
 
-TRAD_SYNOPSIS
-#include <math.h>
-
-double j0(<[x]>)
-double <[x]>;
-float j0f(<[x]>)
-float <[x]>;
-double j1(<[x]>)
-double <[x]>;
-float j1f(<[x]>)
-float <[x]>;
-double jn(<[n]>, <[x]>)
-int <[n]>;
-double <[x]>;
-float jnf(<[n]>, <[x]>)
-int <[n]>;
-float <[x]>;
-
-double y0(<[x]>)
-double <[x]>;
-float y0f(<[x]>)
-float <[x]>;
-double y1(<[x]>)
-double <[x]>;
-float y1f(<[x]>)
-float <[x]>;
-double yn(<[n]>, <[x]>)
-int <[n]>;
-double <[x]>;
-float ynf(<[n]>, <[x]>)
-int <[n]>;
-float <[x]>;
-
 DESCRIPTION
 The Bessel functions are a family of functions that solve the
 differential equation
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 02/24] iconv: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (7 preceding siblings ...)
  2017-11-30 10:29 ` [PATCH 13/24] stdio64: " Yaakov Selkowitz
@ 2017-11-30 10:29 ` Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 12/24] stdio: " Yaakov Selkowitz
                   ` (15 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:29 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/iconv/lib/iconv.c | 40 +---------------------------------------
 1 file changed, 1 insertion(+), 39 deletions(-)

diff --git a/newlib/libc/iconv/lib/iconv.c b/newlib/libc/iconv/lib/iconv.c
index 8214a7874..9d9d6a717 100644
--- a/newlib/libc/iconv/lib/iconv.c
+++ b/newlib/libc/iconv/lib/iconv.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
 	_iconv_close_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <iconv.h>
 	iconv_t iconv_open (const char *<[to]>, const char *<[from]>);
 	int iconv_close (iconv_t <[cd]>);
@@ -58,44 +58,6 @@ ANSI_SYNOPSIS
 	                 size_t *<[inbytesleft]>, 
 		         char **<[outbuf]>, size_t *<[outbytesleft]>);
 
-TRAD_SYNOPSIS
-	#include <iconv.h>
-        size_t iconv (<[cd]>, <[in]>, <[inleft]>, <[out]>, <[outleft]>);
-	iconv_t <[cd]>;
-	char **<[in]>;
-	size_t *<[inleft]>; 
-        char **<[out]>;
-       	size_t *<[outleft]>);
-
-	#include <iconv.h>
-	iconv_t iconv_open (<[to]>, <[from]>);
-	const char *<[to]>;
-       	const char *<[from]>;
-
-	#include <iconv.h>
-	int iconv_close (<[cd]>);
-	iconv_t <[cd]>;
-
-	#include <iconv.h>
-        size_t _iconv_r (<[rptr]>, <[cd]>, <[in]>, <[inleft]>, <[out]>, <[outleft]>);
-	struct _reent *<[rptr]>;
-	iconv_t <[cd]>;
-	const char **<[in]>;
-	size_t *<[inleft]>; 
-        char **<[out]>;
-       	size_t *<[outleft]>);
-
-	#include <iconv.h>
-	iconv_t _iconv_open_r (<[rptr]>, <[to]>, <[from]>);
-	struct _reent *<[rptr]>;
-	const char *<[to]>;
-       	const char *<[from]>;
-
-	#include <iconv.h>
-	int iconv_close (<[rptr]>, <[cd]>);
-	struct _reent *<[rptr]>;
-	iconv_t <[cd]>;
-
 DESCRIPTION
 The function <<iconv>> converts characters from <[in]> which are in one
 encoding to characters of another encoding, outputting them to <[out]>.
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 11/24] signal: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 01/24] ctype: remove TRAD_SYNOPSIS Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 23/24] mathfp: " Yaakov Selkowitz
@ 2017-11-30 10:29 ` Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 24/24] HOWTO: remove reference to TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (21 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:29 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/signal/psignal.c |  8 +-------
 newlib/libc/signal/raise.c   | 11 +----------
 newlib/libc/signal/signal.c  | 13 +------------
 3 files changed, 3 insertions(+), 29 deletions(-)

diff --git a/newlib/libc/signal/psignal.c b/newlib/libc/signal/psignal.c
index 4638518da..f2cfdf3ff 100644
--- a/newlib/libc/signal/psignal.c
+++ b/newlib/libc/signal/psignal.c
@@ -6,16 +6,10 @@ FUNCTION
 INDEX
 	psignal
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	void psignal(int <[signal]>, const char *<[prefix]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	void psignal(<[signal]>, <[prefix]>)
-	int <[signal]>;
-	const char *<[prefix]>;
-
 DESCRIPTION
 Use <<psignal>> to print (on standard error) a signal message
 corresponding to the value of the signal number <[signal]>.
diff --git a/newlib/libc/signal/raise.c b/newlib/libc/signal/raise.c
index bc47864e8..df3ebb50f 100644
--- a/newlib/libc/signal/raise.c
+++ b/newlib/libc/signal/raise.c
@@ -12,21 +12,12 @@ INDEX
 INDEX
 	_raise_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <signal.h>
 	int raise(int <[sig]>);
 
 	int _raise_r(void *<[reent]>, int <[sig]>);
 
-TRAD_SYNOPSIS
-	#include <signal.h>
-	int raise(<[sig]>)
-	int <[sig]>;
-
-	int _raise_r(<[reent]>, <[sig]>)
-	char *<[reent]>;
-	int <[sig]>;
-
 DESCRIPTION
 Send the signal <[sig]> (one of the macros from `<<sys/signal.h>>').
 This interrupts your program's normal flow of execution, and allows a signal
diff --git a/newlib/libc/signal/signal.c b/newlib/libc/signal/signal.c
index 183004725..5729f65e3 100644
--- a/newlib/libc/signal/signal.c
+++ b/newlib/libc/signal/signal.c
@@ -7,23 +7,12 @@ INDEX
 INDEX
 	_signal_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <signal.h>
 	void (*signal(int <[sig]>, void(*<[func]>)(int))) (int);
 
 	void (*_signal_r(void *<[reent]>, int <[sig]>, void(*<[func]>)(int))) (int);
 
-TRAD_SYNOPSIS
-	#include <signal.h>
-	char ( * signal(<[sig]>, <[func]>) )()
-	int <[sig]>;
-	char ( * <[func]> )();
-
-	char ( * _signal_r(<[reent]>, <[sig]>, <[func]>) )()
-	char *<[reent]>;
-	int <[sig]>;
-	char ( * <[func]> )();
-
 DESCRIPTION
 <<signal>> provides a simple signal-handling implementation for embedded
 targets.
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 03/24] locale: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (3 preceding siblings ...)
  2017-11-30 10:29 ` [PATCH 24/24] HOWTO: remove reference to TRAD_SYNOPSIS Yaakov Selkowitz
@ 2017-11-30 10:29 ` Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 19/24] libm/common: " Yaakov Selkowitz
                   ` (19 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:29 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/locale/duplocale.c  |  2 +-
 newlib/libc/locale/freelocale.c |  2 +-
 newlib/libc/locale/locale.c     | 18 +-----------------
 newlib/libc/locale/newlocale.c  |  2 +-
 newlib/libc/locale/uselocale.c  |  2 +-
 5 files changed, 5 insertions(+), 21 deletions(-)

diff --git a/newlib/libc/locale/duplocale.c b/newlib/libc/locale/duplocale.c
index 9f6156cb4..d3e7d782e 100644
--- a/newlib/libc/locale/duplocale.c
+++ b/newlib/libc/locale/duplocale.c
@@ -8,7 +8,7 @@ INDEX
 INDEX
 	_duplocale_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <locale.h>
 	locale_t duplocale(locale_t <[locobj]>);
 
diff --git a/newlib/libc/locale/freelocale.c b/newlib/libc/locale/freelocale.c
index dd3c0f95e..f5d55f5e2 100644
--- a/newlib/libc/locale/freelocale.c
+++ b/newlib/libc/locale/freelocale.c
@@ -8,7 +8,7 @@ INDEX
 INDEX
 	_freelocale_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <locale.h>
 	locale_t freelocale(locale_t <[locobj]>);
 
diff --git a/newlib/libc/locale/locale.c b/newlib/libc/locale/locale.c
index b5402372c..073189a29 100644
--- a/newlib/libc/locale/locale.c
+++ b/newlib/libc/locale/locale.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_localeconv_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <locale.h>
 	char *setlocale(int <[category]>, const char *<[locale]>);
 	lconv *localeconv(void);
@@ -20,22 +20,6 @@ ANSI_SYNOPSIS
                         int <[category]>, const char *<[locale]>);
 	lconv *_localeconv_r(void *<[reent]>);
 
-TRAD_SYNOPSIS
-	#include <locale.h>
-	char *setlocale(<[category]>, <[locale]>)
-	int <[category]>;
-	char *<[locale]>;
-
-	lconv *localeconv();
-
-	char *_setlocale_r(<[reent]>, <[category]>, <[locale]>)
-	char *<[reent]>;
-	int <[category]>;
-	char *<[locale]>;
-
-	lconv *_localeconv_r(<[reent]>);
-	char *<[reent]>;
-
 DESCRIPTION
 <<setlocale>> is the facility defined by ANSI C to condition the
 execution environment for international collating and formatting
diff --git a/newlib/libc/locale/newlocale.c b/newlib/libc/locale/newlocale.c
index c8176256e..c6c2a9ca9 100644
--- a/newlib/libc/locale/newlocale.c
+++ b/newlib/libc/locale/newlocale.c
@@ -8,7 +8,7 @@ INDEX
 INDEX
 	_newlocale_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <locale.h>
 	locale_t newlocale(int <[category_mask]>, const char *<[locale]>,
 			   locale_t <[locobj]>);
diff --git a/newlib/libc/locale/uselocale.c b/newlib/libc/locale/uselocale.c
index 810590fc0..83ebcdd19 100644
--- a/newlib/libc/locale/uselocale.c
+++ b/newlib/libc/locale/uselocale.c
@@ -8,7 +8,7 @@ INDEX
 INDEX
 	_uselocale_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <locale.h>
 	locale_t uselocale(locale_t <[locobj]>);
 
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 16/24] sys: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (5 preceding siblings ...)
  2017-11-30 10:29 ` [PATCH 19/24] libm/common: " Yaakov Selkowitz
@ 2017-11-30 10:29 ` Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 13/24] stdio64: " Yaakov Selkowitz
                   ` (17 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:29 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/sys/linux/getdate.c  | 11 +----------
 newlib/libc/sys/linux/pread64.c  | 10 +---------
 newlib/libc/sys/linux/pwrite64.c | 10 +---------
 newlib/libc/sys/rdos/getenv.c    |  7 +------
 4 files changed, 4 insertions(+), 34 deletions(-)

diff --git a/newlib/libc/sys/linux/getdate.c b/newlib/libc/sys/linux/getdate.c
index 5c056c750..0e689f99a 100644
--- a/newlib/libc/sys/linux/getdate.c
+++ b/newlib/libc/sys/linux/getdate.c
@@ -27,20 +27,11 @@ INDEX
 INDEX
         getdate_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <time.h>
         struct tm *getdate(const char *<[string]>);
         int getdate_r(const char *<[string]>, struct tm *<[res]>);
 
-TRAD_SYNOPSIS
-        #include <time.h>
-        struct tm *getdate(<[string]>);
-        const char *<[string]>;
-
-        int getdate_r(<[string]>, <[res]>);
-        const char *<[string]>;
-        struct tm *<[res]>;
-
 DESCRIPTION
 <<getdate>> reads a file which is specified by the environment variable:
 DATEMSK.  This file contains a number of formats valid for input to the
diff --git a/newlib/libc/sys/linux/pread64.c b/newlib/libc/sys/linux/pread64.c
index c4bdca706..3ced04818 100644
--- a/newlib/libc/sys/linux/pread64.c
+++ b/newlib/libc/sys/linux/pread64.c
@@ -5,18 +5,10 @@ FUNCTION
 INDEX
 	pread64
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <unistd.h>
 	ssize_t pread64(int <[fd]>, void *<[buf]>, size_t <[n]>, loff_t <[off]>);
 
-TRAD_SYNOPSIS
-	#include <unistd.h>
-	ssize_t pread64(<[fd]>, <[buf]>, <[n]>, <[off]>)
-	int <[fd]>;
-	void *<[buf]>;
-	size_t <[n]>;
-	loff_t <[off]>;
-
 DESCRIPTION
 The <<pread64>> function is similar to <<pread>>.  The only difference is
 that it operates on large files and so takes a 64-bit offset.  Like <<pread>>>,
diff --git a/newlib/libc/sys/linux/pwrite64.c b/newlib/libc/sys/linux/pwrite64.c
index f1d678493..876749943 100644
--- a/newlib/libc/sys/linux/pwrite64.c
+++ b/newlib/libc/sys/linux/pwrite64.c
@@ -5,18 +5,10 @@ FUNCTION
 INDEX
 	pwrite64
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <unistd.h>
 	ssize_t pwrite64(int <[fd]>, void *<[buf]>, size_t <[n]>, loff_t <[off]>);
 
-TRAD_SYNOPSIS
-	#include <unistd.h>
-	ssize_t pwrite64(<[fd]>, <[buf]>, <[n]>, <[off]>)
-	int <[fd]>;
-	void *<[buf]>;
-	size_t <[n]>;
-	loff_t <[off]>;
-
 DESCRIPTION
 The <<pwrite64>> function is similar to <<pwrite>>.  The only difference is
 that it operates on large files and so takes a 64-bit offset.  Like <<pwrite>>>,
diff --git a/newlib/libc/sys/rdos/getenv.c b/newlib/libc/sys/rdos/getenv.c
index 933ea4d76..1787769e3 100644
--- a/newlib/libc/sys/rdos/getenv.c
+++ b/newlib/libc/sys/rdos/getenv.c
@@ -32,15 +32,10 @@ INDEX
 INDEX
 	environ
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	char *getenv(const char *<[name]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	char *getenv(<[name]>)
-	char *<[name]>;
-
 DESCRIPTION
 <<getenv>> searches the list of environment variable names and values
 (using the global pointer ``<<char **environ>>'') for a variable whose
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 00/24] Remove TRAD_SYNOPSIS
@ 2017-11-30 10:29 Yaakov Selkowitz
  2017-11-30 10:29 ` [PATCH 01/24] ctype: remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (24 more replies)
  0 siblings, 25 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:29 UTC (permalink / raw)
  To: newlib

This completely removes TRAD_SYNOPSIS and renames ANSI_SYNOPSIS to
SYNOPSIS throughout Newlib's docuemntation.  I'm just not sure about
the doc tools themselves; should support for both of those names also
be removed?

Yaakov Selkowitz (24):
  ctype: remove TRAD_SYNOPSIS
  iconv: remove TRAD_SYNOPSIS
  locale: remove TRAD_SYNOPSIS
  microblaze: remove TRAD_SYNOPSIS
  nds32: remove TRAD_SYNOPSIS
  powerpc: remove TRAD_SYNOPSIS
  misc: remove TRAD_SYNOPSIS
  posix: remove TRAD_SYNOPSIS
  reent: remove TRAD_SYNOPSIS
  search: remove TRAD_SYNOPSIS
  signal: remove TRAD_SYNOPSIS
  stdio: remove TRAD_SYNOPSIS
  stdio64: remove TRAD_SYNOPSIS
  stdlib: remove TRAD_SYNOPSIS
  string: remove TRAD_SYNOPSIS
  sys: remove TRAD_SYNOPSIS
  time: remove TRAD_SYNOPSIS
  unix: remove TRAD_SYNOPSIS
  libm/common: remove TRAD_SYNOPSIS
  complex: remove TRAD_SYNOPSIS
  libm/machine: remove TRAD_SYNOPSIS
  math: remove TRAD_SYNOPSIS
  mathfp: remove TRAD_SYNOPSIS
  HOWTO: remove reference to TRAD_SYNOPSIS

 newlib/HOWTO                              |  8 +----
 newlib/libc/ctype/isalnum.c               |  6 +---
 newlib/libc/ctype/isalpha.c               |  6 +---
 newlib/libc/ctype/isascii.c               |  6 +---
 newlib/libc/ctype/isblank.c               |  6 +---
 newlib/libc/ctype/iscntrl.c               |  6 +---
 newlib/libc/ctype/isdigit.c               |  6 +---
 newlib/libc/ctype/islower.c               |  6 +---
 newlib/libc/ctype/isprint.c               |  7 +---
 newlib/libc/ctype/ispunct.c               |  6 +---
 newlib/libc/ctype/isspace.c               |  6 +---
 newlib/libc/ctype/isupper.c               |  6 +---
 newlib/libc/ctype/iswalnum.c              |  7 +---
 newlib/libc/ctype/iswalpha.c              |  7 +---
 newlib/libc/ctype/iswblank.c              |  7 +---
 newlib/libc/ctype/iswcntrl.c              |  7 +---
 newlib/libc/ctype/iswctype.c              |  8 +----
 newlib/libc/ctype/iswdigit.c              |  7 +---
 newlib/libc/ctype/iswgraph.c              |  7 +---
 newlib/libc/ctype/iswlower.c              |  7 +---
 newlib/libc/ctype/iswprint.c              |  7 +---
 newlib/libc/ctype/iswpunct.c              |  7 +---
 newlib/libc/ctype/iswspace.c              |  7 +---
 newlib/libc/ctype/iswupper.c              |  7 +---
 newlib/libc/ctype/iswxdigit.c             |  7 +---
 newlib/libc/ctype/isxdigit.c              |  6 +---
 newlib/libc/ctype/toascii.c               |  7 +---
 newlib/libc/ctype/tolower.c               |  7 +---
 newlib/libc/ctype/toupper.c               |  7 +---
 newlib/libc/ctype/towctrans.c             |  8 +----
 newlib/libc/ctype/towlower.c              |  7 +---
 newlib/libc/ctype/towupper.c              |  7 +---
 newlib/libc/ctype/wctrans.c               |  7 +---
 newlib/libc/ctype/wctype.c                |  7 +---
 newlib/libc/iconv/lib/iconv.c             | 40 +---------------------
 newlib/libc/locale/duplocale.c            |  2 +-
 newlib/libc/locale/freelocale.c           |  2 +-
 newlib/libc/locale/locale.c               | 18 +---------
 newlib/libc/locale/newlocale.c            |  2 +-
 newlib/libc/locale/uselocale.c            |  2 +-
 newlib/libc/machine/microblaze/abort.c    |  6 +---
 newlib/libc/machine/microblaze/strcmp.c   |  8 +----
 newlib/libc/machine/microblaze/strcpy.c   |  8 +----
 newlib/libc/machine/microblaze/strlen.c   |  7 +---
 newlib/libc/machine/nds32/abort.c         |  6 +---
 newlib/libc/machine/powerpc/atosfix16.c   | 25 +-------------
 newlib/libc/machine/powerpc/atoufix16.c   | 25 +-------------
 newlib/libc/machine/powerpc/strtosfix16.c | 31 +----------------
 newlib/libc/machine/powerpc/strtoufix16.c | 31 +----------------
 newlib/libc/machine/powerpc/vec_calloc.c  | 14 +-------
 newlib/libc/machine/powerpc/vec_malloc.c  | 28 +--------------
 newlib/libc/machine/powerpc/vfprintf.c    | 49 +-------------------------
 newlib/libc/machine/powerpc/vfscanf.c     | 36 +------------------
 newlib/libc/misc/ffs.c                    |  6 +---
 newlib/libc/misc/lock.c                   |  2 +-
 newlib/libc/misc/unctrl.c                 |  7 +---
 newlib/libc/posix/popen.c                 |  2 +-
 newlib/libc/posix/posix_spawn.c           |  2 +-
 newlib/libc/reent/closer.c                |  8 +----
 newlib/libc/reent/execr.c                 | 25 ++------------
 newlib/libc/reent/fcntlr.c                | 10 +-----
 newlib/libc/reent/fstat64r.c              |  9 +----
 newlib/libc/reent/fstatr.c                |  9 +----
 newlib/libc/reent/gettimeofdayr.c         | 10 +-----
 newlib/libc/reent/isattyr.c               |  8 +----
 newlib/libc/reent/linkr.c                 |  9 +----
 newlib/libc/reent/lseek64r.c              | 10 +-----
 newlib/libc/reent/lseekr.c                | 10 +-----
 newlib/libc/reent/mkdirr.c                |  9 +----
 newlib/libc/reent/open64r.c               | 10 +-----
 newlib/libc/reent/openr.c                 | 10 +-----
 newlib/libc/reent/readr.c                 | 10 +-----
 newlib/libc/reent/renamer.c               |  9 +----
 newlib/libc/reent/sbrkr.c                 |  8 +----
 newlib/libc/reent/signalr.c               | 16 ++-------
 newlib/libc/reent/stat64r.c               |  9 +----
 newlib/libc/reent/statr.c                 |  9 +----
 newlib/libc/reent/timesr.c                |  9 +----
 newlib/libc/reent/unlinkr.c               |  8 +----
 newlib/libc/reent/writer.c                | 10 +-----
 newlib/libc/search/bsearch.c              | 10 +-----
 newlib/libc/search/qsort.c                | 10 +-----
 newlib/libc/search/qsort_r.c              | 11 +-----
 newlib/libc/signal/psignal.c              |  8 +----
 newlib/libc/signal/raise.c                | 11 +-----
 newlib/libc/signal/signal.c               | 13 +------
 newlib/libc/stdio/clearerr.c              | 12 +------
 newlib/libc/stdio/diprintf.c              |  2 +-
 newlib/libc/stdio/dprintf.c               |  2 +-
 newlib/libc/stdio/fclose.c                | 11 +-----
 newlib/libc/stdio/fcloseall.c             |  9 +----
 newlib/libc/stdio/fdopen.c                | 13 +------
 newlib/libc/stdio/feof.c                  | 12 +------
 newlib/libc/stdio/ferror.c                | 12 +------
 newlib/libc/stdio/fflush.c                |  2 +-
 newlib/libc/stdio/fgetc.c                 | 23 +------------
 newlib/libc/stdio/fgetpos.c               | 13 +------
 newlib/libc/stdio/fgets.c                 | 30 +---------------
 newlib/libc/stdio/fgetwc.c                | 49 +-------------------------
 newlib/libc/stdio/fgetws.c                | 30 +---------------
 newlib/libc/stdio/fileno.c                | 12 +------
 newlib/libc/stdio/fmemopen.c              |  2 +-
 newlib/libc/stdio/fopen.c                 | 13 +------
 newlib/libc/stdio/fopencookie.c           |  2 +-
 newlib/libc/stdio/fpurge.c                |  2 +-
 newlib/libc/stdio/fputc.c                 | 26 +-------------
 newlib/libc/stdio/fputs.c                 | 26 +-------------
 newlib/libc/stdio/fputwc.c                | 57 +------------------------------
 newlib/libc/stdio/fputws.c                | 26 +-------------
 newlib/libc/stdio/fread.c                 | 34 +-----------------
 newlib/libc/stdio/freopen.c               | 15 +-------
 newlib/libc/stdio/fseek.c                 | 26 +-------------
 newlib/libc/stdio/fseeko.c                | 26 +-------------
 newlib/libc/stdio/fsetlocking.c           |  2 +-
 newlib/libc/stdio/fsetpos.c               | 13 +------
 newlib/libc/stdio/ftell.c                 | 18 +---------
 newlib/libc/stdio/ftello.c                | 18 +---------
 newlib/libc/stdio/funopen.c               |  2 +-
 newlib/libc/stdio/fwide.c                 | 13 +------
 newlib/libc/stdio/fwrite.c                | 34 +-----------------
 newlib/libc/stdio/getc.c                  | 12 +------
 newlib/libc/stdio/getchar.c               |  9 +----
 newlib/libc/stdio/getdelim.c              | 10 +-----
 newlib/libc/stdio/getline.c               |  9 +----
 newlib/libc/stdio/gets.c                  | 12 +------
 newlib/libc/stdio/getw.c                  |  7 +---
 newlib/libc/stdio/getwchar.c              | 18 +---------
 newlib/libc/stdio/mktemp.c                |  2 +-
 newlib/libc/stdio/nano-vfprintf.c         |  2 +-
 newlib/libc/stdio/nano-vfscanf.c          | 36 +------------------
 newlib/libc/stdio/open_memstream.c        |  2 +-
 newlib/libc/stdio/perror.c                | 11 +-----
 newlib/libc/stdio/putc.c                  | 14 +-------
 newlib/libc/stdio/putchar.c               | 11 +-----
 newlib/libc/stdio/puts.c                  | 11 +-----
 newlib/libc/stdio/putw.c                  |  8 +----
 newlib/libc/stdio/putwchar.c              | 21 +-----------
 newlib/libc/stdio/remove.c                | 11 +-----
 newlib/libc/stdio/rename.c                |  8 +----
 newlib/libc/stdio/rewind.c                | 11 +-----
 newlib/libc/stdio/setbuf.c                |  8 +----
 newlib/libc/stdio/setbuffer.c             |  9 +----
 newlib/libc/stdio/setlinebuf.c            |  7 +---
 newlib/libc/stdio/setvbuf.c               | 10 +-----
 newlib/libc/stdio/siprintf.c              |  2 +-
 newlib/libc/stdio/siscanf.c               | 32 +----------------
 newlib/libc/stdio/sprintf.c               |  2 +-
 newlib/libc/stdio/sscanf.c                | 32 +----------------
 newlib/libc/stdio/stdio_ext.c             |  2 +-
 newlib/libc/stdio/swprintf.c              |  2 +-
 newlib/libc/stdio/swscanf.c               | 32 +----------------
 newlib/libc/stdio/tmpfile.c               |  7 +---
 newlib/libc/stdio/tmpnam.c                | 20 +----------
 newlib/libc/stdio/ungetc.c                |  2 +-
 newlib/libc/stdio/ungetwc.c               |  2 +-
 newlib/libc/stdio/vfprintf.c              |  2 +-
 newlib/libc/stdio/vfscanf.c               | 36 +------------------
 newlib/libc/stdio/vfwprintf.c             |  2 +-
 newlib/libc/stdio/vfwscanf.c              | 36 +------------------
 newlib/libc/stdio/viprintf.c              |  2 +-
 newlib/libc/stdio/viscanf.c               | 36 +------------------
 newlib/libc/stdio64/fgetpos64.c           | 12 +------
 newlib/libc/stdio64/fopen64.c             | 13 +------
 newlib/libc/stdio64/freopen64.c           | 15 +-------
 newlib/libc/stdio64/fseeko64.c            | 15 +-------
 newlib/libc/stdio64/fsetpos64.c           | 13 +------
 newlib/libc/stdio64/ftello64.c            | 11 +-----
 newlib/libc/stdio64/tmpfile64.c           |  9 +----
 newlib/libc/stdlib/_Exit.c                |  7 +---
 newlib/libc/stdlib/a64l.c                 | 10 +-----
 newlib/libc/stdlib/abort.c                |  6 +---
 newlib/libc/stdlib/abs.c                  |  7 +---
 newlib/libc/stdlib/assert.c               |  2 +-
 newlib/libc/stdlib/atexit.c               |  7 +---
 newlib/libc/stdlib/atof.c                 | 10 +-----
 newlib/libc/stdlib/atoi.c                 | 19 +----------
 newlib/libc/stdlib/atoll.c                | 11 +-----
 newlib/libc/stdlib/calloc.c               | 14 +-------
 newlib/libc/stdlib/div.c                  |  7 +---
 newlib/libc/stdlib/ecvtbuf.c              | 19 +----------
 newlib/libc/stdlib/efgcvt.c               | 41 ++--------------------
 newlib/libc/stdlib/envlock.c              |  9 +----
 newlib/libc/stdlib/exit.c                 |  7 +---
 newlib/libc/stdlib/getenv.c               |  7 +---
 newlib/libc/stdlib/getenv_r.c             |  8 +----
 newlib/libc/stdlib/itoa.c                 |  2 +-
 newlib/libc/stdlib/labs.c                 |  7 +---
 newlib/libc/stdlib/ldiv.c                 |  7 +---
 newlib/libc/stdlib/llabs.c                |  7 +---
 newlib/libc/stdlib/lldiv.c                |  7 +---
 newlib/libc/stdlib/malloc.c               | 52 +---------------------------
 newlib/libc/stdlib/mblen.c                |  8 +----
 newlib/libc/stdlib/mblen_r.c              | 10 +-----
 newlib/libc/stdlib/mbsnrtowcs.c           | 35 +------------------
 newlib/libc/stdlib/mbstowcs.c             |  9 +----
 newlib/libc/stdlib/mbtowc.c               |  9 +----
 newlib/libc/stdlib/mlock.c                |  9 +----
 newlib/libc/stdlib/mstats.c               | 23 +------------
 newlib/libc/stdlib/on_exit.c              |  8 +----
 newlib/libc/stdlib/rand.c                 | 13 +------
 newlib/libc/stdlib/rand48.c               | 28 +--------------
 newlib/libc/stdlib/random.c               |  2 +-
 newlib/libc/stdlib/rpmatch.c              |  7 +---
 newlib/libc/stdlib/strtod.c               | 17 +--------
 newlib/libc/stdlib/strtol.c               | 15 +-------
 newlib/libc/stdlib/strtoll.c              | 15 +-------
 newlib/libc/stdlib/strtoul.c              | 15 +-------
 newlib/libc/stdlib/strtoull.c             | 15 +-------
 newlib/libc/stdlib/system.c               | 11 +-----
 newlib/libc/stdlib/utoa.c                 |  2 +-
 newlib/libc/stdlib/wcsnrtombs.c           | 35 +------------------
 newlib/libc/stdlib/wcstod.c               | 22 +-----------
 newlib/libc/stdlib/wcstol.c               | 15 +-------
 newlib/libc/stdlib/wcstoll.c              | 15 +-------
 newlib/libc/stdlib/wcstombs.c             |  9 +----
 newlib/libc/stdlib/wcstoul.c              | 15 +-------
 newlib/libc/stdlib/wcstoull.c             | 15 +-------
 newlib/libc/stdlib/wctomb.c               |  8 +----
 newlib/libc/string/bcmp.c                 |  9 +----
 newlib/libc/string/bcopy.c                |  8 +----
 newlib/libc/string/bzero.c                |  8 +----
 newlib/libc/string/index.c                |  8 +----
 newlib/libc/string/memccpy.c              |  9 +----
 newlib/libc/string/memchr.c               |  9 +----
 newlib/libc/string/memcmp.c               |  9 +----
 newlib/libc/string/memcpy.c               |  9 +----
 newlib/libc/string/memmem.c               |  2 +-
 newlib/libc/string/memmove.c              |  9 +----
 newlib/libc/string/mempcpy.c              |  8 +----
 newlib/libc/string/memrchr.c              |  9 +----
 newlib/libc/string/memset.c               |  9 +----
 newlib/libc/string/rawmemchr.c            |  8 +----
 newlib/libc/string/rindex.c               |  8 +----
 newlib/libc/string/stpcpy.c               |  8 +----
 newlib/libc/string/stpncpy.c              |  9 +----
 newlib/libc/string/strcasecmp.c           |  8 +----
 newlib/libc/string/strcasecmp_l.c         |  2 +-
 newlib/libc/string/strcasestr.c           |  8 +----
 newlib/libc/string/strcat.c               |  8 +----
 newlib/libc/string/strchr.c               |  8 +----
 newlib/libc/string/strchrnul.c            |  8 +----
 newlib/libc/string/strcmp.c               |  8 +----
 newlib/libc/string/strcoll.c              |  8 +----
 newlib/libc/string/strcoll_l.c            |  2 +-
 newlib/libc/string/strcpy.c               |  8 +----
 newlib/libc/string/strcspn.c              |  7 +---
 newlib/libc/string/strerror.c             |  7 +---
 newlib/libc/string/strerror_r.c           |  9 +----
 newlib/libc/string/strlen.c               |  7 +---
 newlib/libc/string/strlwr.c               |  7 +---
 newlib/libc/string/strncasecmp.c          |  9 +----
 newlib/libc/string/strncasecmp_l.c        |  2 +-
 newlib/libc/string/strncat.c              |  9 +----
 newlib/libc/string/strncmp.c              |  9 +----
 newlib/libc/string/strncpy.c              |  9 +----
 newlib/libc/string/strnlen.c              |  8 +----
 newlib/libc/string/strnstr.c              |  2 +-
 newlib/libc/string/strpbrk.c              |  8 +----
 newlib/libc/string/strrchr.c              |  8 +----
 newlib/libc/string/strsignal.c            |  7 +---
 newlib/libc/string/strspn.c               |  8 +----
 newlib/libc/string/strstr.c               |  8 +----
 newlib/libc/string/strtok.c               | 17 +--------
 newlib/libc/string/strupr.c               |  7 +---
 newlib/libc/string/strverscmp.c           |  9 +----
 newlib/libc/string/strxfrm.c              |  9 +----
 newlib/libc/string/strxfrm_l.c            |  2 +-
 newlib/libc/string/swab.c                 |  8 +----
 newlib/libc/string/wcpcpy.c               |  7 +---
 newlib/libc/string/wcpncpy.c              |  8 +----
 newlib/libc/string/wcscasecmp.c           |  8 +----
 newlib/libc/string/wcscasecmp_l.c         |  2 +-
 newlib/libc/string/wcscat.c               |  7 +---
 newlib/libc/string/wcschr.c               |  7 +---
 newlib/libc/string/wcscmp.c               |  6 +---
 newlib/libc/string/wcscoll.c              |  8 +----
 newlib/libc/string/wcscoll_l.c            |  2 +-
 newlib/libc/string/wcscpy.c               |  7 +---
 newlib/libc/string/wcscspn.c              |  7 +---
 newlib/libc/string/wcsdup.c               |  8 +----
 newlib/libc/string/wcslcat.c              |  9 +----
 newlib/libc/string/wcslcpy.c              |  9 +----
 newlib/libc/string/wcslen.c               |  6 +---
 newlib/libc/string/wcsncasecmp.c          |  9 +----
 newlib/libc/string/wcsncasecmp_l.c        |  2 +-
 newlib/libc/string/wcsncat.c              |  8 +----
 newlib/libc/string/wcsncmp.c              |  8 +----
 newlib/libc/string/wcsncpy.c              |  8 +----
 newlib/libc/string/wcsnlen.c              |  8 +----
 newlib/libc/string/wcspbrk.c              |  7 +---
 newlib/libc/string/wcsrchr.c              |  8 +----
 newlib/libc/string/wcsspn.c               |  7 +---
 newlib/libc/string/wcsstr.c               |  7 +---
 newlib/libc/string/wcstok.c               |  9 +----
 newlib/libc/string/wcswidth.c             |  8 +----
 newlib/libc/string/wcsxfrm.c              |  9 +----
 newlib/libc/string/wcsxfrm_l.c            |  2 +-
 newlib/libc/string/wcwidth.c              |  7 +---
 newlib/libc/string/wmemchr.c              |  8 +----
 newlib/libc/string/wmemcmp.c              |  8 +----
 newlib/libc/string/wmemcpy.c              |  8 +----
 newlib/libc/string/wmemmove.c             |  8 +----
 newlib/libc/string/wmemset.c              |  8 +----
 newlib/libc/sys/linux/getdate.c           | 11 +-----
 newlib/libc/sys/linux/pread64.c           | 10 +-----
 newlib/libc/sys/linux/pwrite64.c          | 10 +-----
 newlib/libc/sys/rdos/getenv.c             |  7 +---
 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 +-
 newlib/libc/unix/pread.c                  | 17 +--------
 newlib/libc/unix/pwrite.c                 | 17 +--------
 newlib/libm/common/isgreater.c            |  2 +-
 newlib/libm/common/s_cbrt.c               |  7 +---
 newlib/libm/common/s_copysign.c           | 12 +------
 newlib/libm/common/s_exp10.c              | 10 +-----
 newlib/libm/common/s_expm1.c              | 10 +-----
 newlib/libm/common/s_fdim.c               |  2 +-
 newlib/libm/common/s_fma.c                |  2 +-
 newlib/libm/common/s_fmax.c               |  2 +-
 newlib/libm/common/s_fmin.c               |  2 +-
 newlib/libm/common/s_ilogb.c              | 11 +-----
 newlib/libm/common/s_infinity.c           |  2 +-
 newlib/libm/common/s_isnan.c              |  2 +-
 newlib/libm/common/s_isnand.c             | 17 +--------
 newlib/libm/common/s_log1p.c              | 10 +-----
 newlib/libm/common/s_log2.c               |  2 +-
 newlib/libm/common/s_logb.c               |  2 +-
 newlib/libm/common/s_lrint.c              |  2 +-
 newlib/libm/common/s_lround.c             |  2 +-
 newlib/libm/common/s_matherr.c            |  7 +---
 newlib/libm/common/s_modf.c               | 12 +------
 newlib/libm/common/s_nan.c                |  7 +---
 newlib/libm/common/s_nearbyint.c          |  2 +-
 newlib/libm/common/s_nextafter.c          | 14 +-------
 newlib/libm/common/s_pow10.c              | 10 +-----
 newlib/libm/common/s_remquo.c             |  2 +-
 newlib/libm/common/s_rint.c               |  2 +-
 newlib/libm/common/s_round.c              |  2 +-
 newlib/libm/common/s_scalbn.c             |  2 +-
 newlib/libm/common/s_signbit.c            |  2 +-
 newlib/libm/common/s_trunc.c              |  2 +-
 newlib/libm/complex/cabs.c                |  2 +-
 newlib/libm/complex/cacos.c               |  2 +-
 newlib/libm/complex/cacosh.c              |  2 +-
 newlib/libm/complex/carg.c                |  2 +-
 newlib/libm/complex/casin.c               |  2 +-
 newlib/libm/complex/casinh.c              |  2 +-
 newlib/libm/complex/catan.c               |  2 +-
 newlib/libm/complex/catanh.c              |  2 +-
 newlib/libm/complex/ccos.c                |  2 +-
 newlib/libm/complex/ccosh.c               |  2 +-
 newlib/libm/complex/cexp.c                |  2 +-
 newlib/libm/complex/cimag.c               |  2 +-
 newlib/libm/complex/clog.c                |  2 +-
 newlib/libm/complex/clog10.c              |  2 +-
 newlib/libm/complex/conj.c                |  2 +-
 newlib/libm/complex/cpow.c                |  2 +-
 newlib/libm/complex/cproj.c               |  2 +-
 newlib/libm/complex/creal.c               |  2 +-
 newlib/libm/complex/csin.c                |  2 +-
 newlib/libm/complex/csinh.c               |  2 +-
 newlib/libm/complex/csqrt.c               |  2 +-
 newlib/libm/complex/ctan.c                |  2 +-
 newlib/libm/complex/ctanh.c               |  2 +-
 newlib/libm/machine/i386/f_llrint.c       |  5 +--
 newlib/libm/machine/i386/f_lrint.c        |  5 +--
 newlib/libm/machine/i386/f_rint.c         |  5 +--
 newlib/libm/math/s_asinh.c                | 10 +-----
 newlib/libm/math/s_atan.c                 | 10 +-----
 newlib/libm/math/s_erf.c                  | 16 +--------
 newlib/libm/math/s_fabs.c                 | 10 +-----
 newlib/libm/math/s_floor.c                | 13 +------
 newlib/libm/math/s_frexp.c                | 13 +------
 newlib/libm/math/s_ldexp.c                | 14 +-------
 newlib/libm/math/s_sin.c                  | 14 +-------
 newlib/libm/math/s_tan.c                  | 11 +-----
 newlib/libm/math/s_tanh.c                 | 11 +-----
 newlib/libm/math/w_acos.c                 | 12 +------
 newlib/libm/math/w_acosh.c                | 10 +-----
 newlib/libm/math/w_asin.c                 | 11 +-----
 newlib/libm/math/w_atan2.c                | 12 +------
 newlib/libm/math/w_atanh.c                | 10 +-----
 newlib/libm/math/w_cosh.c                 | 10 +-----
 newlib/libm/math/w_exp.c                  | 10 +-----
 newlib/libm/math/w_exp2.c                 |  2 +-
 newlib/libm/math/w_fmod.c                 | 10 +-----
 newlib/libm/math/w_gamma.c                | 29 +---------------
 newlib/libm/math/w_hypot.c                |  9 +----
 newlib/libm/math/w_j0.c                   | 35 +------------------
 newlib/libm/math/w_log.c                  | 10 +-----
 newlib/libm/math/w_log10.c                | 10 +-----
 newlib/libm/math/w_pow.c                  | 10 +-----
 newlib/libm/math/w_remainder.c            |  9 +----
 newlib/libm/math/w_sinh.c                 | 10 +-----
 newlib/libm/math/w_sqrt.c                 |  7 +---
 newlib/libm/mathfp/e_acosh.c              | 10 +-----
 newlib/libm/mathfp/e_atanh.c              | 10 +-----
 newlib/libm/mathfp/e_hypot.c              |  9 +----
 newlib/libm/mathfp/e_remainder.c          |  9 +----
 newlib/libm/mathfp/er_lgamma.c            | 25 +-------------
 newlib/libm/mathfp/s_acos.c               | 12 +------
 newlib/libm/mathfp/s_asine.c              | 22 +-----------
 newlib/libm/mathfp/s_asinh.c              | 10 +-----
 newlib/libm/mathfp/s_atan.c               | 10 +-----
 newlib/libm/mathfp/s_atan2.c              | 12 +------
 newlib/libm/mathfp/s_atangent.c           | 19 +----------
 newlib/libm/mathfp/s_cosh.c               | 10 +-----
 newlib/libm/mathfp/s_erf.c                | 16 +--------
 newlib/libm/mathfp/s_exp.c                | 10 +-----
 newlib/libm/mathfp/s_fabs.c               | 10 +-----
 newlib/libm/mathfp/s_floor.c              | 13 +------
 newlib/libm/mathfp/s_fmod.c               | 10 +-----
 newlib/libm/mathfp/s_frexp.c              | 13 +------
 newlib/libm/mathfp/s_ldexp.c              | 13 +------
 newlib/libm/mathfp/s_log10.c              | 10 +-----
 newlib/libm/mathfp/s_logarithm.c          | 16 +--------
 newlib/libm/mathfp/s_pow.c                | 10 +-----
 newlib/libm/mathfp/s_sine.c               | 14 +-------
 newlib/libm/mathfp/s_sineh.c              | 15 +-------
 newlib/libm/mathfp/s_sqrt.c               |  7 +---
 newlib/libm/mathfp/s_tan.c                | 11 +-----
 newlib/libm/mathfp/s_tanh.c               | 11 +-----
 newlib/libm/mathfp/w_jn.c                 | 35 +------------------
 433 files changed, 437 insertions(+), 4015 deletions(-)

-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 14/24] stdlib: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (9 preceding siblings ...)
  2017-11-30 10:29 ` [PATCH 12/24] stdio: " Yaakov Selkowitz
@ 2017-11-30 10:34 ` Yaakov Selkowitz
  2017-11-30 10:34 ` [PATCH 20/24] complex: " Yaakov Selkowitz
                   ` (13 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:34 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/stdlib/_Exit.c      |  7 +-----
 newlib/libc/stdlib/a64l.c       | 10 +-------
 newlib/libc/stdlib/abort.c      |  6 +----
 newlib/libc/stdlib/abs.c        |  7 +-----
 newlib/libc/stdlib/assert.c     |  2 +-
 newlib/libc/stdlib/atexit.c     |  7 +-----
 newlib/libc/stdlib/atof.c       | 10 +-------
 newlib/libc/stdlib/atoi.c       | 19 +--------------
 newlib/libc/stdlib/atoll.c      | 11 +--------
 newlib/libc/stdlib/calloc.c     | 14 +----------
 newlib/libc/stdlib/div.c        |  7 +-----
 newlib/libc/stdlib/ecvtbuf.c    | 19 +--------------
 newlib/libc/stdlib/efgcvt.c     | 41 ++------------------------------
 newlib/libc/stdlib/envlock.c    |  9 +------
 newlib/libc/stdlib/exit.c       |  7 +-----
 newlib/libc/stdlib/getenv.c     |  7 +-----
 newlib/libc/stdlib/getenv_r.c   |  8 +------
 newlib/libc/stdlib/itoa.c       |  2 +-
 newlib/libc/stdlib/labs.c       |  7 +-----
 newlib/libc/stdlib/ldiv.c       |  7 +-----
 newlib/libc/stdlib/llabs.c      |  7 +-----
 newlib/libc/stdlib/lldiv.c      |  7 +-----
 newlib/libc/stdlib/malloc.c     | 52 +----------------------------------------
 newlib/libc/stdlib/mblen.c      |  8 +------
 newlib/libc/stdlib/mblen_r.c    | 10 +-------
 newlib/libc/stdlib/mbsnrtowcs.c | 35 +--------------------------
 newlib/libc/stdlib/mbstowcs.c   |  9 +------
 newlib/libc/stdlib/mbtowc.c     |  9 +------
 newlib/libc/stdlib/mlock.c      |  9 +------
 newlib/libc/stdlib/mstats.c     | 23 +-----------------
 newlib/libc/stdlib/on_exit.c    |  8 +------
 newlib/libc/stdlib/rand.c       | 13 +----------
 newlib/libc/stdlib/rand48.c     | 28 +---------------------
 newlib/libc/stdlib/random.c     |  2 +-
 newlib/libc/stdlib/rpmatch.c    |  7 +-----
 newlib/libc/stdlib/strtod.c     | 17 +-------------
 newlib/libc/stdlib/strtol.c     | 15 +-----------
 newlib/libc/stdlib/strtoll.c    | 15 +-----------
 newlib/libc/stdlib/strtoul.c    | 15 +-----------
 newlib/libc/stdlib/strtoull.c   | 15 +-----------
 newlib/libc/stdlib/system.c     | 11 +--------
 newlib/libc/stdlib/utoa.c       |  2 +-
 newlib/libc/stdlib/wcsnrtombs.c | 35 +--------------------------
 newlib/libc/stdlib/wcstod.c     | 22 +----------------
 newlib/libc/stdlib/wcstol.c     | 15 +-----------
 newlib/libc/stdlib/wcstoll.c    | 15 +-----------
 newlib/libc/stdlib/wcstombs.c   |  9 +------
 newlib/libc/stdlib/wcstoul.c    | 15 +-----------
 newlib/libc/stdlib/wcstoull.c   | 15 +-----------
 newlib/libc/stdlib/wctomb.c     |  8 +------
 50 files changed, 51 insertions(+), 607 deletions(-)

diff --git a/newlib/libc/stdlib/_Exit.c b/newlib/libc/stdlib/_Exit.c
index 3f189a21f..b07559acb 100644
--- a/newlib/libc/stdlib/_Exit.c
+++ b/newlib/libc/stdlib/_Exit.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
 	_Exit
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	void _Exit(int <[code]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	void _Exit(<[code]>)
-	int <[code]>;
-
 DESCRIPTION
 Use <<_Exit>> to return control from a program to the host operating
 environment.  Use the argument <[code]> to pass an exit status to the
diff --git a/newlib/libc/stdlib/a64l.c b/newlib/libc/stdlib/a64l.c
index ee3d40d49..8d68ed0e9 100644
--- a/newlib/libc/stdlib/a64l.c
+++ b/newlib/libc/stdlib/a64l.c
@@ -7,19 +7,11 @@ INDEX
 INDEX
 	l64a
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdlib.h>
         long a64l(const char *<[input]>);
         char *l64a(long <[input]>);
 
-TRAD_SYNOPSIS
-        #include <stdlib.h>
-        long a64l(<[input]>)
-        const char *<[input]>;
-
-        char *l64a(<[input]>)
-        long <[input]>;
-
 DESCRIPTION
 Conversion is performed between long and radix-64 characters.  The
 <<l64a>> routine transforms up to 32 bits of input value starting from
diff --git a/newlib/libc/stdlib/abort.c b/newlib/libc/stdlib/abort.c
index 93f7c2f42..febc07a31 100644
--- a/newlib/libc/stdlib/abort.c
+++ b/newlib/libc/stdlib/abort.c
@@ -15,14 +15,10 @@ FUNCTION
 INDEX
 	abort
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	void abort(void);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	void abort();
-
 DESCRIPTION
 Use <<abort>> to signal that your program has detected a condition it
 cannot deal with.  Normally, <<abort>> ends your program's execution.
diff --git a/newlib/libc/stdlib/abs.c b/newlib/libc/stdlib/abs.c
index 0308b5729..d347265fa 100644
--- a/newlib/libc/stdlib/abs.c
+++ b/newlib/libc/stdlib/abs.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
 	abs
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	int abs(int <[i]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	int abs(<[i]>)
-	int <[i]>;
-
 DESCRIPTION
 <<abs>> returns
 @tex
diff --git a/newlib/libc/stdlib/assert.c b/newlib/libc/stdlib/assert.c
index 135bf1519..a6218746c 100644
--- a/newlib/libc/stdlib/assert.c
+++ b/newlib/libc/stdlib/assert.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	assert
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <assert.h>
 	void assert(int <[expression]>);
 
diff --git a/newlib/libc/stdlib/atexit.c b/newlib/libc/stdlib/atexit.c
index fa91deb03..78180895c 100644
--- a/newlib/libc/stdlib/atexit.c
+++ b/newlib/libc/stdlib/atexit.c
@@ -12,15 +12,10 @@ FUNCTION
 INDEX
 	atexit
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	int atexit (void (*<[function]>)(void));
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	int atexit ((<[function]>)
-	  void (*<[function]>)();
-
 DESCRIPTION
 You can use <<atexit>> to enroll functions in a list of functions that
 will be called when your program terminates normally.  The argument is
diff --git a/newlib/libc/stdlib/atof.c b/newlib/libc/stdlib/atof.c
index 8497f6807..4653d4f93 100644
--- a/newlib/libc/stdlib/atof.c
+++ b/newlib/libc/stdlib/atof.c
@@ -7,19 +7,11 @@ INDEX
 INDEX
 	atoff
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
         double atof(const char *<[s]>);
         float atoff(const char *<[s]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-        double atof(<[s]>)
-        char *<[s]>;
-
-        float atoff(<[s]>)
-        char *<[s]>;
-
 DESCRIPTION
 <<atof>> converts the initial portion of a string to a <<double>>.
 <<atoff>> converts the initial portion of a string to a <<float>>.
diff --git a/newlib/libc/stdlib/atoi.c b/newlib/libc/stdlib/atoi.c
index 6156eda4d..ac3b39a0e 100644
--- a/newlib/libc/stdlib/atoi.c
+++ b/newlib/libc/stdlib/atoi.c
@@ -11,30 +11,13 @@ INDEX
 INDEX
 	_atol_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
         int atoi(const char *<[s]>);
 	long atol(const char *<[s]>);
         int _atoi_r(struct _reent *<[ptr]>, const char *<[s]>);
         long _atol_r(struct _reent *<[ptr]>, const char *<[s]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-       int atoi(<[s]>)
-       char *<[s]>;
-
-       long atol(<[s]>)
-       char *<[s]>;
-
-       int _atoi_r(<[ptr]>, <[s]>)
-       struct _reent *<[ptr]>;
-       char *<[s]>;
-
-       long _atol_r(<[ptr]>, <[s]>)
-       struct _reent *<[ptr]>;
-       char *<[s]>;
-
-
 DESCRIPTION
    <<atoi>> converts the initial portion of a string to an <<int>>.
    <<atol>> converts the initial portion of a string to a <<long>>.
diff --git a/newlib/libc/stdlib/atoll.c b/newlib/libc/stdlib/atoll.c
index a6abd9595..9d8a64a9c 100644
--- a/newlib/libc/stdlib/atoll.c
+++ b/newlib/libc/stdlib/atoll.c
@@ -7,20 +7,11 @@ INDEX
 INDEX
         _atoll_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdlib.h>
         long long atoll(const char *<[str]>);
         long long _atoll_r(struct _reent *<[ptr]>, const char *<[str]>);
 
-TRAD_SYNOPSIS
-        #include <stdlib.h>
-        long long atoll(<[str]>)
-        const char *<[str]>;
-
-        long long _atoll_r(<[ptr]>, <[str]>)
-	struct _reent *<[ptr]>;
-        const char *<[str]>;
-
 DESCRIPTION
 The function <<atoll>> converts the initial portion of the string 
 pointed to by <<*<[str]>>> to a type <<long long>>.  A call to
diff --git a/newlib/libc/stdlib/calloc.c b/newlib/libc/stdlib/calloc.c
index 4415c6591..3a723783b 100644
--- a/newlib/libc/stdlib/calloc.c
+++ b/newlib/libc/stdlib/calloc.c
@@ -11,22 +11,10 @@ INDEX
 INDEX
 	_calloc_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	void *calloc(size_t <[n]>, size_t <[s]>);
 	void *_calloc_r(void *<[reent]>, size_t <[n]>, size_t <[s]>);
-	
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	char *calloc(<[n]>, <[s]>)
-	size_t <[n]>, <[s]>;
-
-	char *_calloc_r(<[reent]>, <[n]>, <[s]>)
-	char *<[reent]>;
-	size_t <[n]>;
-	size_t <[s]>;
-
-
 
 DESCRIPTION
 Use <<calloc>> to request a block of memory sufficient to hold an
diff --git a/newlib/libc/stdlib/div.c b/newlib/libc/stdlib/div.c
index 816c3fb3c..a780a2d3a 100644
--- a/newlib/libc/stdlib/div.c
+++ b/newlib/libc/stdlib/div.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
 	div
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	div_t div(int <[n]>, int <[d]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	div_t div(<[n]>, <[d]>)
-	int <[n]>, <[d]>;
-
 DESCRIPTION
 Divide
 @tex
diff --git a/newlib/libc/stdlib/ecvtbuf.c b/newlib/libc/stdlib/ecvtbuf.c
index feaa33fd0..ee58c9a9a 100644
--- a/newlib/libc/stdlib/ecvtbuf.c
+++ b/newlib/libc/stdlib/ecvtbuf.c
@@ -7,7 +7,7 @@ INDEX
 INDEX
 	fcvtbuf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 
 	char *ecvtbuf(double <[val]>, int <[chars]>, int *<[decpt]>,
@@ -16,23 +16,6 @@ ANSI_SYNOPSIS
 	char *fcvtbuf(double <[val]>, int <[decimals]>, int *<[decpt]>,
                        int *<[sgn]>, char *<[buf]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-
-	char *ecvtbuf(<[val]>, <[chars]>, <[decpt]>, <[sgn]>, <[buf]>);
-	double <[val]>;
-	int <[chars]>;
-	int *<[decpt]>;
-	int *<[sgn]>;
-	char *<[buf]>;
-
-	char *fcvtbuf(<[val]>, <[decimals]>, <[decpt]>, <[sgn]>, <[buf]>);
-	double <[val]>;
-	int <[decimals]>;
-	int *<[decpt]>;
-	int *<[sgn]>;
-	char *<[buf]>;
-
 DESCRIPTION
 	<<ecvtbuf>> and <<fcvtbuf>> produce (null-terminated) strings
 	of digits representating the <<double>> number <[val]>.
diff --git a/newlib/libc/stdlib/efgcvt.c b/newlib/libc/stdlib/efgcvt.c
index b7d9812f6..ae6424559 100644
--- a/newlib/libc/stdlib/efgcvt.c
+++ b/newlib/libc/stdlib/efgcvt.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	fcvtf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 
 	char *ecvt(double <[val]>, int <[chars]>, int *<[decpt]>, int *<[sgn]>);
@@ -22,31 +22,6 @@ ANSI_SYNOPSIS
 	char *fcvtf(float <[val]>, int <[decimals]>, 
                     int *<[decpt]>, int *<[sgn]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-
-	char *ecvt(<[val]>, <[chars]>, <[decpt]>, <[sgn]>);
-	double <[val]>;
-	int <[chars]>;
-	int *<[decpt]>;
-	int *<[sgn]>;
-	char *ecvtf(<[val]>, <[chars]>, <[decpt]>, <[sgn]>);
-	float <[val]>;
-	int <[chars]>;
-	int *<[decpt]>;
-	int *<[sgn]>;
-
-	char *fcvt(<[val]>, <[decimals]>, <[decpt]>, <[sgn]>);
-	double <[val]>;
-	int <[decimals]>;
-	int *<[decpt]>;
-	int *<[sgn]>;
-	char *fcvtf(<[val]>, <[decimals]>, <[decpt]>, <[sgn]>);
-	float <[val]>;
-	int <[decimals]>;
-	int *<[decpt]>;
-	int *<[sgn]>;
-
 DESCRIPTION
 <<ecvt>> and <<fcvt>> produce (null-terminated) strings of digits
 representating the <<double>> number <[val]>.
@@ -91,24 +66,12 @@ INDEX
 INDEX
 	gcvtf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 
 	char *gcvt(double <[val]>, int <[precision]>, char *<[buf]>);
 	char *gcvtf(float <[val]>, int <[precision]>, char *<[buf]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-
-	char *gcvt(<[val]>, <[precision]>, <[buf]>);
-	double <[val]>;
-	int <[precision]>;
-	char *<[buf]>;
-	char *gcvtf(<[val]>, <[precision]>, <[buf]>);
-	float <[val]>;
-	int <[precision]>;
-	char *<[buf]>;
-
 DESCRIPTION
 <<gcvt>> writes a fully formatted number as a null-terminated
 string in the buffer <<*<[buf]>>>.  <<gcvtf>> produces corresponding
diff --git a/newlib/libc/stdlib/envlock.c b/newlib/libc/stdlib/envlock.c
index 410a28a9c..3afe30ee9 100644
--- a/newlib/libc/stdlib/envlock.c
+++ b/newlib/libc/stdlib/envlock.c
@@ -7,18 +7,11 @@ INDEX
 INDEX
 	__env_unlock
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <envlock.h>
 	void __env_lock (struct _reent *<[reent]>);
 	void __env_unlock (struct _reent *<[reent]>);
 
-TRAD_SYNOPSIS
-	void __env_lock(<[reent]>)
-	struct _reent *<[reent]>;
-
-	void __env_unlock(<[reent]>)
-	struct _reent *<[reent]>;
-
 DESCRIPTION
 The <<setenv>> family of routines call these functions when they need to
 modify the environ variable.  The version of these routines supplied in the
diff --git a/newlib/libc/stdlib/exit.c b/newlib/libc/stdlib/exit.c
index 1dc56944a..8d1be9d3a 100644
--- a/newlib/libc/stdlib/exit.c
+++ b/newlib/libc/stdlib/exit.c
@@ -12,15 +12,10 @@ FUNCTION
 INDEX
 	exit
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	void exit(int <[code]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	void exit(<[code]>)
-	int <[code]>;
-
 DESCRIPTION
 Use <<exit>> to return control from a program to the host operating
 environment.  Use the argument <[code]> to pass an exit status to the
diff --git a/newlib/libc/stdlib/getenv.c b/newlib/libc/stdlib/getenv.c
index 79360ac42..c64241ee6 100644
--- a/newlib/libc/stdlib/getenv.c
+++ b/newlib/libc/stdlib/getenv.c
@@ -7,15 +7,10 @@ INDEX
 INDEX
 	environ
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	char *getenv(const char *<[name]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	char *getenv(<[name]>)
-	char *<[name]>;
-
 DESCRIPTION
 <<getenv>> searches the list of environment variable names and values
 (using the global pointer ``<<char **environ>>'') for a variable whose
diff --git a/newlib/libc/stdlib/getenv_r.c b/newlib/libc/stdlib/getenv_r.c
index cdc12c0a9..7376f7407 100644
--- a/newlib/libc/stdlib/getenv_r.c
+++ b/newlib/libc/stdlib/getenv_r.c
@@ -7,16 +7,10 @@ INDEX
 INDEX
 	environ
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	char *_getenv_r(struct _reent *<[reent_ptr]>, const char *<[name]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	char *_getenv_r(<[reent_ptr]>, <[name]>)
-	struct _reent *<[reent_ptr]>;
-	char *<[name]>;
-
 DESCRIPTION
 <<_getenv_r>> searches the list of environment variable names and values
 (using the global pointer ``<<char **environ>>'') for a variable whose
diff --git a/newlib/libc/stdlib/itoa.c b/newlib/libc/stdlib/itoa.c
index 377834d03..3178cd454 100644
--- a/newlib/libc/stdlib/itoa.c
+++ b/newlib/libc/stdlib/itoa.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	itoa
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	char *itoa(int <[value]>, char *<[str]>, int <[base]>);
 	char *__itoa(int <[value]>, char *<[str]>, int <[base]>);
diff --git a/newlib/libc/stdlib/labs.c b/newlib/libc/stdlib/labs.c
index 634cf7348..712f56c37 100644
--- a/newlib/libc/stdlib/labs.c
+++ b/newlib/libc/stdlib/labs.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
 	labs
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	long labs(long <[i]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	long labs(<[i]>)
-	long <[i]>;
-
 DESCRIPTION
 <<labs>> returns
 @tex
diff --git a/newlib/libc/stdlib/ldiv.c b/newlib/libc/stdlib/ldiv.c
index d7508f1c5..242b6bd87 100644
--- a/newlib/libc/stdlib/ldiv.c
+++ b/newlib/libc/stdlib/ldiv.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
 	ldiv
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	ldiv_t ldiv(long <[n]>, long <[d]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	ldiv_t ldiv(<[n]>, <[d]>)
-	long <[n]>, <[d]>;
-
 DESCRIPTION
 Divide
 @tex
diff --git a/newlib/libc/stdlib/llabs.c b/newlib/libc/stdlib/llabs.c
index 496373910..c2a561c38 100644
--- a/newlib/libc/stdlib/llabs.c
+++ b/newlib/libc/stdlib/llabs.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
         llabs
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdlib.h>
         long long llabs(long long <[j]>);
 
-TRAD_SYNOPSIS
-        #include <stdlib.h>
-        long long llabs(<[j]>)
-        long long <[j]>;
-
 DESCRIPTION
 The <<llabs>> function computes the absolute value of the long long integer 
 argument <[j]> (also called the magnitude of <[j]>).
diff --git a/newlib/libc/stdlib/lldiv.c b/newlib/libc/stdlib/lldiv.c
index 6b853e4b6..61a9b50ca 100644
--- a/newlib/libc/stdlib/lldiv.c
+++ b/newlib/libc/stdlib/lldiv.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
         lldiv
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdlib.h>
         lldiv_t lldiv(long long <[n]>, long long <[d]>);
 
-TRAD_SYNOPSIS
-        #include <stdlib.h>
-        lldiv_t lldiv(<[n]>, <[d]>)
-        long long <[n]>, <[d]>;
-
 DESCRIPTION
 Divide
 @tex
diff --git a/newlib/libc/stdlib/malloc.c b/newlib/libc/stdlib/malloc.c
index 160a13eff..9cf897852 100644
--- a/newlib/libc/stdlib/malloc.c
+++ b/newlib/libc/stdlib/malloc.c
@@ -43,7 +43,7 @@ INDEX
 INDEX
 	_malloc_usable_size_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	void *malloc(size_t <[nbytes]>);
 	void *realloc(void *<[aptr]>, size_t <[nbytes]>);
@@ -66,56 +66,6 @@ ANSI_SYNOPSIS
 
 	size_t _malloc_usable_size_r(void *<[reent]>, void *<[aptr]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	char *malloc(<[nbytes]>)
-	size_t <[nbytes]>;
-
-	char *realloc(<[aptr]>, <[nbytes]>)
-	char *<[aptr]>;
-	size_t <[nbytes]>;
-
-	char *reallocf(<[aptr]>, <[nbytes]>)
-	char *<[aptr]>;
-	size_t <[nbytes]>;
-
-	void free(<[aptr]>)
-	char *<[aptr]>;
-
-	char *memalign(<[align]>, <[nbytes]>)
-	size_t <[align]>;
-	size_t <[nbytes]>;
-
-	size_t malloc_usable_size(<[aptr]>)
-	char *<[aptr]>;
-
-	char *_malloc_r(<[reent]>,<[nbytes]>)
-	char *<[reent]>;
-	size_t <[nbytes]>;
-
-	char *_realloc_r(<[reent]>, <[aptr]>, <[nbytes]>)
-	char *<[reent]>;
-	char *<[aptr]>;
-	size_t <[nbytes]>;
-
-	char *_reallocf_r(<[reent]>, <[aptr]>, <[nbytes]>)
-	char *<[reent]>;
-	char *<[aptr]>;
-	size_t <[nbytes]>;
-
-	void _free_r(<[reent]>, <[aptr]>)
-	char *<[reent]>;
-	char *<[aptr]>;
-
-	char *_memalign_r(<[reent]>, <[align]>, <[nbytes]>)
-	char *<[reent]>;
-	size_t <[align]>;
-	size_t <[nbytes]>;
-
-	size_t malloc_usable_size(<[reent]>, <[aptr]>)
-	char *<[reent]>;
-	char *<[aptr]>;
-
 DESCRIPTION
 These functions manage a pool of system memory.
 
diff --git a/newlib/libc/stdlib/mblen.c b/newlib/libc/stdlib/mblen.c
index f9fb46466..30d759be0 100644
--- a/newlib/libc/stdlib/mblen.c
+++ b/newlib/libc/stdlib/mblen.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	mblen
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	int mblen(const char *<[s]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	int mblen(<[s]>, <[n]>)
-	const char *<[s]>;
-	size_t <[n]>;
-
 DESCRIPTION
 When _MB_CAPABLE is not defined, this is a minimal ANSI-conforming 
 implementation of <<mblen>>.  In this case, the
diff --git a/newlib/libc/stdlib/mblen_r.c b/newlib/libc/stdlib/mblen_r.c
index 9c1533ec4..5e58e1e45 100644
--- a/newlib/libc/stdlib/mblen_r.c
+++ b/newlib/libc/stdlib/mblen_r.c
@@ -5,18 +5,10 @@ FUNCTION
 INDEX
 	_mblen_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	int _mblen_r(struct _reent *<[r]>, const char *<[s]>, size_t <[n]>, int *<[state]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	int _mblen_r(<[r]>, <[s]>, <[n]>, <[state]>)
-        struct _reent *<[r]>;
-	const char *<[s]>;
-	size_t <[n]>;
-        int *<[state]>;
-
 DESCRIPTION
 When _MB_CAPABLE is not defined, this is a minimal ANSI-conforming 
 implementation of <<_mblen_r>>.  In this case, the
diff --git a/newlib/libc/stdlib/mbsnrtowcs.c b/newlib/libc/stdlib/mbsnrtowcs.c
index 7ab384721..018f075ee 100644
--- a/newlib/libc/stdlib/mbsnrtowcs.c
+++ b/newlib/libc/stdlib/mbsnrtowcs.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_mbsnrtowcs_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	size_t mbsrtowcs(wchar_t *__restrict <[dst]>,
 			 const char **__restrict <[src]>,
@@ -33,39 +33,6 @@ ANSI_SYNOPSIS
 			     const char **<[src]>, size_t <[nms]>,
 			     size_t <[len]>, mbstate_t *<[ps]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	size_t mbsrtowcs(<[dst]>, <[src]>, <[len]>, <[ps]>)
-	wchar_t *__restrict <[dst]>;
-	const char **__restrict <[src]>;
-	size_t <[len]>;
-	mbstate_t *__restrict <[ps]>;
-
-	#include <wchar.h>
-	size_t _mbsrtowcs_r(<[ptr]>, <[dst]>, <[src]>, <[len]>, <[ps]>)
-	struct _reent *<[ptr]>;
-	wchar_t *<[dst]>;
-	const char **<[src]>;
-	size_t <[len]>;
-	mbstate_t *<[ps]>;
-
-	#include <wchar.h>
-	size_t mbsnrtowcs(<[dst]>, <[src]>, <[nms]>, <[len]>, <[ps]>)
-	wchar_t *__restrict <[dst]>;
-	const char **__restrict <[src]>;
-	size_t <[nms]>;
-	size_t <[len]>;
-	mbstate_t *__restrict <[ps]>;
-
-	#include <wchar.h>
-	size_t _mbsnrtowcs_r(<[ptr]>, <[dst]>, <[src]>, <[nms]>, <[len]>, <[ps]>)
-	struct _reent *<[ptr]>;
-	wchar_t *<[dst]>;
-	const char **<[src]>;
-	size_t <[nms]>;
-	size_t <[len]>;
-	mbstate_t *<[ps]>;
-
 DESCRIPTION
 The <<mbsrtowcs>> function converts a sequence of multibyte characters
 pointed to indirectly by <[src]> into a sequence of corresponding wide
diff --git a/newlib/libc/stdlib/mbstowcs.c b/newlib/libc/stdlib/mbstowcs.c
index 09543451c..70ed9ede6 100644
--- a/newlib/libc/stdlib/mbstowcs.c
+++ b/newlib/libc/stdlib/mbstowcs.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	mbstowcs
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	int mbstowcs(wchar_t *restrict <[pwc]>, const char *restrict <[s]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	int mbstowcs(<[pwc]>, <[s]>, <[n]>)
-	wchar_t *<[pwc]>;
-	const char *<[s]>;
-	size_t <[n]>;
-
 DESCRIPTION
 When _MB_CAPABLE is not defined, this is a minimal ANSI-conforming 
 implementation of <<mbstowcs>>.  In this case, the
diff --git a/newlib/libc/stdlib/mbtowc.c b/newlib/libc/stdlib/mbtowc.c
index 7b8be771c..0c29cf3d9 100644
--- a/newlib/libc/stdlib/mbtowc.c
+++ b/newlib/libc/stdlib/mbtowc.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	mbtowc
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	int mbtowc(wchar_t *restrict <[pwc]>, const char *restrict <[s]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	int mbtowc(<[pwc]>, <[s]>, <[n]>)
-	wchar_t *<[pwc]>;
-	const char *<[s]>;
-	size_t <[n]>;
-
 DESCRIPTION
 When _MB_CAPABLE is not defined, this is a minimal ANSI-conforming 
 implementation of <<mbtowc>>.  In this case,
diff --git a/newlib/libc/stdlib/mlock.c b/newlib/libc/stdlib/mlock.c
index 4c392947d..23aa10173 100644
--- a/newlib/libc/stdlib/mlock.c
+++ b/newlib/libc/stdlib/mlock.c
@@ -8,18 +8,11 @@ INDEX
 INDEX
 	__malloc_unlock
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <malloc.h>
 	void __malloc_lock (struct _reent *<[reent]>);
 	void __malloc_unlock (struct _reent *<[reent]>);
 
-TRAD_SYNOPSIS
-	void __malloc_lock(<[reent]>)
-	struct _reent *<[reent]>;
-
-	void __malloc_unlock(<[reent]>)
-	struct _reent *<[reent]>;
-
 DESCRIPTION
 The <<malloc>> family of routines call these functions when they need to lock
 the memory pool.  The version of these routines supplied in the library use
diff --git a/newlib/libc/stdlib/mstats.c b/newlib/libc/stdlib/mstats.c
index ba89f494d..88cb54c40 100644
--- a/newlib/libc/stdlib/mstats.c
+++ b/newlib/libc/stdlib/mstats.c
@@ -25,7 +25,7 @@ INDEX
 INDEX
 	_mallopt_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <malloc.h>
 	struct mallinfo mallinfo(void);
 	void malloc_stats(void);
@@ -35,27 +35,6 @@ ANSI_SYNOPSIS
 	void _malloc_stats_r(void *<[reent]>);
 	int _mallopt_r(void *<[reent]>, int <[parameter]>, <[value]>);
 
-TRAD_SYNOPSIS
-	#include <malloc.h>
-	struct mallinfo mallinfo();
-
-	void malloc_stats();
-
-	int mallopt(<[parameter]>, <[value]>)
-	int <[parameter]>;
-	int <[value]>;
-
-	struct mallinfo _mallinfo_r(<[reent]>);
-	char *<[reent]>;
-
-	void _malloc_stats_r(<[reent]>);
-	char *<[reent]>;
-
-	int _mallopt_r(<[reent]>, <[parameter]>, <[value]>)
-	char *<[reent]>;
-	int <[parameter]>;
-	int <[value]>;
-
 DESCRIPTION
 <<mallinfo>> returns a structure describing the current state of
 memory allocation.  The structure is defined in malloc.h.  The
diff --git a/newlib/libc/stdlib/on_exit.c b/newlib/libc/stdlib/on_exit.c
index a405b1b51..d22fc3728 100644
--- a/newlib/libc/stdlib/on_exit.c
+++ b/newlib/libc/stdlib/on_exit.c
@@ -14,16 +14,10 @@ FUNCTION
 INDEX
 	on_exit
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	int on_exit (void (*<[function]>)(int, void *), void *<[arg]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	int on_exit ((<[function]>, <[arg]>)
-	  void (*<[function]>)(int, void *);
-	  void *<[arg]>;
-
 DESCRIPTION
 You can use <<on_exit>> to enroll functions in a list of functions that
 will be called when your program terminates normally.  The argument is
diff --git a/newlib/libc/stdlib/rand.c b/newlib/libc/stdlib/rand.c
index 42acde4aa..aacb0a8a4 100644
--- a/newlib/libc/stdlib/rand.c
+++ b/newlib/libc/stdlib/rand.c
@@ -9,23 +9,12 @@ INDEX
 INDEX
 	rand_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	int rand(void);
 	void srand(unsigned int <[seed]>);
 	int rand_r(unsigned int *<[seed]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	int rand();
-
-	void srand(<[seed]>)
-	unsigned int <[seed]>;
-
-	void rand_r(<[seed]>)
-	unsigned int *<[seed]>;
-
-
 DESCRIPTION
 <<rand>> returns a different integer each time it is called; each
 integer is chosen by an algorithm designed to be unpredictable, so
diff --git a/newlib/libc/stdlib/rand48.c b/newlib/libc/stdlib/rand48.c
index af2be3c07..b9bf320b2 100644
--- a/newlib/libc/stdlib/rand48.c
+++ b/newlib/libc/stdlib/rand48.c
@@ -36,7 +36,7 @@ INDEX
 INDEX
        lcong48
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <stdlib.h>
        double drand48(void);
        double erand48(unsigned short <[xseed]>[3]);
@@ -48,32 +48,6 @@ ANSI_SYNOPSIS
        unsigned short *seed48(unsigned short <[xseed]>[3]);
        void lcong48(unsigned short <[p]>[7]);
 
-TRAD_SYNOPSIS
-       #include <stdlib.h>
-       double drand48();
-
-       double erand48(<[xseed]>)
-       unsigned short <[xseed]>[3];
-
-       long lrand48();
-
-       long nrand48(<[xseed]>)
-       unsigned short <[xseed]>[3];
-
-       long mrand48();
-
-       long jrand48(<[xseed]>)
-       unsigned short <[xseed]>[3];
-
-       void srand48(<[seed]>)
-       long <[seed]>;
-
-       unsigned short *seed48(<[xseed]>)
-       unsigned short <[xseed]>[3];
-
-       void lcong48(<[p]>)
-       unsigned short <[p]>[7];
-
 DESCRIPTION
 The <<rand48>> family of functions generates pseudo-random numbers
 using a linear congruential algorithm working on integers 48 bits in size.
diff --git a/newlib/libc/stdlib/random.c b/newlib/libc/stdlib/random.c
index de132f363..7abca6da4 100644
--- a/newlib/libc/stdlib/random.c
+++ b/newlib/libc/stdlib/random.c
@@ -7,7 +7,7 @@ INDEX
 INDEX
 	srandom
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#define _XOPEN_SOURCE 500
 	#include <stdlib.h>
 	long int random(void);
diff --git a/newlib/libc/stdlib/rpmatch.c b/newlib/libc/stdlib/rpmatch.c
index 0bbdf43ed..93d2c3f11 100644
--- a/newlib/libc/stdlib/rpmatch.c
+++ b/newlib/libc/stdlib/rpmatch.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
 	rpmatch
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	int rpmatch(const char *<[response]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	int rpmatch(<[response]>)
-	const char *<[response]>;
-
 DESCRIPTION
 The <<rpmatch>> function determines whether <[response]> is an affirmative
 or negative response to a question according to the current locale.
diff --git a/newlib/libc/stdlib/strtod.c b/newlib/libc/stdlib/strtod.c
index 82e847c40..236daa5f6 100644
--- a/newlib/libc/stdlib/strtod.c
+++ b/newlib/libc/stdlib/strtod.c
@@ -23,7 +23,7 @@ INDEX
 INDEX
 	_strtod_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdlib.h>
         double strtod(const char *restrict <[str]>, char **restrict <[tail]>);
         float strtof(const char *restrict <[str]>, char **restrict <[tail]>);
@@ -42,21 +42,6 @@ ANSI_SYNOPSIS
         double _strtod_r(void *<[reent]>,
                          const char *restrict <[str]>, char **restrict <[tail]>);
 
-TRAD_SYNOPSIS
-        #include <stdlib.h>
-        double strtod(<[str]>,<[tail]>)
-        char *<[str]>;
-        char **<[tail]>;
-
-        float strtof(<[str]>,<[tail]>)
-        char *<[str]>;
-        char **<[tail]>;
-
-        double _strtod_r(<[reent]>,<[str]>,<[tail]>)
-	char *<[reent]>;
-        char *<[str]>;
-        char **<[tail]>;
-
 DESCRIPTION
 	<<strtod>>, <<strtof>>, <<strtold>> parse the character string
 	<[str]>, producing a substring which can be converted to a double,
diff --git a/newlib/libc/stdlib/strtol.c b/newlib/libc/stdlib/strtol.c
index 276ad1340..ba58b6e8c 100644
--- a/newlib/libc/stdlib/strtol.c
+++ b/newlib/libc/stdlib/strtol.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_strtol_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
         long strtol(const char *restrict <[s]>, char **restrict <[ptr]>,
 		    int <[base]>);
@@ -23,19 +23,6 @@ ANSI_SYNOPSIS
         long _strtol_r(void *<[reent]>, const char *restrict <[s]>,
 		       char **restrict <[ptr]>,int <[base]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	long strtol (<[s]>, <[ptr]>, <[base]>)
-        char *<[s]>;
-        char **<[ptr]>;
-        int <[base]>;
-
-	long _strtol_r (<[reent]>, <[s]>, <[ptr]>, <[base]>)
-	char *<[reent]>;
-        char *<[s]>;
-        char **<[ptr]>;
-        int <[base]>;
-
 DESCRIPTION
 The function <<strtol>> converts the string <<*<[s]>>> to
 a <<long>>. First, it breaks down the string into three parts:
diff --git a/newlib/libc/stdlib/strtoll.c b/newlib/libc/stdlib/strtoll.c
index e61a62a7d..2922452c7 100644
--- a/newlib/libc/stdlib/strtoll.c
+++ b/newlib/libc/stdlib/strtoll.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_strtoll_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
         long long strtoll(const char *restrict <[s]>, char **restrict <[ptr]>,
 			  int <[base]>);
@@ -25,19 +25,6 @@ ANSI_SYNOPSIS
 			     const char *restrict <[s]>,
 			     char **restrict <[ptr]>, int <[base]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	long long strtoll (<[s]>, <[ptr]>, <[base]>)
-        const char *<[s]>;
-        char **<[ptr]>;
-        int <[base]>;
-
-	long long _strtoll_r (<[reent]>, <[s]>, <[ptr]>, <[base]>)
-	char *<[reent]>;
-        const char *<[s]>;
-        char **<[ptr]>;
-        int <[base]>;
-
 DESCRIPTION
 The function <<strtoll>> converts the string <<*<[s]>>> to
 a <<long long>>. First, it breaks down the string into three parts:
diff --git a/newlib/libc/stdlib/strtoul.c b/newlib/libc/stdlib/strtoul.c
index aa5897e13..9414661ec 100644
--- a/newlib/libc/stdlib/strtoul.c
+++ b/newlib/libc/stdlib/strtoul.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_strtoul_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
         unsigned long strtoul(const char *restrict <[s]>,
 			      char **restrict <[ptr]>, int <[base]>);
@@ -24,19 +24,6 @@ ANSI_SYNOPSIS
         unsigned long _strtoul_r(void *<[reent]>, const char *restrict <[s]>,
 				 char **restrict <[ptr]>, int <[base]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-        unsigned long strtoul(<[s]>, <[ptr]>, <[base]>)
-        char *<[s]>;
-        char **<[ptr]>;
-        int <[base]>;
-
-        unsigned long _strtoul_r(<[reent]>, <[s]>, <[ptr]>, <[base]>)
-	char *<[reent]>;
-        char *<[s]>;
-        char **<[ptr]>;
-        int <[base]>;
-
 DESCRIPTION
 The function <<strtoul>> converts the string <<*<[s]>>> to
 an <<unsigned long>>. First, it breaks down the string into three parts:
diff --git a/newlib/libc/stdlib/strtoull.c b/newlib/libc/stdlib/strtoull.c
index ba6452e62..aff1fc7c3 100644
--- a/newlib/libc/stdlib/strtoull.c
+++ b/newlib/libc/stdlib/strtoull.c
@@ -8,7 +8,7 @@ INDEX
 INDEX
 	strtoull_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
         unsigned long long strtoull(const char *restrict <[s]>,
 				    char **restrict <[ptr]>, int <[base]>);
@@ -22,19 +22,6 @@ ANSI_SYNOPSIS
 				       const char *restrict <[s]>,
 				       char **restrict <[ptr]>, int <[base]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-        unsigned long long strtoull(<[s]>, <[ptr]>, <[base]>)
-        char *<[s]>;
-        char **<[ptr]>;
-        int <[base]>;
-
-        unsigned long long _strtoull_r(<[reent]>, <[s]>, <[ptr]>, <[base]>)
-	char *<[reent]>;
-        char *<[s]>;
-        char **<[ptr]>;
-        int <[base]>;
-
 DESCRIPTION
 The function <<strtoull>> converts the string <<*<[s]>>> to
 an <<unsigned long long>>. First, it breaks down the string into three parts:
diff --git a/newlib/libc/stdlib/system.c b/newlib/libc/stdlib/system.c
index 135a9d05b..6cacfa587 100644
--- a/newlib/libc/stdlib/system.c
+++ b/newlib/libc/stdlib/system.c
@@ -7,21 +7,12 @@ INDEX
 INDEX
 	_system_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	int system(char *<[s]>);
 
 	int _system_r(void *<[reent]>, char *<[s]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	int system(<[s]>)
-	char *<[s]>;
-
-	int _system_r(<[reent]>, <[s]>)
-	char *<[reent]>;
-	char *<[s]>;
-
 DESCRIPTION
 
 Use <<system>> to pass a command string <<*<[s]>>> to <</bin/sh>> on
diff --git a/newlib/libc/stdlib/utoa.c b/newlib/libc/stdlib/utoa.c
index 7738c2321..75e8616ea 100644
--- a/newlib/libc/stdlib/utoa.c
+++ b/newlib/libc/stdlib/utoa.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	utoa
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	char *utoa(unsigned <[value]>, char *<[str]>, int <[base]>);
 	char *__utoa(unsigned <[value]>, char *<[str]>, int <[base]>);
diff --git a/newlib/libc/stdlib/wcsnrtombs.c b/newlib/libc/stdlib/wcsnrtombs.c
index 8e5c38703..ed5f36968 100644
--- a/newlib/libc/stdlib/wcsnrtombs.c
+++ b/newlib/libc/stdlib/wcsnrtombs.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_wcsnrtombs_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	size_t wcsrtombs(char *__restrict <[dst]>,
 			 const wchar_t **__restrict <[src]>, size_t <[len]>,
@@ -33,39 +33,6 @@ ANSI_SYNOPSIS
 			     const wchar_t **<[src]>, size_t <[nwc]>,
 			     size_t <[len]>, mbstate_t *<[ps]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	size_t wcsrtombs(<[dst]>, <[src]>, <[len]>, <[ps]>)
-	char *__restrict <[dst]>;
-	const wchar_t **__restrict <[src]>;
-	size_t <[len]>;
-	mbstate_t *__restrict <[ps]>;
-
-	#include <wchar.h>
-	size_t _wcsrtombs_r(<[ptr]>, <[dst]>, <[src]>, <[len]>, <[ps]>)
-	struct _rent *<[ptr]>;
-	char *<[dst]>;
-	const wchar_t **<[src]>;
-	size_t <[len]>;
-	mbstate_t *<[ps]>;
-
-	#include <wchar.h>
-	size_t wcsnrtombs(<[dst]>, <[src]>, <[nwc]>, <[len]>, <[ps]>)
-	char *__restrict <[dst]>;
-	const wchar_t **__restrict <[src]>;
-	size_t <[nwc]>;
-	size_t <[len]>;
-	mbstate_t *__restrict <[ps]>;
-
-	#include <wchar.h>
-	size_t _wcsnrtombs_r(<[ptr]>, <[dst]>, <[src]>, <[nwc]>, <[len]>, <[ps]>)
-	struct _rent *<[ptr]>;
-	char *<[dst]>;
-	const wchar_t **<[src]>;
-	size_t <[nwc]>;
-	size_t <[len]>;
-	mbstate_t *<[ps]>;
-
 DESCRIPTION
 The <<wcsrtombs>> function converts a string of wide characters indirectly
 pointed to by <[src]> to a corresponding multibyte character string stored in
diff --git a/newlib/libc/stdlib/wcstod.c b/newlib/libc/stdlib/wcstod.c
index 605fca40b..201a2c32c 100644
--- a/newlib/libc/stdlib/wcstod.c
+++ b/newlib/libc/stdlib/wcstod.c
@@ -26,7 +26,7 @@ INDEX
 INDEX
 	_wcstof_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <stdlib.h>
         double wcstod(const wchar_t *__restrict <[str]>,
 		      wchar_t **__restrict <[tail]>);
@@ -49,26 +49,6 @@ ANSI_SYNOPSIS
         float _wcstof_r(void *<[reent]>,
                          const wchar_t *<[str]>, wchar_t **<[tail]>);
 
-TRAD_SYNOPSIS
-        #include <stdlib.h>
-        double wcstod(<[str]>,<[tail]>)
-        wchar_t *__restrict <[str]>;
-        wchar_t **__restrict <[tail]>;
-
-        float wcstof(<[str]>,<[tail]>)
-        wchar_t *__restrict <[str]>;
-        wchar_t **__restrict <[tail]>;
-
-        double _wcstod_r(<[reent]>,<[str]>,<[tail]>)
-	wchar_t *<[reent]>;
-        wchar_t *<[str]>;
-        wchar_t **<[tail]>;
-
-        float _wcstof_r(<[reent]>,<[str]>,<[tail]>)
-	wchar_t *<[reent]>;
-        wchar_t *<[str]>;
-        wchar_t **<[tail]>;
-
 DESCRIPTION
 	<<wcstod>>, <<wcstof>>, <<wcstold>> parse the wide-character string
 	<[str]>, producing a substring which can be converted to a double,
diff --git a/newlib/libc/stdlib/wcstol.c b/newlib/libc/stdlib/wcstol.c
index 4c7480594..417a46d63 100644
--- a/newlib/libc/stdlib/wcstol.c
+++ b/newlib/libc/stdlib/wcstol.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_wcstol_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
         long wcstol(const wchar_t *__restrict <[s]>,
 		    wchar_t **__restrict <[ptr]>, int <[base]>);
@@ -24,19 +24,6 @@ ANSI_SYNOPSIS
         long _wcstol_r(void *<[reent]>, const wchar_t *<[s]>,
 		       wchar_t **<[ptr]>, int <[base]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	long wcstol (<[s]>, <[ptr]>, <[base]>)
-        wchar_t *__restrict <[s]>;
-        wchar_t **__restrict <[ptr]>;
-        int <[base]>;
-
-	long _wcstol_r (<[reent]>, <[s]>, <[ptr]>, <[base]>)
-	struct _reent *<[reent]>;
-        wchar_t *<[s]>;
-        wchar_t **<[ptr]>;
-        int <[base]>;
-
 DESCRIPTION
 The function <<wcstol>> converts the wide string <<*<[s]>>> to
 a <<long>>. First, it breaks down the string into three parts:
diff --git a/newlib/libc/stdlib/wcstoll.c b/newlib/libc/stdlib/wcstoll.c
index 2996b11a6..3a7a0e28d 100644
--- a/newlib/libc/stdlib/wcstoll.c
+++ b/newlib/libc/stdlib/wcstoll.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_wcstoll_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
         long long wcstoll(const wchar_t *__restrict <[s]>,
 			  wchar_t **__restrict <[ptr]>,int <[base]>);
@@ -24,19 +24,6 @@ ANSI_SYNOPSIS
         long long _wcstoll_r(void *<[reent]>, const wchar_t *<[s]>,
 			     wchar_t **<[ptr]>, int <[base]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	long long wcstoll (<[s]>, <[ptr]>, <[base]>)
-        const wchar_t *__restrict <[s]>;
-        wchar_t **__restrict <[ptr]>;
-        int <[base]>;
-
-	long long _wcstoll_r (<[reent]>, <[s]>, <[ptr]>, <[base]>)
-	wchar_t *<[reent]>;
-        const wchar_t *<[s]>;
-        wchar_t **<[ptr]>;
-        int <[base]>;
-
 DESCRIPTION
 The function <<wcstoll>> converts the wide string <<*<[s]>>> to
 a <<long long>>. First, it breaks down the string into three parts:
diff --git a/newlib/libc/stdlib/wcstombs.c b/newlib/libc/stdlib/wcstombs.c
index b0123a313..9e1937887 100644
--- a/newlib/libc/stdlib/wcstombs.c
+++ b/newlib/libc/stdlib/wcstombs.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	wcstombs
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	size_t wcstombs(char *restrict <[s]>, const wchar_t *restrict <[pwc]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	size_t wcstombs(<[s]>, <[pwc]>, <[n]>)
-	char *<[s]>;
-	const wchar_t *<[pwc]>;
-	size_t <[n]>;
-
 DESCRIPTION
 When _MB_CAPABLE is not defined, this is a minimal ANSI-conforming 
 implementation of <<wcstombs>>.  In this case,
diff --git a/newlib/libc/stdlib/wcstoul.c b/newlib/libc/stdlib/wcstoul.c
index e87b2ecc9..d649810ea 100644
--- a/newlib/libc/stdlib/wcstoul.c
+++ b/newlib/libc/stdlib/wcstoul.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_wcstoul_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
         unsigned long wcstoul(const wchar_t *__restrict <[s]>,
 			      wchar_t **__restrict <[ptr]>, int <[base]>);
@@ -24,19 +24,6 @@ ANSI_SYNOPSIS
         unsigned long _wcstoul_r(void *<[reent]>, const wchar_t *<[s]>,
 				 wchar_t **<[ptr]>, int <[base]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-        unsigned long wcstoul(<[s]>, <[ptr]>, <[base]>)
-        wchar_t *__restrict <[s]>;
-        wchar_t **__restrict <[ptr]>;
-        int <[base]>;
-
-        unsigned long _wcstoul_r(<[reent]>, <[s]>, <[ptr]>, <[base]>)
-	wchar_t *<[reent]>;
-        wchar_t *<[s]>;
-        wchar_t **<[ptr]>;
-        int <[base]>;
-
 DESCRIPTION
 The function <<wcstoul>> converts the wide string <<*<[s]>>> to
 an <<unsigned long>>. First, it breaks down the string into three parts:
diff --git a/newlib/libc/stdlib/wcstoull.c b/newlib/libc/stdlib/wcstoull.c
index 131a83795..4bb0cd781 100644
--- a/newlib/libc/stdlib/wcstoull.c
+++ b/newlib/libc/stdlib/wcstoull.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	_wcstoull_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
         unsigned long long wcstoull(const wchar_t *__restrict <[s]>,
 				    wchar_t **__restrict <[ptr]>,
@@ -26,19 +26,6 @@ ANSI_SYNOPSIS
         unsigned long long _wcstoull_r(void *<[reent]>, const wchar_t *<[s]>,
 				       wchar_t **<[ptr]>, int <[base]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-        unsigned long long wcstoull(<[s]>, <[ptr]>, <[base]>)
-        wchar_t *__restrict <[s]>;
-        wchar_t **__restrict <[ptr]>;
-        int <[base]>;
-
-        unsigned long long _wcstoull_r(<[reent]>, <[s]>, <[ptr]>, <[base]>)
-	wchar_t *<[reent]>;
-        wchar_t *<[s]>;
-        wchar_t **<[ptr]>;
-        int <[base]>;
-
 DESCRIPTION
 The function <<wcstoull>> converts the wide string <<*<[s]>>> to
 an <<unsigned long long>>. First, it breaks down the string into three parts:
diff --git a/newlib/libc/stdlib/wctomb.c b/newlib/libc/stdlib/wctomb.c
index 13892ffa4..8b267a324 100644
--- a/newlib/libc/stdlib/wctomb.c
+++ b/newlib/libc/stdlib/wctomb.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	wctomb
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	int wctomb(char *<[s]>, wchar_t <[wchar]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	int wctomb(<[s]>, <[wchar]>)
-	char *<[s]>;
-	wchar_t <[wchar]>;
-
 DESCRIPTION
 When _MB_CAPABLE is not defined, this is a minimal ANSI-conforming 
 implementation of <<wctomb>>.  The
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 20/24] complex: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (10 preceding siblings ...)
  2017-11-30 10:34 ` [PATCH 14/24] stdlib: " Yaakov Selkowitz
@ 2017-11-30 10:34 ` Yaakov Selkowitz
  2017-11-30 10:36 ` [PATCH 09/24] reent: " Yaakov Selkowitz
                   ` (12 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:34 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libm/complex/cabs.c   | 2 +-
 newlib/libm/complex/cacos.c  | 2 +-
 newlib/libm/complex/cacosh.c | 2 +-
 newlib/libm/complex/carg.c   | 2 +-
 newlib/libm/complex/casin.c  | 2 +-
 newlib/libm/complex/casinh.c | 2 +-
 newlib/libm/complex/catan.c  | 2 +-
 newlib/libm/complex/catanh.c | 2 +-
 newlib/libm/complex/ccos.c   | 2 +-
 newlib/libm/complex/ccosh.c  | 2 +-
 newlib/libm/complex/cexp.c   | 2 +-
 newlib/libm/complex/cimag.c  | 2 +-
 newlib/libm/complex/clog.c   | 2 +-
 newlib/libm/complex/clog10.c | 2 +-
 newlib/libm/complex/conj.c   | 2 +-
 newlib/libm/complex/cpow.c   | 2 +-
 newlib/libm/complex/cproj.c  | 2 +-
 newlib/libm/complex/creal.c  | 2 +-
 newlib/libm/complex/csin.c   | 2 +-
 newlib/libm/complex/csinh.c  | 2 +-
 newlib/libm/complex/csqrt.c  | 2 +-
 newlib/libm/complex/ctan.c   | 2 +-
 newlib/libm/complex/ctanh.c  | 2 +-
 23 files changed, 23 insertions(+), 23 deletions(-)

diff --git a/newlib/libm/complex/cabs.c b/newlib/libm/complex/cabs.c
index 69091d71a..b97579b43 100644
--- a/newlib/libm/complex/cabs.c
+++ b/newlib/libm/complex/cabs.c
@@ -19,7 +19,7 @@ INDEX
 INDEX
         cabsl
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double cabs(double complex <[z]>);
        float cabsf(float complex <[z]>);
diff --git a/newlib/libm/complex/cacos.c b/newlib/libm/complex/cacos.c
index 86e119842..2b0b82a56 100644
--- a/newlib/libm/complex/cacos.c
+++ b/newlib/libm/complex/cacos.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         cacosf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex cacos(double complex <[z]>);
        float complex cacosf(float complex <[z]>);
diff --git a/newlib/libm/complex/cacosh.c b/newlib/libm/complex/cacosh.c
index 3d42c407d..857b5c3a0 100644
--- a/newlib/libm/complex/cacosh.c
+++ b/newlib/libm/complex/cacosh.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         cacoshf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex cacosh(double complex <[z]>);
        float complex cacoshf(float complex <[z]>);
diff --git a/newlib/libm/complex/carg.c b/newlib/libm/complex/carg.c
index 044742034..f7efb40bd 100644
--- a/newlib/libm/complex/carg.c
+++ b/newlib/libm/complex/carg.c
@@ -17,7 +17,7 @@ INDEX
 INDEX
         cargf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double carg(double complex <[z]>);
        float cargf(float complex <[z]>);
diff --git a/newlib/libm/complex/casin.c b/newlib/libm/complex/casin.c
index 5019fd8cb..ced10531e 100644
--- a/newlib/libm/complex/casin.c
+++ b/newlib/libm/complex/casin.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         casinf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex casin(double complex <[z]>);
        float complex casinf(float complex <[z]>);
diff --git a/newlib/libm/complex/casinh.c b/newlib/libm/complex/casinh.c
index 16238a6e4..b4326b933 100644
--- a/newlib/libm/complex/casinh.c
+++ b/newlib/libm/complex/casinh.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         casinhf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex casinh(double complex <[z]>);
        float complex casinhf(float complex <[z]>);
diff --git a/newlib/libm/complex/catan.c b/newlib/libm/complex/catan.c
index bf9ea01ff..77510ec2f 100644
--- a/newlib/libm/complex/catan.c
+++ b/newlib/libm/complex/catan.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         catanf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex catan(double complex <[z]>);
        float complex catanf(float complex <[z]>);
diff --git a/newlib/libm/complex/catanh.c b/newlib/libm/complex/catanh.c
index 2b9ef9e47..1bb05559c 100644
--- a/newlib/libm/complex/catanh.c
+++ b/newlib/libm/complex/catanh.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         catanhf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex catanh(double complex <[z]>);
        float complex catanhf(float complex <[z]>);
diff --git a/newlib/libm/complex/ccos.c b/newlib/libm/complex/ccos.c
index 1062c079a..516632e56 100644
--- a/newlib/libm/complex/ccos.c
+++ b/newlib/libm/complex/ccos.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         ccosf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex ccos(double complex <[z]>);
        float complex ccosf(float complex <[z]>);
diff --git a/newlib/libm/complex/ccosh.c b/newlib/libm/complex/ccosh.c
index 223a5ed3a..818acc853 100644
--- a/newlib/libm/complex/ccosh.c
+++ b/newlib/libm/complex/ccosh.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         ccoshf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex ccosh(double complex <[z]>);
        float complex ccoshf(float complex <[z]>);
diff --git a/newlib/libm/complex/cexp.c b/newlib/libm/complex/cexp.c
index b9a3fd087..1c1291da2 100644
--- a/newlib/libm/complex/cexp.c
+++ b/newlib/libm/complex/cexp.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         cexpf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex cexp(double complex <[z]>);
        float complex cexpf(float complex <[z]>);
diff --git a/newlib/libm/complex/cimag.c b/newlib/libm/complex/cimag.c
index 959dbc9a4..a006cc72d 100644
--- a/newlib/libm/complex/cimag.c
+++ b/newlib/libm/complex/cimag.c
@@ -19,7 +19,7 @@ INDEX
 INDEX
         cimagl
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double cimag(double complex <[z]>);
        float cimagf(float complex <[z]>);
diff --git a/newlib/libm/complex/clog.c b/newlib/libm/complex/clog.c
index f7ad3d2f7..488f3b8fe 100644
--- a/newlib/libm/complex/clog.c
+++ b/newlib/libm/complex/clog.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         clogf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex clog(double complex <[z]>);
        float complex clogf(float complex <[z]>);
diff --git a/newlib/libm/complex/clog10.c b/newlib/libm/complex/clog10.c
index c857a65d9..f6cf45396 100644
--- a/newlib/libm/complex/clog10.c
+++ b/newlib/libm/complex/clog10.c
@@ -7,7 +7,7 @@ INDEX
 INDEX
         clog10f
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #define _GNU_SOURCE
        #include <complex.h>
        double complex clog10(double complex <[z]>);
diff --git a/newlib/libm/complex/conj.c b/newlib/libm/complex/conj.c
index dc50f085c..9e9d278b2 100644
--- a/newlib/libm/complex/conj.c
+++ b/newlib/libm/complex/conj.c
@@ -17,7 +17,7 @@ INDEX
 INDEX
         conjf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex conj(double complex <[z]>);
        float complex conjf(float complex <[z]>);
diff --git a/newlib/libm/complex/cpow.c b/newlib/libm/complex/cpow.c
index b60f7bea3..e7c419b63 100644
--- a/newlib/libm/complex/cpow.c
+++ b/newlib/libm/complex/cpow.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         cpowf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex cpow(double complex <[x]>, double complex <[y]>);
        float complex cpowf(float complex <[x]>, float complex <[y]>);
diff --git a/newlib/libm/complex/cproj.c b/newlib/libm/complex/cproj.c
index 32a757f92..184c71699 100644
--- a/newlib/libm/complex/cproj.c
+++ b/newlib/libm/complex/cproj.c
@@ -38,7 +38,7 @@ INDEX
 INDEX
         cprojf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex cproj(double complex <[z]>);
        float complex cprojf(float complex <[z]>);
diff --git a/newlib/libm/complex/creal.c b/newlib/libm/complex/creal.c
index 1652a5f8e..944afdd7f 100644
--- a/newlib/libm/complex/creal.c
+++ b/newlib/libm/complex/creal.c
@@ -19,7 +19,7 @@ INDEX
 INDEX
         creall
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double creal(double complex <[z]>);
        float crealf(float complex <[z]>);
diff --git a/newlib/libm/complex/csin.c b/newlib/libm/complex/csin.c
index cf6dae068..24702ed70 100644
--- a/newlib/libm/complex/csin.c
+++ b/newlib/libm/complex/csin.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         csinf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex csin(double complex <[z]>);
        float complex csinf(float complex <[z]>);
diff --git a/newlib/libm/complex/csinh.c b/newlib/libm/complex/csinh.c
index f11716262..b3f24eec8 100644
--- a/newlib/libm/complex/csinh.c
+++ b/newlib/libm/complex/csinh.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         csinhf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex csinh(double complex <[z]>);
        float complex csinhf(float complex <[z]>);
diff --git a/newlib/libm/complex/csqrt.c b/newlib/libm/complex/csqrt.c
index b144b7c3a..aecdcb40a 100644
--- a/newlib/libm/complex/csqrt.c
+++ b/newlib/libm/complex/csqrt.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         csqrtf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex csqrt(double complex <[z]>);
        float complex csqrtf(float complex <[z]>);
diff --git a/newlib/libm/complex/ctan.c b/newlib/libm/complex/ctan.c
index fb0db3497..0d6074baf 100644
--- a/newlib/libm/complex/ctan.c
+++ b/newlib/libm/complex/ctan.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         ctanf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex ctan(double complex <[z]>);
        float complex ctanf(float complex <[z]>);
diff --git a/newlib/libm/complex/ctanh.c b/newlib/libm/complex/ctanh.c
index db27e5b47..a86e97138 100644
--- a/newlib/libm/complex/ctanh.c
+++ b/newlib/libm/complex/ctanh.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
         ctanhf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <complex.h>
        double complex ctanh(double complex <[z]>);
        float complex ctanhf(float complex <[z]>);
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 09/24] reent: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (11 preceding siblings ...)
  2017-11-30 10:34 ` [PATCH 20/24] complex: " Yaakov Selkowitz
@ 2017-11-30 10:36 ` Yaakov Selkowitz
  2017-11-30 10:36 ` [PATCH 04/24] microblaze: " Yaakov Selkowitz
                   ` (11 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:36 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/reent/closer.c        |  8 +-------
 newlib/libc/reent/execr.c         | 25 +++----------------------
 newlib/libc/reent/fcntlr.c        | 10 +---------
 newlib/libc/reent/fstat64r.c      |  9 +--------
 newlib/libc/reent/fstatr.c        |  9 +--------
 newlib/libc/reent/gettimeofdayr.c | 10 +---------
 newlib/libc/reent/isattyr.c       |  8 +-------
 newlib/libc/reent/linkr.c         |  9 +--------
 newlib/libc/reent/lseek64r.c      | 10 +---------
 newlib/libc/reent/lseekr.c        | 10 +---------
 newlib/libc/reent/mkdirr.c        |  9 +--------
 newlib/libc/reent/open64r.c       | 10 +---------
 newlib/libc/reent/openr.c         | 10 +---------
 newlib/libc/reent/readr.c         | 10 +---------
 newlib/libc/reent/renamer.c       |  9 +--------
 newlib/libc/reent/sbrkr.c         |  8 +-------
 newlib/libc/reent/signalr.c       | 16 ++--------------
 newlib/libc/reent/stat64r.c       |  9 +--------
 newlib/libc/reent/statr.c         |  9 +--------
 newlib/libc/reent/timesr.c        |  9 +--------
 newlib/libc/reent/unlinkr.c       |  8 +-------
 newlib/libc/reent/writer.c        | 10 +---------
 22 files changed, 25 insertions(+), 200 deletions(-)

diff --git a/newlib/libc/reent/closer.c b/newlib/libc/reent/closer.c
index aeacebd6c..deb34b002 100644
--- a/newlib/libc/reent/closer.c
+++ b/newlib/libc/reent/closer.c
@@ -26,16 +26,10 @@ FUNCTION
 INDEX
 	_close_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _close_r(struct _reent *<[ptr]>, int <[fd]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _close_r(<[ptr]>, <[fd]>)
-	struct _reent *<[ptr]>;
-	int <[fd]>;
-
 DESCRIPTION
 	This is a reentrant version of <<close>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/execr.c b/newlib/libc/reent/execr.c
index d8026703a..559ca030a 100644
--- a/newlib/libc/reent/execr.c
+++ b/newlib/libc/reent/execr.c
@@ -33,19 +33,11 @@ FUNCTION
 INDEX
 	_execve_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _execve_r(struct _reent *<[ptr]>, const char *<[name]>,
                       char *const <[argv]>[], char *const <[env]>[]);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _execve_r(<[ptr]>, <[name]>, <[argv]>, <[env]>)
-	struct _reent *<[ptr]>;
-        char *<[name]>;
-        char *<[argv]>[];
-        char *<[env]>[];
-
 DESCRIPTION
 	This is a reentrant version of <<execve>>.  It
 	takes a pointer to the global data block, which holds
@@ -76,15 +68,10 @@ FUNCTION
 INDEX
 	_fork_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _fork_r(struct _reent *<[ptr]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _fork_r(<[ptr]>)
-	struct _reent *<[ptr]>;
-
 DESCRIPTION
 	This is a reentrant version of <<fork>>.  It
 	takes a pointer to the global data block, which holds
@@ -115,16 +102,10 @@ FUNCTION
 INDEX
 	_wait_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _wait_r(struct _reent *<[ptr]>, int *<[status]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _wait_r(<[ptr]>, <[status]>)
-	struct _reent *<[ptr]>;
-	int *<[status]>;
-
 DESCRIPTION
 	This is a reentrant version of <<wait>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/fcntlr.c b/newlib/libc/reent/fcntlr.c
index d632d183f..328b9de13 100644
--- a/newlib/libc/reent/fcntlr.c
+++ b/newlib/libc/reent/fcntlr.c
@@ -28,19 +28,11 @@ FUNCTION
 INDEX
 	_fcntl_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _fcntl_r(struct _reent *<[ptr]>,
 		     int <[fd]>, int <[cmd]>, <[arg]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _fcntl_r(<[ptr]>, <[fd]>, <[cmd]>, <[arg]>)
-	struct _reent *<[ptr]>;
-	int <[fd]>;
-	int <[cmd]>;
-	int <[arg]>;
-
 DESCRIPTION
 	This is a reentrant version of <<fcntl>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/fstat64r.c b/newlib/libc/reent/fstat64r.c
index 1c4589713..d9fa8b71f 100644
--- a/newlib/libc/reent/fstat64r.c
+++ b/newlib/libc/reent/fstat64r.c
@@ -34,18 +34,11 @@ FUNCTION
 INDEX
 	_fstat64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _fstat64_r(struct _reent *<[ptr]>,
 		       int <[fd]>, struct stat64 *<[pstat]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _fstat64_r(<[ptr]>, <[fd]>, <[pstat]>)
-	struct _reent *<[ptr]>;
-	int <[fd]>;
-	struct stat *<[pstat]>;
-
 DESCRIPTION
 	This is a reentrant version of <<fstat64>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/fstatr.c b/newlib/libc/reent/fstatr.c
index 7f5d559da..ec906c98d 100644
--- a/newlib/libc/reent/fstatr.c
+++ b/newlib/libc/reent/fstatr.c
@@ -32,18 +32,11 @@ FUNCTION
 INDEX
 	_fstat_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _fstat_r(struct _reent *<[ptr]>,
 		     int <[fd]>, struct stat *<[pstat]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _fstat_r(<[ptr]>, <[fd]>, <[pstat]>)
-	struct _reent *<[ptr]>;
-	int <[fd]>;
-	struct stat *<[pstat]>;
-
 DESCRIPTION
 	This is a reentrant version of <<fstat>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/gettimeofdayr.c b/newlib/libc/reent/gettimeofdayr.c
index f5a49f73c..007dff8da 100644
--- a/newlib/libc/reent/gettimeofdayr.c
+++ b/newlib/libc/reent/gettimeofdayr.c
@@ -35,21 +35,13 @@ FUNCTION
 INDEX
 	_gettimeofday_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	#include <time.h>
 	int _gettimeofday_r(struct _reent *<[ptr]>,
 		struct timeval *<[ptimeval]>,
 		void *<[ptimezone]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	#include <time.h>
-	int _gettimeofday_r(<[ptr]>, <[ptimeval]>, <[ptimezone]>)
-	struct _reent *<[ptr]>;
-	struct timeval *<[ptimeval]>;
-	void *<[ptimezone]>;
-
 DESCRIPTION
 	This is a reentrant version of <<gettimeofday>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/isattyr.c b/newlib/libc/reent/isattyr.c
index 05d47d323..f21bf25b2 100644
--- a/newlib/libc/reent/isattyr.c
+++ b/newlib/libc/reent/isattyr.c
@@ -30,17 +30,11 @@ FUNCTION
 INDEX
 	_isatty_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _isatty_r(struct _reent *<[ptr]>,
 		     int <[fd]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _isatty_r(<[ptr]>, <[fd]>)
-	struct _reent *<[ptr]>;
-	int <[fd]>;
-
 DESCRIPTION
 	This is a reentrant version of <<isatty>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/linkr.c b/newlib/libc/reent/linkr.c
index ded636af7..8cfdf2f06 100644
--- a/newlib/libc/reent/linkr.c
+++ b/newlib/libc/reent/linkr.c
@@ -31,18 +31,11 @@ FUNCTION
 INDEX
 	_link_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _link_r(struct _reent *<[ptr]>,
 		    const char *<[old]>, const char *<[new]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _link_r(<[ptr]>, <[old]>, <[new]>)
-	struct _reent *<[ptr]>;
-	char *<[old]>;
-	char *<[new]>;
-
 DESCRIPTION
 	This is a reentrant version of <<link>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/lseek64r.c b/newlib/libc/reent/lseek64r.c
index 0207a1220..1241a27e4 100644
--- a/newlib/libc/reent/lseek64r.c
+++ b/newlib/libc/reent/lseek64r.c
@@ -28,19 +28,11 @@ FUNCTION
 INDEX
 	_lseek64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	off64_t _lseek64_r(struct _reent *<[ptr]>,
 		           int <[fd]>, off64_t <[pos]>, int <[whence]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	off64_t _lseek64_r(<[ptr]>, <[fd]>, <[pos]>, <[whence]>)
-	struct _reent *<[ptr]>;
-	int <[fd]>;
-	off64_t <[pos]>;
-	int <[whence]>;
-
 DESCRIPTION
 	This is a reentrant version of <<lseek64>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/lseekr.c b/newlib/libc/reent/lseekr.c
index fa00695a8..cc73ab467 100644
--- a/newlib/libc/reent/lseekr.c
+++ b/newlib/libc/reent/lseekr.c
@@ -26,19 +26,11 @@ FUNCTION
 INDEX
 	_lseek_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	off_t _lseek_r(struct _reent *<[ptr]>,
 		       int <[fd]>, off_t <[pos]>, int <[whence]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	off_t _lseek_r(<[ptr]>, <[fd]>, <[pos]>, <[whence]>)
-	struct _reent *<[ptr]>;
-	int <[fd]>;
-	off_t <[pos]>;
-	int <[whence]>;
-
 DESCRIPTION
 	This is a reentrant version of <<lseek>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/mkdirr.c b/newlib/libc/reent/mkdirr.c
index fe36de11a..eee999e19 100644
--- a/newlib/libc/reent/mkdirr.c
+++ b/newlib/libc/reent/mkdirr.c
@@ -26,18 +26,11 @@ FUNCTION
 INDEX
 	_mkdir_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _mkdir_r(struct _reent *<[ptr]>,
 		     const char *<[path]>, int <[mode]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _mkdir_r(<[ptr]>, <[path]>, <[mode]>)
-	struct _reent *<[ptr]>;
-	char *<[path]>;
-	int <[mode]>;
-
 DESCRIPTION
 	This is a reentrant version of <<mkdir>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/open64r.c b/newlib/libc/reent/open64r.c
index 30310d301..6b39fa1fd 100644
--- a/newlib/libc/reent/open64r.c
+++ b/newlib/libc/reent/open64r.c
@@ -29,19 +29,11 @@ FUNCTION
 INDEX
 	_open64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _open64_r(struct _reent *<[ptr]>,
   		      const char *<[file]>, int <[flags]>, int <[mode]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _open64_r(<[ptr]>, <[file]>, <[flags]>, <[mode]>)
-	struct _reent *<[ptr]>;
-	char *<[file]>;
-	int <[flags]>;
-	int <[mode]>;
-
 DESCRIPTION
 	This is a reentrant version of <<open64>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/openr.c b/newlib/libc/reent/openr.c
index 35138c6de..06b203b81 100644
--- a/newlib/libc/reent/openr.c
+++ b/newlib/libc/reent/openr.c
@@ -27,19 +27,11 @@ FUNCTION
 INDEX
 	_open_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _open_r(struct _reent *<[ptr]>,
 		    const char *<[file]>, int <[flags]>, int <[mode]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _open_r(<[ptr]>, <[file]>, <[flags]>, <[mode]>)
-	struct _reent *<[ptr]>;
-	char *<[file]>;
-	int <[flags]>;
-	int <[mode]>;
-
 DESCRIPTION
 	This is a reentrant version of <<open>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/readr.c b/newlib/libc/reent/readr.c
index 38c1d9e39..65e0514cf 100644
--- a/newlib/libc/reent/readr.c
+++ b/newlib/libc/reent/readr.c
@@ -26,19 +26,11 @@ FUNCTION
 INDEX
 	_read_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	_ssize_t _read_r(struct _reent *<[ptr]>,
 		         int <[fd]>, void *<[buf]>, size_t <[cnt]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	_ssize_t _read_r(<[ptr]>, <[fd]>, <[buf]>, <[cnt]>)
-	struct _reent *<[ptr]>;
-	int <[fd]>;
-	char *<[buf]>;
-	size_t <[cnt]>;
-
 DESCRIPTION
 	This is a reentrant version of <<read>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/renamer.c b/newlib/libc/reent/renamer.c
index d3951a28d..9b42dc380 100644
--- a/newlib/libc/reent/renamer.c
+++ b/newlib/libc/reent/renamer.c
@@ -28,18 +28,11 @@ FUNCTION
 INDEX
 	_rename_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _rename_r(struct _reent *<[ptr]>,
 		const char *<[old]>, const char *<[new]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _rename_r(<[ptr]>, <[old]>, <[new]>)
-	struct _reent *<[ptr]>;
-	char *<[old]>;
-	char *<[new]>;
-
 DESCRIPTION
 	This is a reentrant version of <<rename>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/sbrkr.c b/newlib/libc/reent/sbrkr.c
index 44e42b57f..4217174b3 100644
--- a/newlib/libc/reent/sbrkr.c
+++ b/newlib/libc/reent/sbrkr.c
@@ -30,16 +30,10 @@ FUNCTION
 INDEX
 	_sbrk_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	void *_sbrk_r(struct _reent *<[ptr]>, ptrdiff_t <[incr]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	void *_sbrk_r(<[ptr]>, <[incr]>)
-	struct _reent *<[ptr]>;
-	ptrdiff_t <[incr]>;
-
 DESCRIPTION
 	This is a reentrant version of <<sbrk>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/signalr.c b/newlib/libc/reent/signalr.c
index 161d53091..95dd49ed3 100644
--- a/newlib/libc/reent/signalr.c
+++ b/newlib/libc/reent/signalr.c
@@ -32,17 +32,10 @@ FUNCTION
 INDEX
 	_kill_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _kill_r(struct _reent *<[ptr]>, int <[pid]>, int <[sig]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _kill_r(<[ptr]>, <[pid]>, <[sig]>)
-	struct _reent *<[ptr]>;
-	int <[pid]>;
-	int <[sig]>;
-
 DESCRIPTION
 	This is a reentrant version of <<kill>>.  It
 	takes a pointer to the global data block, which holds
@@ -71,15 +64,10 @@ FUNCTION
 INDEX
 	_getpid_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _getpid_r(struct _reent *<[ptr]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _getpid_r(<[ptr]>)
-	struct _reent *<[ptr]>;
-
 DESCRIPTION
 	This is a reentrant version of <<getpid>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/stat64r.c b/newlib/libc/reent/stat64r.c
index 695b7f813..1f175e0a9 100644
--- a/newlib/libc/reent/stat64r.c
+++ b/newlib/libc/reent/stat64r.c
@@ -33,18 +33,11 @@ FUNCTION
 INDEX
 	_stat64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _stat64_r(struct _reent *<[ptr]>,
 		    const char *<[file]>, struct stat64 *<[pstat]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _stat64_r(<[ptr]>, <[file]>, <[pstat]>)
-	struct _reent *<[ptr]>;
-	char *<[file]>;
-	struct stat64 *<[pstat]>;
-
 DESCRIPTION
 	This is a reentrant version of <<stat64>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/statr.c b/newlib/libc/reent/statr.c
index 9ad2bb209..3500c88b1 100644
--- a/newlib/libc/reent/statr.c
+++ b/newlib/libc/reent/statr.c
@@ -33,18 +33,11 @@ FUNCTION
 INDEX
 	_stat_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _stat_r(struct _reent *<[ptr]>,
 		    const char *<[file]>, struct stat *<[pstat]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _stat_r(<[ptr]>, <[file]>, <[pstat]>)
-	struct _reent *<[ptr]>;
-	char *<[file]>;
-	struct stat *<[pstat]>;
-
 DESCRIPTION
 	This is a reentrant version of <<stat>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/timesr.c b/newlib/libc/reent/timesr.c
index 1881724ba..efb98b61d 100644
--- a/newlib/libc/reent/timesr.c
+++ b/newlib/libc/reent/timesr.c
@@ -32,18 +32,11 @@ FUNCTION
 INDEX
 	_times_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	#include <sys/times.h>
 	clock_t _times_r(struct _reent *<[ptr]>, struct tms *<[ptms]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	#include <sys/times.h>
-	clock_t _times_r(<[ptr]>, <[ptms]>)
-	struct _reent *<[ptr]>;
-	struct tms *<[ptms]>;
-
 DESCRIPTION
 	This is a reentrant version of <<times>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/unlinkr.c b/newlib/libc/reent/unlinkr.c
index 95b815f1b..53b8f11e3 100644
--- a/newlib/libc/reent/unlinkr.c
+++ b/newlib/libc/reent/unlinkr.c
@@ -27,16 +27,10 @@ FUNCTION
 INDEX
 	_unlink_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	int _unlink_r(struct _reent *<[ptr]>, const char *<[file]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	int _unlink_r(<[ptr]>, <[file]>)
-	struct _reent *<[ptr]>;
-	char *<[file]>;
-
 DESCRIPTION
 	This is a reentrant version of <<unlink>>.  It
 	takes a pointer to the global data block, which holds
diff --git a/newlib/libc/reent/writer.c b/newlib/libc/reent/writer.c
index 128f7f7ac..4190a9059 100644
--- a/newlib/libc/reent/writer.c
+++ b/newlib/libc/reent/writer.c
@@ -26,19 +26,11 @@ FUNCTION
 INDEX
 	_write_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <reent.h>
 	_ssize_t _write_r(struct _reent *<[ptr]>,
 		          int <[fd]>, const void *<[buf]>, size_t <[cnt]>);
 
-TRAD_SYNOPSIS
-	#include <reent.h>
-	_ssize_t _write_r(<[ptr]>, <[fd]>, <[buf]>, <[cnt]>)
-	struct _reent *<[ptr]>;
-	int <[fd]>;
-	char *<[buf]>;
-	size_t <[cnt]>;
-
 DESCRIPTION
 	This is a reentrant version of <<write>>.  It
 	takes a pointer to the global data block, which holds
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 04/24] microblaze: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (12 preceding siblings ...)
  2017-11-30 10:36 ` [PATCH 09/24] reent: " Yaakov Selkowitz
@ 2017-11-30 10:36 ` Yaakov Selkowitz
  2017-11-30 10:37 ` [PATCH 08/24] posix: " Yaakov Selkowitz
                   ` (10 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:36 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/machine/microblaze/abort.c  | 6 +-----
 newlib/libc/machine/microblaze/strcmp.c | 8 +-------
 newlib/libc/machine/microblaze/strcpy.c | 8 +-------
 newlib/libc/machine/microblaze/strlen.c | 7 +------
 4 files changed, 4 insertions(+), 25 deletions(-)

diff --git a/newlib/libc/machine/microblaze/abort.c b/newlib/libc/machine/microblaze/abort.c
index b2c5a00b2..82daebe43 100644
--- a/newlib/libc/machine/microblaze/abort.c
+++ b/newlib/libc/machine/microblaze/abort.c
@@ -15,14 +15,10 @@ FUNCTION
 INDEX
 	abort
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	void abort(void);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	void abort();
-
 DESCRIPTION
 Use <<abort>> to signal that your program has detected a condition it
 cannot deal with.  Normally, <<abort>> ends your program's execution.
diff --git a/newlib/libc/machine/microblaze/strcmp.c b/newlib/libc/machine/microblaze/strcmp.c
index 2f0337412..fc7dc2143 100644
--- a/newlib/libc/machine/microblaze/strcmp.c
+++ b/newlib/libc/machine/microblaze/strcmp.c
@@ -34,16 +34,10 @@ FUNCTION
 INDEX
 	strcmp
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	int strcmp(const char *<[a]>, const char *<[b]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	int strcmp(<[a]>, <[b]>)
-	char *<[a]>;
-	char *<[b]>;
-
 DESCRIPTION
 	<<strcmp>> compares the string at <[a]> to
 	the string at <[b]>.
diff --git a/newlib/libc/machine/microblaze/strcpy.c b/newlib/libc/machine/microblaze/strcpy.c
index 0819ee511..44ba382c7 100644
--- a/newlib/libc/machine/microblaze/strcpy.c
+++ b/newlib/libc/machine/microblaze/strcpy.c
@@ -34,16 +34,10 @@ FUNCTION
 INDEX
 	strcpy
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strcpy(char *restrict <[dst]>, const char *restrict <[src]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strcpy(<[dst]>, <[src]>)
-	char *<[dst]>;
-	char *<[src]>;
-
 DESCRIPTION
 	<<strcpy>> copies the string pointed to by <[src]>
 	(including the terminating null character) to the array
diff --git a/newlib/libc/machine/microblaze/strlen.c b/newlib/libc/machine/microblaze/strlen.c
index 51387cd9c..ddd9e6a82 100644
--- a/newlib/libc/machine/microblaze/strlen.c
+++ b/newlib/libc/machine/microblaze/strlen.c
@@ -34,15 +34,10 @@ FUNCTION
 INDEX
 	strlen
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	size_t strlen(const char *<[str]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	size_t strlen(<[str]>)
-	char *<[src]>;
-
 DESCRIPTION
 	The <<strlen>> function works out the length of the string
 	starting at <<*<[str]>>> by counting chararacters until it
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 08/24] posix: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (13 preceding siblings ...)
  2017-11-30 10:36 ` [PATCH 04/24] microblaze: " Yaakov Selkowitz
@ 2017-11-30 10:37 ` Yaakov Selkowitz
  2017-11-30 10:37 ` [PATCH 07/24] misc: " Yaakov Selkowitz
                   ` (9 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:37 UTC (permalink / raw)
  To: newlib

---
 newlib/libc/posix/popen.c       | 2 +-
 newlib/libc/posix/posix_spawn.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/newlib/libc/posix/popen.c b/newlib/libc/posix/popen.c
index faf72b6e3..f9abfac3f 100644
--- a/newlib/libc/posix/popen.c
+++ b/newlib/libc/posix/popen.c
@@ -41,7 +41,7 @@ INDEX
 INDEX
 	pclose
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	FILE *popen(const char *<[s]>, const char *<[mode]>);
 
diff --git a/newlib/libc/posix/posix_spawn.c b/newlib/libc/posix/posix_spawn.c
index e5655e29a..61d36304d 100644
--- a/newlib/libc/posix/posix_spawn.c
+++ b/newlib/libc/posix/posix_spawn.c
@@ -33,7 +33,7 @@ INDEX
 INDEX
 	posix_spawnp
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <spawn.h>
 
 	int posix_spawn(pid_t *<[pid]>, const char *<[path]>,
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 17/24] time: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (16 preceding siblings ...)
  2017-11-30 10:37 ` [PATCH 05/24] nds32: " Yaakov Selkowitz
@ 2017-11-30 10:37 ` Yaakov Selkowitz
  2017-11-30 10:37 ` [PATCH 10/24] search: " Yaakov Selkowitz
                   ` (6 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:37 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 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(-)

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 <time.h>
 	char *asctime(const struct tm *<[clock]>);
 	char *_asctime_r(const struct tm *<[clock]>, char *<[buf]>);
 
-TRAD_SYNOPSIS
-	#include <time.h>
-	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 <time.h>
 	clock_t clock(void);
 
-TRAD_SYNOPSIS
-	#include <time.h>
-	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 <time.h>
 	char *ctime(const time_t *<[clock]>);
 	char *ctime_r(const time_t *<[clock]>, char *<[buf]>);
 
-TRAD_SYNOPSIS
-	#include <time.h>
-	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 <<localtime>>)
 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 <time.h>
 	double difftime(time_t <[tim1]>, time_t <[tim2]>);
 
-TRAD_SYNOPSIS
-	#include <time.h>
-	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 <time.h>
 	struct tm *gmtime(const time_t *<[clock]>);
 	struct tm *gmtime_r(const time_t *<[clock]>, struct tm *<[res]>);
 
-TRAD_SYNOPSIS
-	#include <time.h>
-	struct tm *gmtime(<[clock]>)
-	const time_t *<[clock]>;
-	struct tm *gmtime_r(<[clock]>, <[res]>)
-	const time_t *<[clock]>;
-	struct tm *<[res]>;
-
 DESCRIPTION
 <<gmtime>> 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 <time.h>
 	struct tm *localtime(time_t *<[clock]>);
 	struct tm *localtime_r(time_t *<[clock]>, struct tm *<[res]>);
 
-TRAD_SYNOPSIS
-	#include <time.h>
-	struct tm *localtime(<[clock]>)
-	time_t *<[clock]>;
-	struct tm *localtime(<[clock]>, <[res]>)
-	time_t *<[clock]>;
-	struct tm *<[res]>;
-
 DESCRIPTION
 <<localtime>> 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.h>
 	time_t mktime(struct tm *<[timp]>);
 
-TRAD_SYNOPSIS
-	#include <time.h>
-	time_t mktime(<[timp]>)
-	struct tm *<[timp]>;
-
 DESCRIPTION
 <<mktime>> 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 <time.h>
 	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 <time.h>
-	size_t strftime(<[s]>, <[maxsize]>, <[format]>, <[timp]>)
-	char *<[s]>;
-	size_t <[maxsize]>;
-	char *<[format]>;
-	struct tm *<[timp]>;
-
 DESCRIPTION
 <<strftime>> converts a <<struct tm>> 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.h>
 	time_t time(time_t *<[t]>);
 
-TRAD_SYNOPSIS
-	#include <time.h>
-	time_t time(<[t]>)
-	time_t *<[t]>;
-
 DESCRIPTION
 <<time>> looks up the best available representation of the current
 time and returns it, encoded as a <<time_t>>.  It stores the same
diff --git a/newlib/libc/time/tzlock.c b/newlib/libc/time/tzlock.c
index 5ac42d7f4..24354ad0b 100644
--- a/newlib/libc/time/tzlock.c
+++ b/newlib/libc/time/tzlock.c
@@ -7,15 +7,11 @@ INDEX
 INDEX
 	__tz_unlock
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include "local.h"
 	void __tz_lock (void);
 	void __tz_unlock (void);
 
-TRAD_SYNOPSIS
-	void __tz_lock();
-	void __tz_unlock();
-
 DESCRIPTION
 The <<tzset>> facility functions call these functions when they need to
 ensure the values of global variables.  The version of these routines
diff --git a/newlib/libc/time/tzset.c b/newlib/libc/time/tzset.c
index e0750e1fd..629b8f240 100644
--- a/newlib/libc/time/tzset.c
+++ b/newlib/libc/time/tzset.c
@@ -7,17 +7,11 @@ INDEX
 INDEX
 	_tzset_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <time.h>
 	void tzset(void);
 	void _tzset_r (struct _reent *<[reent_ptr]>);
 
-TRAD_SYNOPSIS
-	#include <time.h>
-	void tzset();
-	void _tzset_r (<[reent_ptr]>);
-        struct _reent *reent_ptr;
-
 DESCRIPTION
 <<tzset>> examines the TZ environment variable and sets up the three
 external variables: <<_timezone>>, <<_daylight>>, and <<tzname>>.  The
diff --git a/newlib/libc/time/wcsftime.c b/newlib/libc/time/wcsftime.c
index f77b3d07f..5dde21300 100644
--- a/newlib/libc/time/wcsftime.c
+++ b/newlib/libc/time/wcsftime.c
@@ -13,7 +13,7 @@ FUNCTION
 INDEX
 	wcsftime
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <time.h>
 	#include <wchar.h>
 	size_t wcsftime(wchar_t *<[s]>, size_t <[maxsize]>,
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 10/24] search: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (17 preceding siblings ...)
  2017-11-30 10:37 ` [PATCH 17/24] time: " Yaakov Selkowitz
@ 2017-11-30 10:37 ` Yaakov Selkowitz
  2017-11-30 10:39 ` [PATCH 22/24] math: " Yaakov Selkowitz
                   ` (5 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:37 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/search/bsearch.c | 10 +---------
 newlib/libc/search/qsort.c   | 10 +---------
 newlib/libc/search/qsort_r.c | 11 +----------
 3 files changed, 3 insertions(+), 28 deletions(-)

diff --git a/newlib/libc/search/bsearch.c b/newlib/libc/search/bsearch.c
index d874e79ae..579633c12 100644
--- a/newlib/libc/search/bsearch.c
+++ b/newlib/libc/search/bsearch.c
@@ -20,20 +20,12 @@ FUNCTION
 INDEX
 	bsearch
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	void *bsearch(const void *<[key]>, const void *<[base]>,
 		size_t <[nmemb]>, size_t <[size]>,
 		int (*<[compar]>)(const void *, const void *));
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	char *bsearch(<[key]>, <[base]>, <[nmemb]>, <[size]>, <[compar]>)
-	char *<[key]>;
-	char *<[base]>;
-	size_t <[nmemb]>, <[size]>;
-	int (*<[compar]>)();
-
 DESCRIPTION
 <<bsearch>> searches an array beginning at <[base]> for any element
 that matches <[key]>, using binary search.  <[nmemb]> is the element
diff --git a/newlib/libc/search/qsort.c b/newlib/libc/search/qsort.c
index bf6285f5e..9a8e7fabe 100644
--- a/newlib/libc/search/qsort.c
+++ b/newlib/libc/search/qsort.c
@@ -5,19 +5,11 @@ FUNCTION
 INDEX
 	qsort
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	void qsort(void *<[base]>, size_t <[nmemb]>, size_t <[size]>,
 		   int (*<[compar]>)(const void *, const void *) );
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	qsort(<[base]>, <[nmemb]>, <[size]>, <[compar]> )
-	char *<[base]>;
-	size_t <[nmemb]>;
-	size_t <[size]>;
-	int (*<[compar]>)();
-
 DESCRIPTION
 <<qsort>> sorts an array (beginning at <[base]>) of <[nmemb]> objects.
 <[size]> describes the size of each element of the array.
diff --git a/newlib/libc/search/qsort_r.c b/newlib/libc/search/qsort_r.c
index 9073061f0..c4b6fb7e2 100644
--- a/newlib/libc/search/qsort_r.c
+++ b/newlib/libc/search/qsort_r.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	qsort_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#define _BSD_SOURCE
 	#include <stdlib.h>
 	void qsort_r(void *<[base]>, size_t <[nmemb]>, size_t <[size]>,
@@ -18,15 +18,6 @@ ANSI_SYNOPSIS
 		     int (*<[compar]>)(const void *, const void *, void *),
 		     void *<[thunk]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	qsort_r(<[base]>, <[nmemb]>, <[size]>, <[compar]>, <[thumb]>)
-	char *<[base]>;
-	size_t <[nmemb]>;
-	size_t <[size]>;
-	int (*<[compar]>)();
-	char *<[thumb]>;
-
 DESCRIPTION
 <<qsort_r>> sorts an array (beginning at <[base]>) of <[nmemb]> objects.
 <[size]> describes the size of each element of the array.
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 07/24] misc: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (14 preceding siblings ...)
  2017-11-30 10:37 ` [PATCH 08/24] posix: " Yaakov Selkowitz
@ 2017-11-30 10:37 ` Yaakov Selkowitz
  2017-11-30 10:37 ` [PATCH 05/24] nds32: " Yaakov Selkowitz
                   ` (8 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:37 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/misc/ffs.c    | 6 +-----
 newlib/libc/misc/lock.c   | 2 +-
 newlib/libc/misc/unctrl.c | 7 +------
 3 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/newlib/libc/misc/ffs.c b/newlib/libc/misc/ffs.c
index ba5700920..068f25481 100644
--- a/newlib/libc/misc/ffs.c
+++ b/newlib/libc/misc/ffs.c
@@ -5,14 +5,10 @@ FUNCTION
 INDEX
 	ffs
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <strings.h>
 	int ffs(int <[word]>);
 
-TRAD_SYNOPSIS
-	#include <strings.h>
-	int ffs(<[word]>);
-
 DESCRIPTION
 
 <<ffs>> returns the first bit set in a word.
diff --git a/newlib/libc/misc/lock.c b/newlib/libc/misc/lock.c
index a76317668..545511e78 100644
--- a/newlib/libc/misc/lock.c
+++ b/newlib/libc/misc/lock.c
@@ -42,7 +42,7 @@ INDEX
 INDEX
 	__retarget_lock_release_recursive
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <lock.h>
 	struct __lock __lock___sinit_recursive_mutex;
 	struct __lock __lock___sfp_recursive_mutex;
diff --git a/newlib/libc/misc/unctrl.c b/newlib/libc/misc/unctrl.c
index fa0b90ff1..e2cdb3861 100644
--- a/newlib/libc/misc/unctrl.c
+++ b/newlib/libc/misc/unctrl.c
@@ -7,16 +7,11 @@ INDEX
 INDEX
 	unctrllen
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <unctrl.h>
 	char *unctrl(int <[c]>);
 	int unctrllen(int <[c]>);
 
-TRAD_SYNOPSIS
-	#include <unctrl.h>
-	char *unctrl(<[c]>);
-	int unctrllen(<[c]>);
-
 DESCRIPTION
 <<unctrl>> is a macro which returns the printable representation of <[c]>
 as a string.
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 05/24] nds32: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (15 preceding siblings ...)
  2017-11-30 10:37 ` [PATCH 07/24] misc: " Yaakov Selkowitz
@ 2017-11-30 10:37 ` Yaakov Selkowitz
  2017-11-30 10:37 ` [PATCH 17/24] time: " Yaakov Selkowitz
                   ` (7 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:37 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/machine/nds32/abort.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/newlib/libc/machine/nds32/abort.c b/newlib/libc/machine/nds32/abort.c
index 724562a84..abceb4b8b 100644
--- a/newlib/libc/machine/nds32/abort.c
+++ b/newlib/libc/machine/nds32/abort.c
@@ -5,14 +5,10 @@ FUNCTION
 INDEX
 	abort
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	void abort(void);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	void abort();
-
 DESCRIPTION
 Use <<abort>> to signal that your program has detected a condition it
 cannot deal with.  Normally, <<abort>> ends your program's execution.
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 06/24] powerpc: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (19 preceding siblings ...)
  2017-11-30 10:39 ` [PATCH 22/24] math: " Yaakov Selkowitz
@ 2017-11-30 10:39 ` Yaakov Selkowitz
  2017-11-30 10:41 ` [PATCH 18/24] unix: " Yaakov Selkowitz
                   ` (3 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:39 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/machine/powerpc/atosfix16.c   | 25 +---------------
 newlib/libc/machine/powerpc/atoufix16.c   | 25 +---------------
 newlib/libc/machine/powerpc/strtosfix16.c | 31 +------------------
 newlib/libc/machine/powerpc/strtoufix16.c | 31 +------------------
 newlib/libc/machine/powerpc/vec_calloc.c  | 14 +--------
 newlib/libc/machine/powerpc/vec_malloc.c  | 28 +-----------------
 newlib/libc/machine/powerpc/vfprintf.c    | 49 +------------------------------
 newlib/libc/machine/powerpc/vfscanf.c     | 36 +----------------------
 8 files changed, 8 insertions(+), 231 deletions(-)

diff --git a/newlib/libc/machine/powerpc/atosfix16.c b/newlib/libc/machine/powerpc/atosfix16.c
index 501c0f1cb..30379c579 100644
--- a/newlib/libc/machine/powerpc/atosfix16.c
+++ b/newlib/libc/machine/powerpc/atosfix16.c
@@ -15,7 +15,7 @@ INDEX
 INDEX
 	_atosfix64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
         __int16_t atosfix16(const char *<[s]>);
 	__int32_t atosfix32(const char *<[s]>);
@@ -25,29 +25,6 @@ ANSI_SYNOPSIS
 	__int32_t _atosfix32_r(struct __reent *, const char *<[s]>);
 	__int64_t _atosfix32_r(struct __reent *, const char *<[s]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	__int16_t atosfix16(<[s]>)
-	const char *<[s]>;
-	
-	__int32_t atosfix32(<[s]>)
-	const char *<[s]>;
-
-	__int64_t atosfix64(<[s]>)
-	const char *<[s]>;
-
-	__int16_t _atosfix16_r(<reent>, <[s]>)
-	struct _reent *<[reent]>;
-	const char *<[s]>;
-	
-	__int32_t _atosfix32_r(<reent>, <[s]>)
-	struct _reent *<[reent]>;
-	const char *<[s]>;
-	
-	__int64_t _atosfix64_r(<reent>, <[s]>)
-	struct _reent *<[reent]>;
-	const char *<[s]>;
-	
 DESCRIPTION
 	<<atosfix16>> converts the initial portion of a string to a sign
 	+ 15-bit fraction fixed point value.
diff --git a/newlib/libc/machine/powerpc/atoufix16.c b/newlib/libc/machine/powerpc/atoufix16.c
index 53db13764..45d130fac 100644
--- a/newlib/libc/machine/powerpc/atoufix16.c
+++ b/newlib/libc/machine/powerpc/atoufix16.c
@@ -15,7 +15,7 @@ INDEX
 INDEX
 	_atoufix64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
         __uint16_t atoufix16(const char *<[s]>);
 	__uint32_t atoufix32(const char *<[s]>);
@@ -25,29 +25,6 @@ ANSI_SYNOPSIS
 	__uint32_t _atoufix32_r(struct __reent *, const char *<[s]>);
 	__uint64_t _atoufix32_r(struct __reent *, const char *<[s]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	__uint16_t atoufix16(<[s]>)
-	const char *<[s]>;
-	
-	__uint32_t atoufix32(<[s]>)
-	const char *<[s]>;
-
-	__uint64_t atoufix64(<[s]>)
-	const char *<[s]>;
-
-	__uint16_t _atoufix16_r(<reent>, <[s]>)
-	struct _reent *<[reent]>;
-	const char *<[s]>;
-	
-	__uint32_t _atoufix32_r(<reent>, <[s]>)
-	struct _reent *<[reent]>;
-	const char *<[s]>;
-	
-	__uint64_t _atoufix64_r(<reent>, <[s]>)
-	struct _reent *<[reent]>;
-	const char *<[s]>;
-	
 DESCRIPTION
 	<<atoufix16>> converts the initial portion of a string to a
 	16-bit fraction unsigned fixed point value.
diff --git a/newlib/libc/machine/powerpc/strtosfix16.c b/newlib/libc/machine/powerpc/strtosfix16.c
index d3cfe0781..e39887dc1 100644
--- a/newlib/libc/machine/powerpc/strtosfix16.c
+++ b/newlib/libc/machine/powerpc/strtosfix16.c
@@ -15,7 +15,7 @@ INDEX
 INDEX
 	_strtosfix64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
         __int16 strtosfix16 (const char *<[s]>, char **<[ptr]>);
 
@@ -32,35 +32,6 @@ ANSI_SYNOPSIS
         __int64 _strtosfix64_r (void *<[reent]>, 
                        const char *<[s]>, char **<[ptr]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	__int16 strtosfix16 (<[s]>, <[ptr]>)
-        char *<[s]>;
-        char **<[ptr]>;
-
-	__int32 strtosfix32 (<[s]>, <[ptr]>)
-        char *<[s]>;
-        char **<[ptr]>;
-
-	__int64 strtosfix64 (<[s]>, <[ptr]>)
-        char *<[s]>;
-        char **<[ptr]>;
-
-	__int16 _strtosfix16_r (<[reent]>, <[s]>, <[ptr]>)
-	char *<[reent]>;
-        char *<[s]>;
-        char **<[ptr]>;
-
-	__int32 _strtosfix32_r (<[reent]>, <[s]>, <[ptr]>)
-	char *<[reent]>;
-        char *<[s]>;
-        char **<[ptr]>;
-
-	__int64 _strtosfix64_r (<[reent]>, <[s]>, <[ptr]>)
-	char *<[reent]>;
-        char *<[s]>;
-        char **<[ptr]>;
-
 DESCRIPTION
         The function <<strtosfix16>> converts the string <<*<[s]>>> to
 	a fixed-point sign + 15-bits fraction representation.  The function 
diff --git a/newlib/libc/machine/powerpc/strtoufix16.c b/newlib/libc/machine/powerpc/strtoufix16.c
index d90255c0e..3bf2d6b29 100644
--- a/newlib/libc/machine/powerpc/strtoufix16.c
+++ b/newlib/libc/machine/powerpc/strtoufix16.c
@@ -15,7 +15,7 @@ INDEX
 INDEX
 	_strtoufix64_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
         __uint16_t strtoufix16 (const char *<[s]>, char **<[ptr]>);
 
@@ -32,35 +32,6 @@ ANSI_SYNOPSIS
         __uint64_t _strtoufix64_r (void *<[reent]>, 
                        const char *<[s]>, char **<[ptr]>);
 
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	__uint16_t strtoufix16 (<[s]>, <[ptr]>)
-        char *<[s]>;
-        char **<[ptr]>;
-
-	__uint32_t strtoufix32 (<[s]>, <[ptr]>)
-        char *<[s]>;
-        char **<[ptr]>;
-
-	__uint64_t strtoufix64 (<[s]>, <[ptr]>)
-        char *<[s]>;
-        char **<[ptr]>;
-
-	__uint16_t _strtoufix16_r (<[reent]>, <[s]>, <[ptr]>)
-	char *<[reent]>;
-        char *<[s]>;
-        char **<[ptr]>;
-
-	__uint32_t _strtoufix32_r (<[reent]>, <[s]>, <[ptr]>)
-	char *<[reent]>;
-        char *<[s]>;
-        char **<[ptr]>;
-
-	__uint64_t _strtoufix64_r (<[reent]>, <[s]>, <[ptr]>)
-	char *<[reent]>;
-        char *<[s]>;
-        char **<[ptr]>;
-
 DESCRIPTION
         The function <<strtoufix16>> converts the string <<*<[s]>>> to
 	a fixed-point 16-bits fraction representation.  The function 
diff --git a/newlib/libc/machine/powerpc/vec_calloc.c b/newlib/libc/machine/powerpc/vec_calloc.c
index 5efe91049..8b2e835f0 100644
--- a/newlib/libc/machine/powerpc/vec_calloc.c
+++ b/newlib/libc/machine/powerpc/vec_calloc.c
@@ -8,22 +8,10 @@ INDEX
 INDEX
 	_vec_calloc_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	void *vec_calloc(size_t <[n]>, size_t <[s]>);
 	void *vec_calloc_r(void *<[reent]>, size_t <n>, <size_t> <[s]>);
-	
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	char *vec_calloc(<[n]>, <[s]>)
-	size_t <[n]>, <[s]>;
-
-	char *_vec_calloc_r(<[reent]>, <[n]>, <[s]>)
-	char *<[reent]>;
-	size_t <[n]>;
-	size_t <[s]>;
-
-
 
 DESCRIPTION
 Use <<vec_calloc>> to request a block of memory sufficient to hold an
diff --git a/newlib/libc/machine/powerpc/vec_malloc.c b/newlib/libc/machine/powerpc/vec_malloc.c
index 6bcad59b6..181f360f0 100644
--- a/newlib/libc/machine/powerpc/vec_malloc.c
+++ b/newlib/libc/machine/powerpc/vec_malloc.c
@@ -15,7 +15,7 @@ INDEX
 INDEX
 	_vec_free_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdlib.h>
 	void *vec_malloc(size_t <[nbytes]>);
 	void *vec_realloc(void *<[aptr]>, size_t <[nbytes]>);
@@ -27,32 +27,6 @@ ANSI_SYNOPSIS
                          void *<[aptr]>, size_t <[nbytes]>);
 	void _vec_free_r(void *<[reent]>, void *<[aptr]>);
 
-
-TRAD_SYNOPSIS
-	#include <stdlib.h>
-	char *vec_malloc(<[nbytes]>)
-	size_t <[nbytes]>;
-
-	char *vec_realloc(<[aptr]>, <[nbytes]>)
-	char *<[aptr]>;
-	size_t <[nbytes]>;
-
-	void vec_free(<[aptr]>)
-	char *<[aptr]>;
-
-	char *_vec_malloc_r(<[reent]>,<[nbytes]>)
-	char *<[reent]>;
-	size_t <[nbytes]>;
-
-	char *_vec_realloc_r(<[reent]>, <[aptr]>, <[nbytes]>)
-	char *<[reent]>;
-	char *<[aptr]>;
-	size_t <[nbytes]>;
-
-	void _vec_free_r(<[reent]>, <[aptr]>)
-	char *<[reent]>;
-	char *<[aptr]>;
-
 DESCRIPTION
 These functions manage a pool of system memory that is 16-byte aligned..
 
diff --git a/newlib/libc/machine/powerpc/vfprintf.c b/newlib/libc/machine/powerpc/vfprintf.c
index d264e2673..e0b90fcde 100644
--- a/newlib/libc/machine/powerpc/vfprintf.c
+++ b/newlib/libc/machine/powerpc/vfprintf.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	vsnprintf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	int vprintf(const char *<[fmt]>, va_list <[list]>);
@@ -28,53 +28,6 @@ ANSI_SYNOPSIS
 	int _vsnprintf_r(void *<[reent]>, char *<[str]>, size_t <[size]>, const char *<[fmt]>,
                         va_list <[list]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	#include <varargs.h>
-	int vprintf( <[fmt]>, <[list]>)
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int vfprintf(<[fp]>, <[fmt]>, <[list]>)
-	FILE *<[fp]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int vsprintf(<[str]>, <[fmt]>, <[list]>)
-	char *<[str]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int vsnprintf(<[str]>, <[size]>, <[fmt]>, <[list]>)
-	char *<[str]>;
-        size_t <[size]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vprintf_r(<[reent]>, <[fmt]>, <[list]>)
-	char *<[reent]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vfprintf_r(<[reent]>, <[fp]>, <[fmt]>, <[list]>)
-	char *<[reent]>;
-	FILE *<[fp]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vsprintf_r(<[reent]>, <[str]>, <[fmt]>, <[list]>)
-	char *<[reent]>;
-	char *<[str]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vsnprintf_r(<[reent]>, <[str]>, <[size]>, <[fmt]>, <[list]>)
-	char *<[reent]>;
-	char *<[str]>;
-        size_t <[size]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
 DESCRIPTION
 <<vprintf>>, <<vfprintf>>, <<vsprintf>> and <<vsnprintf>> are (respectively)
 variants of <<printf>>, <<fprintf>>, <<sprintf>> and <<snprintf>>.  They differ
diff --git a/newlib/libc/machine/powerpc/vfscanf.c b/newlib/libc/machine/powerpc/vfscanf.c
index 1520ceab8..6cbc624de 100644
--- a/newlib/libc/machine/powerpc/vfscanf.c
+++ b/newlib/libc/machine/powerpc/vfscanf.c
@@ -9,7 +9,7 @@ INDEX
 INDEX
 	vsscanf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <stdio.h>
 	#include <stdarg.h>
 	int vscanf(const char *restrict <[fmt]>, va_list <[list]>);
@@ -23,40 +23,6 @@ ANSI_SYNOPSIS
 	int _vsscanf_r(void *<[reent]>, const char *restrict <[str]>, const char *restrict <[fmt]>, 
                        va_list <[list]>);
 
-TRAD_SYNOPSIS
-	#include <stdio.h>
-	#include <varargs.h>
-	int vscanf( <[fmt]>, <[ist]>)
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int vfscanf( <[fp]>, <[fmt]>, <[list]>)
-	FILE *<[fp]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-	
-	int vsscanf( <[str]>, <[fmt]>, <[list]>)
-	char *<[str]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vscanf_r( <[reent]>, <[fmt]>, <[ist]>)
-	char *<[reent]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
-	int _vfscanf_r( <[reent]>, <[fp]>, <[fmt]>, <[list]>)
-	char *<[reent]>;
-	FILE *<[fp]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-	
-	int _vsscanf_r( <[reent]>, <[str]>, <[fmt]>, <[list]>)
-	char *<[reent]>;
-	char *<[str]>;
-	char *<[fmt]>;
-	va_list <[list]>;
-
 DESCRIPTION
 <<vscanf>>, <<vfscanf>>, and <<vsscanf>> are (respectively) variants
 of <<scanf>>, <<fscanf>>, and <<sscanf>>.  They differ only in 
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 22/24] math: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (18 preceding siblings ...)
  2017-11-30 10:37 ` [PATCH 10/24] search: " Yaakov Selkowitz
@ 2017-11-30 10:39 ` Yaakov Selkowitz
  2017-11-30 10:39 ` [PATCH 06/24] powerpc: " Yaakov Selkowitz
                   ` (4 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:39 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libm/math/s_asinh.c     | 10 +---------
 newlib/libm/math/s_atan.c      | 10 +---------
 newlib/libm/math/s_erf.c       | 16 +---------------
 newlib/libm/math/s_fabs.c      | 10 +---------
 newlib/libm/math/s_floor.c     | 13 +------------
 newlib/libm/math/s_frexp.c     | 13 +------------
 newlib/libm/math/s_ldexp.c     | 14 +-------------
 newlib/libm/math/s_sin.c       | 14 +-------------
 newlib/libm/math/s_tan.c       | 11 +----------
 newlib/libm/math/s_tanh.c      | 11 +----------
 newlib/libm/math/w_acos.c      | 12 +-----------
 newlib/libm/math/w_acosh.c     | 10 +---------
 newlib/libm/math/w_asin.c      | 11 +----------
 newlib/libm/math/w_atan2.c     | 12 +-----------
 newlib/libm/math/w_atanh.c     | 10 +---------
 newlib/libm/math/w_cosh.c      | 10 +---------
 newlib/libm/math/w_exp.c       | 10 +---------
 newlib/libm/math/w_exp2.c      |  2 +-
 newlib/libm/math/w_fmod.c      | 10 +---------
 newlib/libm/math/w_gamma.c     | 29 +----------------------------
 newlib/libm/math/w_hypot.c     |  9 +--------
 newlib/libm/math/w_j0.c        | 35 +----------------------------------
 newlib/libm/math/w_log.c       | 10 +---------
 newlib/libm/math/w_log10.c     | 10 +---------
 newlib/libm/math/w_pow.c       | 10 +---------
 newlib/libm/math/w_remainder.c |  9 +--------
 newlib/libm/math/w_sinh.c      | 10 +---------
 newlib/libm/math/w_sqrt.c      |  7 +------
 28 files changed, 28 insertions(+), 310 deletions(-)

diff --git a/newlib/libm/math/s_asinh.c b/newlib/libm/math/s_asinh.c
index b7e173c79..711bade8c 100644
--- a/newlib/libm/math/s_asinh.c
+++ b/newlib/libm/math/s_asinh.c
@@ -20,19 +20,11 @@ INDEX
 INDEX
 	asinhf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double asinh(double <[x]>);
 	float asinhf(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double asinh(<[x]>)
-	double <[x]>;
-
-	float asinhf(<[x]>)
-	float <[x]>;
-
 DESCRIPTION
 <<asinh>> calculates the inverse hyperbolic sine of <[x]>.
 <<asinh>> is defined as 
diff --git a/newlib/libm/math/s_atan.c b/newlib/libm/math/s_atan.c
index c52a09dd0..d9dd8b054 100644
--- a/newlib/libm/math/s_atan.c
+++ b/newlib/libm/math/s_atan.c
@@ -21,19 +21,11 @@ INDEX
 INDEX
    atanf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double atan(double <[x]>);
         float atanf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double atan(<[x]>);
-        double <[x]>;
-
-        float atanf(<[x]>);
-        float <[x]>;
-
 DESCRIPTION
 
 <<atan>> computes the inverse tangent (arc tangent) of the input value.
diff --git a/newlib/libm/math/s_erf.c b/newlib/libm/math/s_erf.c
index 825309dee..eb288fc73 100644
--- a/newlib/libm/math/s_erf.c
+++ b/newlib/libm/math/s_erf.c
@@ -23,26 +23,12 @@ INDEX
 INDEX
 	erfcf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double erf(double <[x]>);
 	float erff(float <[x]>);
 	double erfc(double <[x]>);
 	float erfcf(float <[x]>);
-TRAD_SYNOPSIS
-	#include <math.h>
-
-	double erf(<[x]>)
-	double <[x]>;
-
-	float erff(<[x]>)
-	float <[x]>;
-
-	double erfc(<[x]>)
-	double <[x]>;
-
-	float erfcf(<[x]>)
-	float <[x]>;
 
 DESCRIPTION
 	<<erf>> calculates an approximation to the ``error function'',
diff --git a/newlib/libm/math/s_fabs.c b/newlib/libm/math/s_fabs.c
index 95b871ca5..2a6b5b402 100644
--- a/newlib/libm/math/s_fabs.c
+++ b/newlib/libm/math/s_fabs.c
@@ -19,19 +19,11 @@ INDEX
 INDEX
 	fabsf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
        double fabs(double <[x]>);
        float fabsf(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-       double fabs(<[x]>) 
-       double <[x]>;
-
-       float fabsf(<[x]>)
-       float <[x]>;
-
 DESCRIPTION
 <<fabs>> and <<fabsf>> calculate 
 @tex
diff --git a/newlib/libm/math/s_floor.c b/newlib/libm/math/s_floor.c
index 65e234ed2..f95442263 100644
--- a/newlib/libm/math/s_floor.c
+++ b/newlib/libm/math/s_floor.c
@@ -23,24 +23,13 @@ INDEX
 INDEX
 	ceilf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double floor(double <[x]>);
         float floorf(float <[x]>);
         double ceil(double <[x]>);
         float ceilf(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-        double floor(<[x]>)
-	double <[x]>;
-        float floorf(<[x]>) 
-	float <[x]>;
-        double ceil(<[x]>) 
-	double <[x]>;
-        float ceilf(<[x]>) 
-	float <[x]>;
-
 DESCRIPTION
 <<floor>> and <<floorf>> find 
 @tex
diff --git a/newlib/libm/math/s_frexp.c b/newlib/libm/math/s_frexp.c
index 5a396c7a1..284e3382d 100644
--- a/newlib/libm/math/s_frexp.c
+++ b/newlib/libm/math/s_frexp.c
@@ -19,22 +19,11 @@ INDEX
 INDEX
 	frexpf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
         double frexp(double <[val]>, int *<[exp]>);
         float frexpf(float <[val]>, int *<[exp]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-        double frexp(<[val]>, <[exp]>)
-        double <[val]>;
-        int *<[exp]>;
-
-        float frexpf(<[val]>, <[exp]>)
-        float <[val]>;
-        int *<[exp]>;
-
-
 DESCRIPTION
 	All nonzero, normal numbers can be described as <[m]> * 2**<[p]>.
 	<<frexp>> represents the double <[val]> as a mantissa <[m]>
diff --git a/newlib/libm/math/s_ldexp.c b/newlib/libm/math/s_ldexp.c
index adc7d5d0e..89ba3d0c0 100644
--- a/newlib/libm/math/s_ldexp.c
+++ b/newlib/libm/math/s_ldexp.c
@@ -20,23 +20,11 @@ INDEX
 INDEX
 	ldexpf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <math.h>
        double ldexp(double <[val]>, int <[exp]>);
        float ldexpf(float <[val]>, int <[exp]>);
 
-TRAD_SYNOPSIS
-       #include <math.h>
-
-       double ldexp(<[val]>, <[exp]>)
-              double <[val]>;
-              int <[exp]>;
-
-       float ldexpf(<[val]>, <[exp]>)
-              float <[val]>;
-              int <[exp]>;
-
-
 DESCRIPTION
 <<ldexp>> calculates the value 
 @ifnottex
diff --git a/newlib/libm/math/s_sin.c b/newlib/libm/math/s_sin.c
index 28259f378..7ef0a6f2b 100644
--- a/newlib/libm/math/s_sin.c
+++ b/newlib/libm/math/s_sin.c
@@ -22,25 +22,13 @@ INDEX
 cos
 INDEX
 cosf
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double sin(double <[x]>);
         float  sinf(float <[x]>);
         double cos(double <[x]>);
         float cosf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double sin(<[x]>)
-        double <[x]>;
-        float  sinf(<[x]>)
-        float <[x]>;
-
-        double cos(<[x]>)
-        double <[x]>;
-        float cosf(<[x]>)
-        float <[x]>;
-
 DESCRIPTION
 	<<sin>> and <<cos>> compute (respectively) the sine and cosine
 	of the argument <[x]>.  Angles are specified in radians. 
diff --git a/newlib/libm/math/s_tan.c b/newlib/libm/math/s_tan.c
index 2959f416e..78fb01df3 100644
--- a/newlib/libm/math/s_tan.c
+++ b/newlib/libm/math/s_tan.c
@@ -22,20 +22,11 @@ tan
 INDEX
 tanf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double tan(double <[x]>);
         float tanf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double tan(<[x]>)
-        double <[x]>;
-
-        float tanf(<[x]>)
-        float <[x]>;
-
-
 DESCRIPTION
 <<tan>> computes the tangent of the argument <[x]>.  
 Angles are specified in radians.  
diff --git a/newlib/libm/math/s_tanh.c b/newlib/libm/math/s_tanh.c
index b5541d028..f7864306e 100644
--- a/newlib/libm/math/s_tanh.c
+++ b/newlib/libm/math/s_tanh.c
@@ -21,20 +21,11 @@ tanh
 INDEX
 tanhf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double tanh(double <[x]>);
         float tanhf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double tanh(<[x]>)
-        double <[x]>;
-
-        float tanhf(<[x]>)
-        float <[x]>;
-
-
 DESCRIPTION
 
 <<tanh>> computes the hyperbolic tangent of
diff --git a/newlib/libm/math/w_acos.c b/newlib/libm/math/w_acos.c
index 8ce7887ea..eb3e20111 100644
--- a/newlib/libm/math/w_acos.c
+++ b/newlib/libm/math/w_acos.c
@@ -20,21 +20,11 @@ INDEX
 INDEX
 	acosf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double acos(double <[x]>);
         float acosf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double acos(<[x]>)
-        double <[x]>;
-
-        float acosf(<[x]>)
-        float <[x]>;
-
-
-
 DESCRIPTION
 
 	<<acos>> computes the inverse cosine (arc cosine) of the input value.
diff --git a/newlib/libm/math/w_acosh.c b/newlib/libm/math/w_acosh.c
index 93032600b..ac15bb1bd 100644
--- a/newlib/libm/math/w_acosh.c
+++ b/newlib/libm/math/w_acosh.c
@@ -21,19 +21,11 @@ acosh
 INDEX
 acoshf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double acosh(double <[x]>);
 	float acoshf(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double acosh(<[x]>)
-	double <[x]>;
-
-	float acoshf(<[x]>)
-	float <[x]>;
-
 DESCRIPTION
 <<acosh>> calculates the inverse hyperbolic cosine of <[x]>.
 <<acosh>> is defined as 
diff --git a/newlib/libm/math/w_asin.c b/newlib/libm/math/w_asin.c
index c49111d27..9964d75b0 100644
--- a/newlib/libm/math/w_asin.c
+++ b/newlib/libm/math/w_asin.c
@@ -21,20 +21,11 @@ INDEX
 INDEX
    asinf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double asin(double <[x]>);
         float asinf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double asin(<[x]>)
-        double <[x]>;
-
-        float asinf(<[x]>)
-        float <[x]>;
-
-
 DESCRIPTION
 
 <<asin>> computes the inverse sine (arc sine) of the argument <[x]>.
diff --git a/newlib/libm/math/w_atan2.c b/newlib/libm/math/w_atan2.c
index f3e344ea6..bcf9506bf 100644
--- a/newlib/libm/math/w_atan2.c
+++ b/newlib/libm/math/w_atan2.c
@@ -21,21 +21,11 @@ INDEX
 INDEX
    atan2f
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double atan2(double <[y]>,double <[x]>);
         float atan2f(float <[y]>,float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double atan2(<[y]>,<[x]>);
-        double <[y]>;
-        double <[x]>;
-
-        float atan2f(<[y]>,<[x]>);
-        float <[y]>;
-        float <[x]>;
-
 DESCRIPTION
 
 <<atan2>> computes the inverse tangent (arc tangent) of <[y]>/<[x]>. 
diff --git a/newlib/libm/math/w_atanh.c b/newlib/libm/math/w_atanh.c
index 07fd45962..a87e23cc4 100644
--- a/newlib/libm/math/w_atanh.c
+++ b/newlib/libm/math/w_atanh.c
@@ -20,19 +20,11 @@ INDEX
 INDEX
 	atanhf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double atanh(double <[x]>);
 	float atanhf(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double atanh(<[x]>)
-	double <[x]>;
-
-	float atanhf(<[x]>)
-	float <[x]>;
-
 DESCRIPTION
 	<<atanh>> calculates the inverse hyperbolic tangent of <[x]>.
 
diff --git a/newlib/libm/math/w_cosh.c b/newlib/libm/math/w_cosh.c
index 54bfec37d..e5b08df00 100644
--- a/newlib/libm/math/w_cosh.c
+++ b/newlib/libm/math/w_cosh.c
@@ -16,19 +16,11 @@
 FUNCTION
         <<cosh>>, <<coshf>>---hyperbolic cosine
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double cosh(double <[x]>);
         float coshf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double cosh(<[x]>);
-        double <[x]>;
-
-        float coshf(<[x]>);
-        float <[x]>;
-
 DESCRIPTION
 
 	<<cosh>> computes the hyperbolic cosine of the argument <[x]>.
diff --git a/newlib/libm/math/w_exp.c b/newlib/libm/math/w_exp.c
index eb36390c2..9cd607e4e 100644
--- a/newlib/libm/math/w_exp.c
+++ b/newlib/libm/math/w_exp.c
@@ -19,19 +19,11 @@ INDEX
 INDEX
 	expf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double exp(double <[x]>);
 	float expf(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double exp(<[x]>);
-	double <[x]>;
-
-	float expf(<[x]>);
-	float <[x]>;
-
 DESCRIPTION
 	<<exp>> and <<expf>> calculate the exponential of <[x]>, that is, 
 	@ifnottex
diff --git a/newlib/libm/math/w_exp2.c b/newlib/libm/math/w_exp2.c
index 857cb0cdc..3e41dfc79 100644
--- a/newlib/libm/math/w_exp2.c
+++ b/newlib/libm/math/w_exp2.c
@@ -19,7 +19,7 @@ INDEX
 INDEX
 	exp2f
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double exp2(double <[x]>);
 	float exp2f(float <[x]>);
diff --git a/newlib/libm/math/w_fmod.c b/newlib/libm/math/w_fmod.c
index f9f72c745..df11dc34c 100644
--- a/newlib/libm/math/w_fmod.c
+++ b/newlib/libm/math/w_fmod.c
@@ -20,19 +20,11 @@ fmod
 INDEX
 fmodf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 #include <math.h>
 double fmod(double <[x]>, double <[y]>);
 float fmodf(float <[x]>, float <[y]>);
 
-TRAD_SYNOPSIS
-#include <math.h>
-double fmod(<[x]>, <[y]>);
-double (<[x]>, <[y]>);
-
-float fmodf(<[x]>, <[y]>);
-float (<[x]>, <[y]>);
-
 DESCRIPTION
 The <<fmod>> and <<fmodf>> functions compute the floating-point
 remainder of <[x]>/<[y]> (<[x]> modulo <[y]>).
diff --git a/newlib/libm/math/w_gamma.c b/newlib/libm/math/w_gamma.c
index d1a70df2f..a1f50b593 100644
--- a/newlib/libm/math/w_gamma.c
+++ b/newlib/libm/math/w_gamma.c
@@ -47,7 +47,7 @@ tgamma
 INDEX
 tgammaf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 #include <math.h>
 double gamma(double <[x]>);
 float gammaf(float <[x]>);
@@ -60,33 +60,6 @@ float lgammaf_r(float <[x]>, int *<[signgamp]>);
 double tgamma(double <[x]>);
 float tgammaf(float <[x]>);
 
-TRAD_SYNOPSIS
-#include <math.h>
-double gamma(<[x]>)
-double <[x]>;
-float gammaf(<[x]>)
-float <[x]>;
-double lgamma(<[x]>)
-double <[x]>;
-float lgammaf(<[x]>)
-float <[x]>;
-double gamma_r(<[x]>, <[signgamp]>)
-double <[x]>;
-int <[signgamp]>;
-float gammaf_r(<[x]>, <[signgamp]>)
-float <[x]>;
-int <[signgamp]>;
-double lgamma_r(<[x]>, <[signgamp]>)
-double <[x]>;
-int <[signgamp]>;
-float lgammaf_r(<[x]>, <[signgamp]>)
-float <[x]>;
-int <[signgamp]>;
-double tgamma(<[x]>)
-double <[x]>;
-float tgammaf(<[x]>)
-float <[x]>;
-
 DESCRIPTION
 <<gamma>> calculates
 @tex
diff --git a/newlib/libm/math/w_hypot.c b/newlib/libm/math/w_hypot.c
index 203bf0982..533702277 100644
--- a/newlib/libm/math/w_hypot.c
+++ b/newlib/libm/math/w_hypot.c
@@ -19,18 +19,11 @@ INDEX
 INDEX
 	hypotf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double hypot(double <[x]>, double <[y]>);
 	float hypotf(float <[x]>, float <[y]>);
 
-TRAD_SYNOPSIS
-	double hypot(<[x]>, <[y]>)
-	double <[x]>, <[y]>;
-
-	float hypotf(<[x]>, <[y]>)
-	float <[x]>, <[y]>;
-
 DESCRIPTION
 	<<hypot>> calculates the Euclidean distance
 	@tex
diff --git a/newlib/libm/math/w_j0.c b/newlib/libm/math/w_j0.c
index e4dde5ccb..ab05dbdeb 100644
--- a/newlib/libm/math/w_j0.c
+++ b/newlib/libm/math/w_j0.c
@@ -40,7 +40,7 @@ yn
 INDEX
 ynf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 #include <math.h>
 double j0(double <[x]>);
 float j0f(float <[x]>);
@@ -55,39 +55,6 @@ float y1f(float <[x]>);
 double yn(int <[n]>, double <[x]>);
 float ynf(int <[n]>, float <[x]>);
 
-TRAD_SYNOPSIS
-#include <math.h>
-
-double j0(<[x]>)
-double <[x]>;
-float j0f(<[x]>)
-float <[x]>;
-double j1(<[x]>)
-double <[x]>;
-float j1f(<[x]>)
-float <[x]>;
-double jn(<[n]>, <[x]>)
-int <[n]>;
-double <[x]>;
-float jnf(<[n]>, <[x]>)
-int <[n]>;
-float <[x]>;
-
-double y0(<[x]>)
-double <[x]>;
-float y0f(<[x]>)
-float <[x]>;
-double y1(<[x]>)
-double <[x]>;
-float y1f(<[x]>)
-float <[x]>;
-double yn(<[n]>, <[x]>)
-int <[n]>;
-double <[x]>;
-float ynf(<[n]>, <[x]>)
-int <[n]>;
-float <[x]>;
-
 DESCRIPTION
 The Bessel functions are a family of functions that solve the
 differential equation 
diff --git a/newlib/libm/math/w_log.c b/newlib/libm/math/w_log.c
index 38896cd25..2e7e6c00c 100644
--- a/newlib/libm/math/w_log.c
+++ b/newlib/libm/math/w_log.c
@@ -20,19 +20,11 @@ INDEX
 INDEX
     logf
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <math.h>
        double log(double <[x]>);
        float logf(float <[x]>);
 
-TRAD_SYNOPSIS
-       #include <math.h>
-       double log(<[x]>);
-       double <[x]>;
-
-       float logf(<[x]>);
-       float <[x]>;
-
 DESCRIPTION
 Return the natural logarithm of <[x]>, that is, its logarithm base e
 (where e is the base of the natural system of logarithms, 2.71828@dots{}).
diff --git a/newlib/libm/math/w_log10.c b/newlib/libm/math/w_log10.c
index 66f0e78d1..3b436d539 100644
--- a/newlib/libm/math/w_log10.c
+++ b/newlib/libm/math/w_log10.c
@@ -20,19 +20,11 @@ log10
 INDEX
 log10f
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double log10(double <[x]>);
 	float log10f(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double log10(<[x]>)
-	double <[x]>;
-
-	float log10f(<[x]>)
-	float <[x]>;
-
 DESCRIPTION
 <<log10>> returns the base 10 logarithm of <[x]>.
 It is implemented as <<log(<[x]>) / log(10)>>.
diff --git a/newlib/libm/math/w_pow.c b/newlib/libm/math/w_pow.c
index ebf7be328..fc38f68ec 100644
--- a/newlib/libm/math/w_pow.c
+++ b/newlib/libm/math/w_pow.c
@@ -21,19 +21,11 @@ INDEX
 	powf
 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double pow(double <[x]>, double <[y]>);
 	float powf(float <[x]>, float <[y]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double pow(<[x]>, <[y]>);
-	double <[x]>, <[y]>;
-
-	float powf(<[x]>, <[y]>);
-	float <[x]>, <[y]>;
-
 DESCRIPTION
 	<<pow>> and <<powf>> calculate <[x]> raised to the exponent <[y]>.
 	@tex
diff --git a/newlib/libm/math/w_remainder.c b/newlib/libm/math/w_remainder.c
index e4c196716..5b13390f9 100644
--- a/newlib/libm/math/w_remainder.c
+++ b/newlib/libm/math/w_remainder.c
@@ -19,18 +19,11 @@ INDEX
 INDEX
 	remainderf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double remainder(double <[x]>, double <[y]>);
 	float remainderf(float <[x]>, float <[y]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double remainder(<[x]>,<[y]>)
-	double <[x]>, <[y]>;
-	float remainderf(<[x]>,<[y]>)
-	float <[x]>, <[y]>;
-
 DESCRIPTION
 <<remainder>> and <<remainderf>> find the remainder of
 <[x]>/<[y]>; this value is in the range -<[y]>/2 .. +<[y]>/2.
diff --git a/newlib/libm/math/w_sinh.c b/newlib/libm/math/w_sinh.c
index 72e0ef51e..340a7112d 100644
--- a/newlib/libm/math/w_sinh.c
+++ b/newlib/libm/math/w_sinh.c
@@ -21,19 +21,11 @@ INDEX
 INDEX
 	sinhf
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <math.h>
         double sinh(double <[x]>);
         float  sinhf(float <[x]>);
 
-TRAD_SYNOPSIS
-        #include <math.h>
-        double sinh(<[x]>)
-        double <[x]>;
-
-        float  sinhf(<[x]>)
-        float <[x]>;
-
 DESCRIPTION
 	<<sinh>> computes the hyperbolic sine of the argument <[x]>.
 	Angles are specified in radians.   <<sinh>>(<[x]>) is defined as 
diff --git a/newlib/libm/math/w_sqrt.c b/newlib/libm/math/w_sqrt.c
index 23a793ce7..61d42fcec 100644
--- a/newlib/libm/math/w_sqrt.c
+++ b/newlib/libm/math/w_sqrt.c
@@ -20,16 +20,11 @@ INDEX
 INDEX
 	sqrtf
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double sqrt(double <[x]>);
 	float  sqrtf(float <[x]>);
 
-TRAD_SYNOPSIS
-	#include <math.h>
-	double sqrt(<[x]>);
-	float  sqrtf(<[x]>);
-
 DESCRIPTION
 	<<sqrt>> computes the positive square root of the argument.
 	You can modify error handling for this function with
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 18/24] unix: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (20 preceding siblings ...)
  2017-11-30 10:39 ` [PATCH 06/24] powerpc: " Yaakov Selkowitz
@ 2017-11-30 10:41 ` Yaakov Selkowitz
  2017-11-30 10:47 ` [PATCH 21/24] libm/machine: " Yaakov Selkowitz
                   ` (2 subsequent siblings)
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:41 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/unix/pread.c  | 17 +----------------
 newlib/libc/unix/pwrite.c | 17 +----------------
 2 files changed, 2 insertions(+), 32 deletions(-)

diff --git a/newlib/libc/unix/pread.c b/newlib/libc/unix/pread.c
index 770c3fcf0..7d351d9d1 100644
--- a/newlib/libc/unix/pread.c
+++ b/newlib/libc/unix/pread.c
@@ -8,27 +8,12 @@ INDEX
 INDEX
 	_pread_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <unistd.h>
 	ssize_t pread(int <[fd]>, void *<[buf]>, size_t <[n]>, off_t <[off]>);
 	ssize_t _pread_r(struct _reent *<[rptr]>, int <[fd]>, 
                          void *<[buf]>, size_t <[n]>, off_t <[off]>);
 
-TRAD_SYNOPSIS
-	#include <unistd.h>
-	ssize_t pread(<[fd]>, <[buf]>, <[n]>, <[off]>)
-	int <[fd]>;
-	void *<[buf]>;
-	size_t <[n]>;
-	off_t <[off]>;
-
-	ssize_t _pread_r(<[rptr]>, <[fd]>, <[buf]>, <[n]>, <[off]>)
-	struct _reent *<[rptr]>;
-	int <[fd]>;
-	void *<[buf]>;
-	size_t <[n]>;
-	off_t <[off]>;
-
 DESCRIPTION
 The <<pread>> function is similar to <<read>>.  One difference is that
 <<pread>> has an additional parameter <[off]> which is the offset to
diff --git a/newlib/libc/unix/pwrite.c b/newlib/libc/unix/pwrite.c
index 9f2a89835..dad841243 100644
--- a/newlib/libc/unix/pwrite.c
+++ b/newlib/libc/unix/pwrite.c
@@ -8,28 +8,13 @@ INDEX
 INDEX
 	_pwrite_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <unistd.h>
 	ssize_t pwrite(int <[fd]>, const void *<[buf]>, 
                        size_t <[n]>, off_t <[off]>);
 	ssize_t _pwrite_r(struct _reent *<[rptr]>, int <[fd]>, 
                           const void *<[buf]>, size_t <[n]>, off_t <[off]>);
 
-TRAD_SYNOPSIS
-	#include <unistd.h>
-	ssize_t pwrite(<[fd]>, <[buf]>, <[n]>, <[off]>)
-	int <[fd]>;
-	const void *<[buf]>;
-	size_t <[n]>;
-	off_t <[off]>;
-
-	ssize_t _pwrite_r(<[rptr]>, <[fd]>, <[buf]>, <[n]>, <[off]>)
-	struct _reent *<[rptr]>;
-	int <[fd]>;
-	const void *<[buf]>;
-	size_t <[n]>;
-	off_t <[off]>;
-
 DESCRIPTION
 The <<pwrite>> function is similar to <<write>>.  One difference is that
 <<pwrite>> has an additional parameter <[off]> which is the offset to
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 21/24] libm/machine: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (21 preceding siblings ...)
  2017-11-30 10:41 ` [PATCH 18/24] unix: " Yaakov Selkowitz
@ 2017-11-30 10:47 ` Yaakov Selkowitz
  2017-11-30 10:59 ` [PATCH 15/24] string: " Yaakov Selkowitz
  2017-11-30 16:11 ` [PATCH 00/24] Remove TRAD_SYNOPSIS Craig Howland
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:47 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libm/machine/i386/f_llrint.c | 5 +----
 newlib/libm/machine/i386/f_lrint.c  | 5 +----
 newlib/libm/machine/i386/f_rint.c   | 5 +----
 3 files changed, 3 insertions(+), 12 deletions(-)

diff --git a/newlib/libm/machine/i386/f_llrint.c b/newlib/libm/machine/i386/f_llrint.c
index 10285ebd0..6cc81ea1f 100644
--- a/newlib/libm/machine/i386/f_llrint.c
+++ b/newlib/libm/machine/i386/f_llrint.c
@@ -22,15 +22,12 @@ INDEX
 INDEX
 	llrintl
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	long long int llrint(double x);
         long long int llrintf(float x);
         long long int llrintl(long double x);
 
-TRAD_SYNOPSIS
-	ANSI-only.
-
 DESCRIPTION
 The <<llrint>>, <<llrintf>> and <<llrintl>> functions round <[x]> to the nearest integer value,
 according to the current rounding direction. If the rounded value is outside the
diff --git a/newlib/libm/machine/i386/f_lrint.c b/newlib/libm/machine/i386/f_lrint.c
index b8cdabb5d..62b2c41ed 100644
--- a/newlib/libm/machine/i386/f_lrint.c
+++ b/newlib/libm/machine/i386/f_lrint.c
@@ -21,15 +21,12 @@ INDEX
 INDEX
 	lrintl
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	long int lrint(double x);
         long int lrintf(float x);
         long int lrintl(long double x);
 
-TRAD_SYNOPSIS
-	ANSI-only.
-
 DESCRIPTION
 The <<lrint>>, <<lrintf>> and <<lrintl>> functions round <[x]> to the nearest integer value,
 according to the current rounding direction. If the rounded value is outside the
diff --git a/newlib/libm/machine/i386/f_rint.c b/newlib/libm/machine/i386/f_rint.c
index e335d463c..e72316f22 100644
--- a/newlib/libm/machine/i386/f_rint.c
+++ b/newlib/libm/machine/i386/f_rint.c
@@ -21,15 +21,12 @@ INDEX
 INDEX
 	rintl
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <math.h>
 	double rint(double x);
         float rintf(float x);
         long double rintl(long double x);
 
-TRAD_SYNOPSIS
-	ANSI-only.
-
 DESCRIPTION
 The <<rint>>, <<rintf>> and <<rintl>> functions round <[x]> to an integer value
 in floating-point format, using the current rounding direction.  They may
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* [PATCH 15/24] string: remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (22 preceding siblings ...)
  2017-11-30 10:47 ` [PATCH 21/24] libm/machine: " Yaakov Selkowitz
@ 2017-11-30 10:59 ` Yaakov Selkowitz
  2017-11-30 16:11 ` [PATCH 00/24] Remove TRAD_SYNOPSIS Craig Howland
  24 siblings, 0 replies; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-11-30 10:59 UTC (permalink / raw)
  To: newlib

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 newlib/libc/string/bcmp.c          |  9 +--------
 newlib/libc/string/bcopy.c         |  8 +-------
 newlib/libc/string/bzero.c         |  8 +-------
 newlib/libc/string/index.c         |  8 +-------
 newlib/libc/string/memccpy.c       |  9 +--------
 newlib/libc/string/memchr.c        |  9 +--------
 newlib/libc/string/memcmp.c        |  9 +--------
 newlib/libc/string/memcpy.c        |  9 +--------
 newlib/libc/string/memmem.c        |  2 +-
 newlib/libc/string/memmove.c       |  9 +--------
 newlib/libc/string/mempcpy.c       |  8 +-------
 newlib/libc/string/memrchr.c       |  9 +--------
 newlib/libc/string/memset.c        |  9 +--------
 newlib/libc/string/rawmemchr.c     |  8 +-------
 newlib/libc/string/rindex.c        |  8 +-------
 newlib/libc/string/stpcpy.c        |  8 +-------
 newlib/libc/string/stpncpy.c       |  9 +--------
 newlib/libc/string/strcasecmp.c    |  8 +-------
 newlib/libc/string/strcasecmp_l.c  |  2 +-
 newlib/libc/string/strcasestr.c    |  8 +-------
 newlib/libc/string/strcat.c        |  8 +-------
 newlib/libc/string/strchr.c        |  8 +-------
 newlib/libc/string/strchrnul.c     |  8 +-------
 newlib/libc/string/strcmp.c        |  8 +-------
 newlib/libc/string/strcoll.c       |  8 +-------
 newlib/libc/string/strcoll_l.c     |  2 +-
 newlib/libc/string/strcpy.c        |  8 +-------
 newlib/libc/string/strcspn.c       |  7 +------
 newlib/libc/string/strerror.c      |  7 +------
 newlib/libc/string/strerror_r.c    |  9 +--------
 newlib/libc/string/strlen.c        |  7 +------
 newlib/libc/string/strlwr.c        |  7 +------
 newlib/libc/string/strncasecmp.c   |  9 +--------
 newlib/libc/string/strncasecmp_l.c |  2 +-
 newlib/libc/string/strncat.c       |  9 +--------
 newlib/libc/string/strncmp.c       |  9 +--------
 newlib/libc/string/strncpy.c       |  9 +--------
 newlib/libc/string/strnlen.c       |  8 +-------
 newlib/libc/string/strnstr.c       |  2 +-
 newlib/libc/string/strpbrk.c       |  8 +-------
 newlib/libc/string/strrchr.c       |  8 +-------
 newlib/libc/string/strsignal.c     |  7 +------
 newlib/libc/string/strspn.c        |  8 +-------
 newlib/libc/string/strstr.c        |  8 +-------
 newlib/libc/string/strtok.c        | 17 +----------------
 newlib/libc/string/strupr.c        |  7 +------
 newlib/libc/string/strverscmp.c    |  9 +--------
 newlib/libc/string/strxfrm.c       |  9 +--------
 newlib/libc/string/strxfrm_l.c     |  2 +-
 newlib/libc/string/swab.c          |  8 +-------
 newlib/libc/string/wcpcpy.c        |  7 +------
 newlib/libc/string/wcpncpy.c       |  8 +-------
 newlib/libc/string/wcscasecmp.c    |  8 +-------
 newlib/libc/string/wcscasecmp_l.c  |  2 +-
 newlib/libc/string/wcscat.c        |  7 +------
 newlib/libc/string/wcschr.c        |  7 +------
 newlib/libc/string/wcscmp.c        |  6 +-----
 newlib/libc/string/wcscoll.c       |  8 +-------
 newlib/libc/string/wcscoll_l.c     |  2 +-
 newlib/libc/string/wcscpy.c        |  7 +------
 newlib/libc/string/wcscspn.c       |  7 +------
 newlib/libc/string/wcsdup.c        |  8 +-------
 newlib/libc/string/wcslcat.c       |  9 +--------
 newlib/libc/string/wcslcpy.c       |  9 +--------
 newlib/libc/string/wcslen.c        |  6 +-----
 newlib/libc/string/wcsncasecmp.c   |  9 +--------
 newlib/libc/string/wcsncasecmp_l.c |  2 +-
 newlib/libc/string/wcsncat.c       |  8 +-------
 newlib/libc/string/wcsncmp.c       |  8 +-------
 newlib/libc/string/wcsncpy.c       |  8 +-------
 newlib/libc/string/wcsnlen.c       |  8 +-------
 newlib/libc/string/wcspbrk.c       |  7 +------
 newlib/libc/string/wcsrchr.c       |  8 +-------
 newlib/libc/string/wcsspn.c        |  7 +------
 newlib/libc/string/wcsstr.c        |  7 +------
 newlib/libc/string/wcstok.c        |  9 +--------
 newlib/libc/string/wcswidth.c      |  8 +-------
 newlib/libc/string/wcsxfrm.c       |  9 +--------
 newlib/libc/string/wcsxfrm_l.c     |  2 +-
 newlib/libc/string/wcwidth.c       |  7 +------
 newlib/libc/string/wmemchr.c       |  8 +-------
 newlib/libc/string/wmemcmp.c       |  8 +-------
 newlib/libc/string/wmemcpy.c       |  8 +-------
 newlib/libc/string/wmemmove.c      |  8 +-------
 newlib/libc/string/wmemset.c       |  8 +-------
 85 files changed, 85 insertions(+), 546 deletions(-)

diff --git a/newlib/libc/string/bcmp.c b/newlib/libc/string/bcmp.c
index 8d6e12ffb..86aada10c 100644
--- a/newlib/libc/string/bcmp.c
+++ b/newlib/libc/string/bcmp.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	bcmp
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <strings.h>
 	int bcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	#include <strings.h>
-	int bcmp(<[s1]>, <[s2]>, <[n]>)
-	const void *<[s1]>;
-	const void *<[s2]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	This function compares not more than <[n]> bytes of the
 	object pointed to by <[s1]> with the object pointed to by <[s2]>.
diff --git a/newlib/libc/string/bcopy.c b/newlib/libc/string/bcopy.c
index 2881fd92c..22a7f1bfe 100644
--- a/newlib/libc/string/bcopy.c
+++ b/newlib/libc/string/bcopy.c
@@ -2,16 +2,10 @@
 FUNCTION
 	<<bcopy>>---copy memory regions
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <strings.h>
 	void bcopy(const void *<[in]>, void *<[out]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	void bcopy(<[in]>, <[out]>, <[n]>
-	const void *<[in]>;
-	void *<[out]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	This function copies <[n]> bytes from the memory region
 	pointed to by <[in]> to the memory region pointed to by
diff --git a/newlib/libc/string/bzero.c b/newlib/libc/string/bzero.c
index e99529af6..dc52170c5 100644
--- a/newlib/libc/string/bzero.c
+++ b/newlib/libc/string/bzero.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	bzero
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <strings.h>
 	void bzero(void *<[b]>, size_t <[length]>);
 
-TRAD_SYNOPSIS
-	#include <strings.h>
-	void bzero(<[b]>, <[length]>)
-	void *<[b]>;
-	size_t <[length]>;
-
 DESCRIPTION
 <<bzero>> initializes <[length]> bytes of memory, starting at address
 <[b]>, to zero.
diff --git a/newlib/libc/string/index.c b/newlib/libc/string/index.c
index ec241ffa8..2c4b49016 100644
--- a/newlib/libc/string/index.c
+++ b/newlib/libc/string/index.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	index
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <strings.h>
 	char * index(const char *<[string]>, int <[c]>);
 
-TRAD_SYNOPSIS
-	#include <strings.h>
-	char * index(<[string]>, <[c]>);
-	char *<[string]>;
-	int *<[c]>;
-
 DESCRIPTION
 	This function finds the first occurence of <[c]> (converted to
 	a char) in the string pointed to by <[string]> (including the
diff --git a/newlib/libc/string/memccpy.c b/newlib/libc/string/memccpy.c
index 332ed4660..219aa5cfe 100644
--- a/newlib/libc/string/memccpy.c
+++ b/newlib/libc/string/memccpy.c
@@ -2,18 +2,11 @@
 FUNCTION
         <<memccpy>>---copy memory regions with end-token check
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <string.h>
         void* memccpy(void *restrict <[out]>, const void *restrict <[in]>, 
                       int <[endchar]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-        void *memccpy(<[out]>, <[in]>, <[endchar]>, <[n]>
-        void *<[out]>;
-        void *<[in]>;
-	int <[endchar]>;
-        size_t <[n]>;
-
 DESCRIPTION
         This function copies up to <[n]> bytes from the memory region
         pointed to by <[in]> to the memory region pointed to by
diff --git a/newlib/libc/string/memchr.c b/newlib/libc/string/memchr.c
index db0af7cd7..152cd718a 100644
--- a/newlib/libc/string/memchr.c
+++ b/newlib/libc/string/memchr.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	memchr
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	void *memchr(const void *<[src]>, int <[c]>, size_t <[length]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	void *memchr(<[src]>, <[c]>, <[length]>)
-	void *<[src]>;
-	void *<[c]>;
-	size_t <[length]>;
-
 DESCRIPTION
 	This function searches memory starting at <<*<[src]>>> for the
 	character <[c]>.  The search only ends with the first
diff --git a/newlib/libc/string/memcmp.c b/newlib/libc/string/memcmp.c
index 4a871fa60..8f86e7afd 100644
--- a/newlib/libc/string/memcmp.c
+++ b/newlib/libc/string/memcmp.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	memcmp
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	int memcmp(const void *<[s1]>, const void *<[s2]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	int memcmp(<[s1]>, <[s2]>, <[n]>)
-	void *<[s1]>;
-	void *<[s2]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	This function compares not more than <[n]> characters of the
 	object pointed to by <[s1]> with the object pointed to by <[s2]>.
diff --git a/newlib/libc/string/memcpy.c b/newlib/libc/string/memcpy.c
index 5f27bca72..c76ab484f 100644
--- a/newlib/libc/string/memcpy.c
+++ b/newlib/libc/string/memcpy.c
@@ -2,18 +2,11 @@
 FUNCTION
         <<memcpy>>---copy memory regions
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <string.h>
         void* memcpy(void *restrict <[out]>, const void *restrict <[in]>,
                      size_t <[n]>);
 
-TRAD_SYNOPSIS
-        #include <string.h>
-        void *memcpy(<[out]>, <[in]>, <[n]>
-        void *<[out]>;
-        void *<[in]>;
-        size_t <[n]>;
-
 DESCRIPTION
         This function copies <[n]> bytes from the memory region
         pointed to by <[in]> to the memory region pointed to by
diff --git a/newlib/libc/string/memmem.c b/newlib/libc/string/memmem.c
index 25704e467..59e19d245 100644
--- a/newlib/libc/string/memmem.c
+++ b/newlib/libc/string/memmem.c
@@ -11,7 +11,7 @@ FUNCTION
 INDEX
 	memmem
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *memmem(const void *<[s1]>, size_t <[l1]>, const void *<[s2]>,
 		     size_t <[l2]>);
diff --git a/newlib/libc/string/memmove.c b/newlib/libc/string/memmove.c
index a037c7c2f..e6275a7e1 100644
--- a/newlib/libc/string/memmove.c
+++ b/newlib/libc/string/memmove.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	memmove
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	void *memmove(void *<[dst]>, const void *<[src]>, size_t <[length]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	void *memmove(<[dst]>, <[src]>, <[length]>)
-	void *<[dst]>;
-	void *<[src]>;
-	size_t <[length]>;
-
 DESCRIPTION
 	This function moves <[length]> characters from the block of
 	memory starting at <<*<[src]>>> to the memory starting at
diff --git a/newlib/libc/string/mempcpy.c b/newlib/libc/string/mempcpy.c
index 5c6738f22..1a8e7cd34 100644
--- a/newlib/libc/string/mempcpy.c
+++ b/newlib/libc/string/mempcpy.c
@@ -2,16 +2,10 @@
 FUNCTION
         <<mempcpy>>---copy memory regions and return end pointer
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <string.h>
         void* mempcpy(void *<[out]>, const void *<[in]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-        void *mempcpy(<[out]>, <[in]>, <[n]>
-        void *<[out]>;
-        void *<[in]>;
-        size_t <[n]>;
-
 DESCRIPTION
         This function copies <[n]> bytes from the memory region
         pointed to by <[in]> to the memory region pointed to by
diff --git a/newlib/libc/string/memrchr.c b/newlib/libc/string/memrchr.c
index 60dee42ed..974cebc16 100644
--- a/newlib/libc/string/memrchr.c
+++ b/newlib/libc/string/memrchr.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	memrchr
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	void *memrchr(const void *<[src]>, int <[c]>, size_t <[length]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	void *memrchr(<[src]>, <[c]>, <[length]>)
-	void *<[src]>;
-	void *<[c]>;
-	size_t <[length]>;
-
 DESCRIPTION
 	This function searches memory starting at <[length]> bytes
 	beyond <<*<[src]>>> backwards for the character <[c]>.
diff --git a/newlib/libc/string/memset.c b/newlib/libc/string/memset.c
index b84e155f7..7d05478eb 100644
--- a/newlib/libc/string/memset.c
+++ b/newlib/libc/string/memset.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	memset
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	void *memset(void *<[dst]>, int <[c]>, size_t <[length]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	void *memset(<[dst]>, <[c]>, <[length]>)
-	void *<[dst]>;
-	int <[c]>;
-	size_t <[length]>;
-
 DESCRIPTION
 	This function converts the argument <[c]> into an unsigned
 	char and fills the first <[length]> characters of the array
diff --git a/newlib/libc/string/rawmemchr.c b/newlib/libc/string/rawmemchr.c
index 4b5a4cdeb..c1b360dd3 100644
--- a/newlib/libc/string/rawmemchr.c
+++ b/newlib/libc/string/rawmemchr.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	rawmemchr
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	void *rawmemchr(const void *<[src]>, int <[c]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	void *rawmemchr(<[src]>, <[c]>)
-	void *<[src]>;
-	void *<[c]>;
-
 DESCRIPTION
 	This function searches memory starting at <<*<[src]>>> for the
 	character <[c]>.  The search only ends with the first occurrence
diff --git a/newlib/libc/string/rindex.c b/newlib/libc/string/rindex.c
index daa1c5237..3284361f8 100644
--- a/newlib/libc/string/rindex.c
+++ b/newlib/libc/string/rindex.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	rindex
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char * rindex(const char *<[string]>, int <[c]>);
 
-TRAD_SYNOPSIS
-	#include <strings.h>
-	char * rindex(<[string]>, <[c]>);
-	char *<[string]>;
-	int *<[c]>;
-
 DESCRIPTION
 	This function finds the last occurence of <[c]> (converted to
 	a char) in the string pointed to by <[string]> (including the
diff --git a/newlib/libc/string/stpcpy.c b/newlib/libc/string/stpcpy.c
index bc58f4771..6272f1da6 100644
--- a/newlib/libc/string/stpcpy.c
+++ b/newlib/libc/string/stpcpy.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	stpcpy
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *stpcpy(char *restrict <[dst]>, const char *restrict <[src]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *stpcpy(<[dst]>, <[src]>)
-	char *<[dst]>;
-	char *<[src]>;
-
 DESCRIPTION
 	<<stpcpy>> copies the string pointed to by <[src]>
 	(including the terminating null character) to the array
diff --git a/newlib/libc/string/stpncpy.c b/newlib/libc/string/stpncpy.c
index abd9bbdbf..aa5acd45f 100644
--- a/newlib/libc/string/stpncpy.c
+++ b/newlib/libc/string/stpncpy.c
@@ -5,18 +5,11 @@ FUNCTION
 INDEX
 	stpncpy
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *stpncpy(char *restrict <[dst]>, const char *restrict <[src]>,
                       size_t <[length]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *stpncpy(<[dst]>, <[src]>, <[length]>)
-	char *<[dst]>;
-	char *<[src]>;
-	size_t <[length]>;
-
 DESCRIPTION
 	<<stpncpy>> copies not more than <[length]> characters from the
 	the string pointed to by <[src]> (including the terminating
diff --git a/newlib/libc/string/strcasecmp.c b/newlib/libc/string/strcasecmp.c
index df8510b13..a6c34862f 100644
--- a/newlib/libc/string/strcasecmp.c
+++ b/newlib/libc/string/strcasecmp.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strcasecmp
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <strings.h>
 	int strcasecmp(const char *<[a]>, const char *<[b]>);
 
-TRAD_SYNOPSIS
-	#include <strings.h>
-	int strcasecmp(<[a]>, <[b]>)
-	char *<[a]>;
-	char *<[b]>;
-
 DESCRIPTION
 	<<strcasecmp>> compares the string at <[a]> to
 	the string at <[b]> in a case-insensitive manner.
diff --git a/newlib/libc/string/strcasecmp_l.c b/newlib/libc/string/strcasecmp_l.c
index f87039d91..587f56ee1 100644
--- a/newlib/libc/string/strcasecmp_l.c
+++ b/newlib/libc/string/strcasecmp_l.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	strcasecmp_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <strings.h>
 	int strcasecmp_l(const char *<[a]>, const char *<[b]>,
 			 locale_t <[locale]>);
diff --git a/newlib/libc/string/strcasestr.c b/newlib/libc/string/strcasestr.c
index 8fff00b00..599f50227 100644
--- a/newlib/libc/string/strcasestr.c
+++ b/newlib/libc/string/strcasestr.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strcasestr
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strcasestr(const char *<[s]>, const char *<[find]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	int strcasecmp(<[s]>, <[find]>)
-	char *<[s]>;
-	char *<[find]>;
-
 DESCRIPTION
 	<<strcasestr>> searchs the string <[s]> for
 	the first occurrence of the sequence <[find]>.  <<strcasestr>>
diff --git a/newlib/libc/string/strcat.c b/newlib/libc/string/strcat.c
index 1e4614991..44b6b03f0 100644
--- a/newlib/libc/string/strcat.c
+++ b/newlib/libc/string/strcat.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strcat
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strcat(char *restrict <[dst]>, const char *restrict <[src]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strcat(<[dst]>, <[src]>)
-	char *<[dst]>;
-	char *<[src]>;
-
 DESCRIPTION
 	<<strcat>> appends a copy of the string pointed to by <[src]>
 	(including the terminating null character) to the end of the
diff --git a/newlib/libc/string/strchr.c b/newlib/libc/string/strchr.c
index e921b5db7..7147bd457 100644
--- a/newlib/libc/string/strchr.c
+++ b/newlib/libc/string/strchr.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strchr
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char * strchr(const char *<[string]>, int <[c]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char * strchr(<[string]>, <[c]>);
-	const char *<[string]>;
-	int <[c]>;
-
 DESCRIPTION
 	This function finds the first occurence of <[c]> (converted to
 	a char) in the string pointed to by <[string]> (including the
diff --git a/newlib/libc/string/strchrnul.c b/newlib/libc/string/strchrnul.c
index afeef434e..3b6cd62fb 100644
--- a/newlib/libc/string/strchrnul.c
+++ b/newlib/libc/string/strchrnul.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strchrnul
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char * strchrnul(const char *<[string]>, int <[c]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char * strchrnul(<[string]>, <[c]>);
-	const char *<[string]>;
-	int <[c]>;
-
 DESCRIPTION
 	This function finds the first occurence of <[c]> (converted to
 	a char) in the string pointed to by <[string]> (including the
diff --git a/newlib/libc/string/strcmp.c b/newlib/libc/string/strcmp.c
index 81d65272e..d5e9148ef 100644
--- a/newlib/libc/string/strcmp.c
+++ b/newlib/libc/string/strcmp.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strcmp
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	int strcmp(const char *<[a]>, const char *<[b]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	int strcmp(<[a]>, <[b]>)
-	char *<[a]>;
-	char *<[b]>;
-
 DESCRIPTION
 	<<strcmp>> compares the string at <[a]> to
 	the string at <[b]>.
diff --git a/newlib/libc/string/strcoll.c b/newlib/libc/string/strcoll.c
index a6bb31a4e..551ede65b 100644
--- a/newlib/libc/string/strcoll.c
+++ b/newlib/libc/string/strcoll.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strcoll
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	int strcoll(const char *<[stra]>, const char * <[strb]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	int strcoll(<[stra]>, <[strb]>)
-	char *<[stra]>;
-	char *<[strb]>;
-
 DESCRIPTION
 	<<strcoll>> compares the string pointed to by <[stra]> to
 	the string pointed to by <[strb]>, using an interpretation
diff --git a/newlib/libc/string/strcoll_l.c b/newlib/libc/string/strcoll_l.c
index 5032f8439..89a7d0535 100644
--- a/newlib/libc/string/strcoll_l.c
+++ b/newlib/libc/string/strcoll_l.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	strcoll_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	int strcoll_l(const char *<[stra]>, const char * <[strb]>,
 		      locale_t <[locale]>);
diff --git a/newlib/libc/string/strcpy.c b/newlib/libc/string/strcpy.c
index 3dc3c33f6..9670d2c13 100644
--- a/newlib/libc/string/strcpy.c
+++ b/newlib/libc/string/strcpy.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strcpy
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strcpy(char *<[dst]>, const char *<[src]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strcpy(<[dst]>, <[src]>)
-	char *<[dst]>;
-	char *<[src]>;
-
 DESCRIPTION
 	<<strcpy>> copies the string pointed to by <[src]>
 	(including the terminating null character) to the array
diff --git a/newlib/libc/string/strcspn.c b/newlib/libc/string/strcspn.c
index 403330c94..f80b61f37 100644
--- a/newlib/libc/string/strcspn.c
+++ b/newlib/libc/string/strcspn.c
@@ -5,14 +5,9 @@ FUNCTION
 INDEX
 	strcspn
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	size_t strcspn(const char *<[s1]>, const char *<[s2]>);
 
-TRAD_SYNOPSIS
-	size_t strcspn(<[s1]>, <[s2]>)
-	char *<[s1]>;
-	char *<[s2]>;
-
 DESCRIPTION
 	This function computes the length of the initial part of
 	the string pointed to by <[s1]> which consists entirely of
diff --git a/newlib/libc/string/strerror.c b/newlib/libc/string/strerror.c
index d5f0a3ec9..8da7d5185 100644
--- a/newlib/libc/string/strerror.c
+++ b/newlib/libc/string/strerror.c
@@ -15,18 +15,13 @@ INDEX
 INDEX
 	strerror_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strerror(int <[errnum]>);
 	char *strerror_l(int <[errnum]>, locale_t <[locale]>);
 	char *_strerror_r(struct _reent <[ptr]>, int <[errnum]>,
 			  int <[internal]>, int *<[error]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strerror(<[errnum]>)
-	int <[errnum]>;
-
 DESCRIPTION
 <<strerror>> converts the error number <[errnum]> into a
 string.  The value of <[errnum]> is usually a copy of <<errno>>.
diff --git a/newlib/libc/string/strerror_r.c b/newlib/libc/string/strerror_r.c
index d26a412a5..af9337563 100644
--- a/newlib/libc/string/strerror_r.c
+++ b/newlib/libc/string/strerror_r.c
@@ -6,7 +6,7 @@ FUNCTION
 INDEX
 	strerror_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	#ifdef _GNU_SOURCE
 	char *strerror_r(int <[errnum]>, char *<[buffer]>, size_t <[n]>);
@@ -14,13 +14,6 @@ ANSI_SYNOPSIS
 	int strerror_r(int <[errnum]>, char *<[buffer]>, size_t <[n]>);
 	#endif
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strerror_r(<[errnum]>, <[buffer]>, <[n]>)
-	int <[errnum]>;
-	char *<[buffer]>;
-	size_t <[n]>;
-
 DESCRIPTION
 <<strerror_r>> converts the error number <[errnum]> into a
 string and copies the result into the supplied <[buffer]> for
diff --git a/newlib/libc/string/strlen.c b/newlib/libc/string/strlen.c
index a796d2738..2e8c09f7f 100644
--- a/newlib/libc/string/strlen.c
+++ b/newlib/libc/string/strlen.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
 	strlen
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	size_t strlen(const char *<[str]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	size_t strlen(<[str]>)
-	char *<[src]>;
-
 DESCRIPTION
 	The <<strlen>> function works out the length of the string
 	starting at <<*<[str]>>> by counting chararacters until it
diff --git a/newlib/libc/string/strlwr.c b/newlib/libc/string/strlwr.c
index 3b73dba4b..c47ff4859 100644
--- a/newlib/libc/string/strlwr.c
+++ b/newlib/libc/string/strlwr.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
 	strlwr
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strlwr(char *<[a]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strlwr(<[a]>)
-	char *<[a]>;
-
 DESCRIPTION
 	<<strlwr>> converts each character in the string at <[a]> to
 	lowercase.
diff --git a/newlib/libc/string/strncasecmp.c b/newlib/libc/string/strncasecmp.c
index 828f30bf9..c06294232 100644
--- a/newlib/libc/string/strncasecmp.c
+++ b/newlib/libc/string/strncasecmp.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	strncasecmp
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <strings.h>
 	int strncasecmp(const char *<[a]>, const char * <[b]>, size_t <[length]>);
 
-TRAD_SYNOPSIS
-	#include <strings.h>
-	int strncasecmp(<[a]>, <[b]>, <[length]>)
-	char *<[a]>;
-	char *<[b]>;
-	size_t <[length]>
-
 DESCRIPTION
 	<<strncasecmp>> compares up to <[length]> characters
 	from the string at <[a]> to the string at <[b]> in a 
diff --git a/newlib/libc/string/strncasecmp_l.c b/newlib/libc/string/strncasecmp_l.c
index 41ae58265..b15c6c545 100644
--- a/newlib/libc/string/strncasecmp_l.c
+++ b/newlib/libc/string/strncasecmp_l.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	strncasecmp_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <strings.h>
 	int strncasecmp_l(const char *<[a]>, const char * <[b]>,
 			  size_t <[length]>, locale_t <[locale]>);
diff --git a/newlib/libc/string/strncat.c b/newlib/libc/string/strncat.c
index 2f5a061bf..761cf87a7 100644
--- a/newlib/libc/string/strncat.c
+++ b/newlib/libc/string/strncat.c
@@ -5,18 +5,11 @@ FUNCTION
 INDEX
 	strncat
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strncat(char *restrict <[dst]>, const char *restrict <[src]>,
                       size_t <[length]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strncat(<[dst]>, <[src]>, <[length]>)
-	char *<[dst]>;
-	char *<[src]>;
-	size_t <[length]>;
-
 DESCRIPTION
 	<<strncat>> appends not more than <[length]> characters from
 	the string pointed to by <[src]> (including the	terminating
diff --git a/newlib/libc/string/strncmp.c b/newlib/libc/string/strncmp.c
index 9801b7d92..3bbe47bcc 100644
--- a/newlib/libc/string/strncmp.c
+++ b/newlib/libc/string/strncmp.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	strncmp
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	int strncmp(const char *<[a]>, const char * <[b]>, size_t <[length]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	int strncmp(<[a]>, <[b]>, <[length]>)
-	char *<[a]>;
-	char *<[b]>;
-	size_t <[length]>
-
 DESCRIPTION
 	<<strncmp>> compares up to <[length]> characters
 	from the string at <[a]> to the string at <[b]>.
diff --git a/newlib/libc/string/strncpy.c b/newlib/libc/string/strncpy.c
index ff5d0d409..83596f408 100644
--- a/newlib/libc/string/strncpy.c
+++ b/newlib/libc/string/strncpy.c
@@ -5,18 +5,11 @@ FUNCTION
 INDEX
 	strncpy
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strncpy(char *restrict <[dst]>, const char *restrict <[src]>,
                       size_t <[length]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strncpy(<[dst]>, <[src]>, <[length]>)
-	char *<[dst]>;
-	char *<[src]>;
-	size_t <[length]>;
-
 DESCRIPTION
 	<<strncpy>> copies not more than <[length]> characters from the
 	the string pointed to by <[src]> (including the terminating
diff --git a/newlib/libc/string/strnlen.c b/newlib/libc/string/strnlen.c
index ed60e9371..07ece0d8b 100644
--- a/newlib/libc/string/strnlen.c
+++ b/newlib/libc/string/strnlen.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strnlen
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	size_t strnlen(const char *<[str]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	size_t strnlen(<[str]>, <[n]>)
-	char *<[src]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	The <<strnlen>> function works out the length of the string
 	starting at <<*<[str]>>> by counting chararacters until it
diff --git a/newlib/libc/string/strnstr.c b/newlib/libc/string/strnstr.c
index 947355fed..cb5f71914 100644
--- a/newlib/libc/string/strnstr.c
+++ b/newlib/libc/string/strnstr.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	strnstr
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	size_t strnstr(const char *<[s1]>, const char *<[s2]>, size_t <[n]>);
 
diff --git a/newlib/libc/string/strpbrk.c b/newlib/libc/string/strpbrk.c
index 5668db395..4507a86a4 100644
--- a/newlib/libc/string/strpbrk.c
+++ b/newlib/libc/string/strpbrk.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strpbrk
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strpbrk(const char *<[s1]>, const char *<[s2]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strpbrk(<[s1]>, <[s2]>)
-	char *<[s1]>;
-	char *<[s2]>;
-
 DESCRIPTION
 	This function locates the first occurence in the string
 	pointed to by <[s1]> of any character in string pointed to by
diff --git a/newlib/libc/string/strrchr.c b/newlib/libc/string/strrchr.c
index 4f903afe2..8217c6df3 100644
--- a/newlib/libc/string/strrchr.c
+++ b/newlib/libc/string/strrchr.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strrchr
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char * strrchr(const char *<[string]>, int <[c]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char * strrchr(<[string]>, <[c]>);
-	char *<[string]>;
-	int *<[c]>;
-
 DESCRIPTION
 	This function finds the last occurence of <[c]> (converted to
 	a char) in the string pointed to by <[string]> (including the
diff --git a/newlib/libc/string/strsignal.c b/newlib/libc/string/strsignal.c
index e32c9a7be..86a0e5dd9 100644
--- a/newlib/libc/string/strsignal.c
+++ b/newlib/libc/string/strsignal.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
 	strsignal
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strsignal(int <[signal]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strsignal(<[signal]>)
-	int <[signal]>;
-
 DESCRIPTION
 <<strsignal>> converts the signal number <[signal]> into a
 string.  If <[signal]> is not a known signal number, the result
diff --git a/newlib/libc/string/strspn.c b/newlib/libc/string/strspn.c
index 32b921b10..3f43b8f82 100644
--- a/newlib/libc/string/strspn.c
+++ b/newlib/libc/string/strspn.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strspn
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	size_t strspn(const char *<[s1]>, const char *<[s2]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	size_t strspn(<[s1]>, <[s2]>)
-	char *<[s1]>;
-	char *<[s2]>;
-
 DESCRIPTION
 	This function computes the length of the initial segment of
 	the string pointed to by <[s1]> which consists entirely of
diff --git a/newlib/libc/string/strstr.c b/newlib/libc/string/strstr.c
index 0480bce0a..288c74466 100644
--- a/newlib/libc/string/strstr.c
+++ b/newlib/libc/string/strstr.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	strstr
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strstr(const char *<[s1]>, const char *<[s2]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strstr(<[s1]>, <[s2]>)
-	char *<[s1]>;
-	char *<[s2]>;
-
 DESCRIPTION
 	Locates the first occurrence in the string pointed to by <[s1]> of
 	the sequence of characters in the string pointed to by <[s2]>
diff --git a/newlib/libc/string/strtok.c b/newlib/libc/string/strtok.c
index 8d07ab387..a24c538e4 100644
--- a/newlib/libc/string/strtok.c
+++ b/newlib/libc/string/strtok.c
@@ -11,7 +11,7 @@ INDEX
 INDEX
 	strsep
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
       	char *strtok(char *restrict <[source]>,
                      const char *restrict <[delimiters]>);
@@ -20,21 +20,6 @@ ANSI_SYNOPSIS
                        char **<[lasts]>);
 	char *strsep(char **<[source_ptr]>, const char *<[delimiters]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strtok(<[source]>, <[delimiters]>);
-	char *<[source]>;
-	char *<[delimiters]>;
-
-	char *strtok_r(<[source]>, <[delimiters]>, <[lasts]>);
-	char *<[source]>;
-	char *<[delimiters]>;
-	char **<[lasts]>;
-
-	char *strsep(<[source_ptr]>, <[delimiters]>);
-	char **<[source_ptr]>;
-	char *<[delimiters]>;
-
 DESCRIPTION
 	The <<strtok>> function is used to isolate sequential tokens in a 
 	null-terminated string, <<*<[source]>>>. These tokens are delimited 
diff --git a/newlib/libc/string/strupr.c b/newlib/libc/string/strupr.c
index 350618e78..dbec79e46 100644
--- a/newlib/libc/string/strupr.c
+++ b/newlib/libc/string/strupr.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
 	strupr
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	char *strupr(char *<[a]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	char *strupr(<[a]>)
-	char *<[a]>;
-
 DESCRIPTION
 	<<strupr>> converts each character in the string at <[a]> to
 	uppercase.
diff --git a/newlib/libc/string/strverscmp.c b/newlib/libc/string/strverscmp.c
index 83f053222..04aa7213a 100644
--- a/newlib/libc/string/strverscmp.c
+++ b/newlib/libc/string/strverscmp.c
@@ -5,18 +5,11 @@ FUNCTION
 INDEX
 	strverscmp
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#define _GNU_SOURCE
 	#include <string.h>
 	int strverscmp(const char *<[a]>, const char *<[b]>);
 
-TRAD_SYNOPSIS
-	#define _GNU_SOURCE
-	#include <string.h>
-	int strverscmp(<[a]>, <[b]>)
-	char *<[a]>;
-	char *<[b]>;
-
 DESCRIPTION
 	<<strverscmp>> compares the string at <[a]> to
 	the string at <[b]> in a version-logical order.
diff --git a/newlib/libc/string/strxfrm.c b/newlib/libc/string/strxfrm.c
index edc1272de..de397210b 100644
--- a/newlib/libc/string/strxfrm.c
+++ b/newlib/libc/string/strxfrm.c
@@ -5,18 +5,11 @@ FUNCTION
 INDEX
 	strxfrm
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	size_t strxfrm(char *restrict <[s1]>, const char *restrict <[s2]>,
                        size_t <[n]>);
 
-TRAD_SYNOPSIS
-	#include <string.h>
-	size_t strxfrm(<[s1]>, <[s2]>, <[n]>);
-	char *<[s1]>;
-	char *<[s2]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	This function transforms the string pointed to by <[s2]> and
 	places the resulting string into the array pointed to by
diff --git a/newlib/libc/string/strxfrm_l.c b/newlib/libc/string/strxfrm_l.c
index a1f4fe295..0ac52432c 100644
--- a/newlib/libc/string/strxfrm_l.c
+++ b/newlib/libc/string/strxfrm_l.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	strxfrm_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <string.h>
 	size_t strxfrm_l(char *restrict <[s1]>, const char *restrict <[s2]>,
                        size_t <[n]>, locale_t <[locale]>);
diff --git a/newlib/libc/string/swab.c b/newlib/libc/string/swab.c
index aee076319..ecf5abed9 100644
--- a/newlib/libc/string/swab.c
+++ b/newlib/libc/string/swab.c
@@ -2,16 +2,10 @@
 FUNCTION
 	<<swab>>---swap adjacent bytes
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <unistd.h>
 	void swab(const void *<[in]>, void *<[out]>, ssize_t <[n]>);
 
-TRAD_SYNOPSIS
-	void swab(<[in]>, <[out]>, <[n]>
-	void *<[in]>;
-	void *<[out]>;
-	ssize_t <[n]>;
-
 DESCRIPTION
 	This function copies <[n]> bytes from the memory region
 	pointed to by <[in]> to the memory region pointed to by
diff --git a/newlib/libc/string/wcpcpy.c b/newlib/libc/string/wcpcpy.c
index e1d9ad073..f0f9c4a08 100644
--- a/newlib/libc/string/wcpcpy.c
+++ b/newlib/libc/string/wcpcpy.c
@@ -2,15 +2,10 @@
 FUNCTION
 	<<wcpcpy>>---copy a wide-character string returning a pointer to its end
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wcpcpy(wchar_t *<[s1]>, const wchar_t *<[s2]>);
 
-TRAD_SYNOPSIS
-	wchar_t *wcpcpy(<[s1]>, <[s2]>
-	wchar_t *__restrict <[s1]>;
-	const wchar_t *__restrict <[s2]>;
-
 DESCRIPTION
 	The <<wcpcpy>> function copies the wide-character string pointed to by
 	<[s2]> (including the terminating null wide-character code) into the
diff --git a/newlib/libc/string/wcpncpy.c b/newlib/libc/string/wcpncpy.c
index 87843b422..8f7ee796f 100644
--- a/newlib/libc/string/wcpncpy.c
+++ b/newlib/libc/string/wcpncpy.c
@@ -2,17 +2,11 @@
 FUNCTION
 	<<wcpncpy>>---copy part of a wide-character string returning a pointer to its end
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wcpncpy(wchar_t *__restrict <[s1]>,
 			 const wchar_t *__restrict <[s2]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	wchar_t *wcpncpy(<[s1]>, <[s2]>, <[n]>
-	wchar_t *__restrict <[s1]>;
-	const wchar_t *__restrict <[s2]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	The <<wcpncpy>> function copies not more than n wide-character codes
 	(wide-character codes that follow a null wide-character code are not
diff --git a/newlib/libc/string/wcscasecmp.c b/newlib/libc/string/wcscasecmp.c
index 05f95619d..26c7cc237 100644
--- a/newlib/libc/string/wcscasecmp.c
+++ b/newlib/libc/string/wcscasecmp.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	wcscasecmp
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcscasecmp(const wchar_t *<[a]>, const wchar_t *<[b]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	int wcscasecmp(<[a]>, <[b]>)
-	wchar_t *<[a]>;
-	wchar_t *<[b]>;
-
 DESCRIPTION
 	<<wcscasecmp>> compares the wide character string at <[a]> to
 	the wide character string at <[b]> in a case-insensitive manner.
diff --git a/newlib/libc/string/wcscasecmp_l.c b/newlib/libc/string/wcscasecmp_l.c
index 329be0529..3c58d8f50 100644
--- a/newlib/libc/string/wcscasecmp_l.c
+++ b/newlib/libc/string/wcscasecmp_l.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	wcscasecmp_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcscasecmp_l(const wchar_t *<[a]>, const wchar_t *<[b]>,
 			 locale_t <[locale]>);
diff --git a/newlib/libc/string/wcscat.c b/newlib/libc/string/wcscat.c
index 11afbe3a6..586512d0f 100644
--- a/newlib/libc/string/wcscat.c
+++ b/newlib/libc/string/wcscat.c
@@ -4,16 +4,11 @@ FUNCTION
 INDEX
 	wcscat
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wcscat(wchar_t *__restrict <[s1]>,
 			const wchar_t *__restrict <[s2]>);
 
-TRAD_SYNOPSIS
-	wchar_t *wcscat(<[s1]>, <[s2]>
-	wchar_t *__restrict <[s1]>;
-	const wchar_t *__restrict <[s2]>;
-
 DESCRIPTION
 	The <<wcscat>> function appends a copy of the wide-character string
 	pointed to by <[s2]> (including the terminating null wide-character
diff --git a/newlib/libc/string/wcschr.c b/newlib/libc/string/wcschr.c
index fb35d1f42..c705a08d5 100644
--- a/newlib/libc/string/wcschr.c
+++ b/newlib/libc/string/wcschr.c
@@ -2,15 +2,10 @@
 FUNCTION
 	<<wcschr>>---wide-character string scanning operation
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wcschr(const wchar_t *<[s]>, wchar_t <[c]>);
 
-TRAD_SYNOPSIS
-	wchar_t *wcschr(<[s]>, <[c]>
-	const wchar_t *<[s]>;
-	wchar_t <[c]>;
-
 DESCRIPTION
 	The <<wcschr>> function locates the first occurrence of <[c]> in the
 	wide-character string pointed to by <[s]>. The value of <[c]> must be a
diff --git a/newlib/libc/string/wcscmp.c b/newlib/libc/string/wcscmp.c
index 03089620d..8155742b8 100644
--- a/newlib/libc/string/wcscmp.c
+++ b/newlib/libc/string/wcscmp.c
@@ -2,14 +2,10 @@
 FUNCTION
 	<<wcscmp>>---compare two wide-character strings
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcscmp(const wchar_t *<[s1]>, *<[s2]>);
 
-TRAD_SYNOPSIS
-	int wcscmp(<[s1]>, <[s2]>
-	const wchar_t *<[s1]>, <[s2]>;
-
 DESCRIPTION
 	The <<wcscmp>> function compares the wide-character string pointed to
 	by <[s1]> to the wide-character string pointed to by <[s2]>.
diff --git a/newlib/libc/string/wcscoll.c b/newlib/libc/string/wcscoll.c
index 726f4ca0b..020f7e57f 100644
--- a/newlib/libc/string/wcscoll.c
+++ b/newlib/libc/string/wcscoll.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	wcscoll
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcscoll(const wchar_t *<[stra]>, const wchar_t * <[strb]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	int wcscoll(<[stra]>, <[strb]>)
-	wchar_t *<[stra]>;
-	wchar_t *<[strb]>;
-
 DESCRIPTION
 	<<wcscoll>> compares the wide-character string pointed to by
 	<[stra]> to the wide-character string pointed to by <[strb]>,
diff --git a/newlib/libc/string/wcscoll_l.c b/newlib/libc/string/wcscoll_l.c
index e71d02a75..2c9df5244 100644
--- a/newlib/libc/string/wcscoll_l.c
+++ b/newlib/libc/string/wcscoll_l.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	wcscoll_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcscoll_l(const wchar_t *<[stra]>, const wchar_t * <[strb]>,
 		      locale_t <[locale]>);
diff --git a/newlib/libc/string/wcscpy.c b/newlib/libc/string/wcscpy.c
index ed8b484bc..79f065ca0 100644
--- a/newlib/libc/string/wcscpy.c
+++ b/newlib/libc/string/wcscpy.c
@@ -2,16 +2,11 @@
 FUNCTION
 	<<wcscpy>>---copy a wide-character string 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wcscpy(wchar_t *__restrict <[s1]>,
 			const wchar_t *__restrict <[s2]>);
 
-TRAD_SYNOPSIS
-	wchar_t *wcscpy(<[s1]>, <[s2]>
-	wchar_t *__restrict <[s1]>;
-	const wchar_t *__restrict <[s2]>;
-
 DESCRIPTION
 	The <<wcscpy>> function copies the wide-character string pointed to by
 	<[s2]> (including the terminating null wide-character code) into the
diff --git a/newlib/libc/string/wcscspn.c b/newlib/libc/string/wcscspn.c
index 5ab965690..7be5f5eee 100644
--- a/newlib/libc/string/wcscspn.c
+++ b/newlib/libc/string/wcscspn.c
@@ -2,15 +2,10 @@
 FUNCTION
 	<<wcscspn>>---get length of a complementary wide substring 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	size_t wcscspn(const wchar_t *<[s]>, wchar_t *<[set]>);
 
-TRAD_SYNOPSIS
-	size_t wcscspn(<[s]>, <[set]>
-	const wchar_t *<[s]>;
-	const wchar_t *<[set]>;
-
 DESCRIPTION
 	The <<wcscspn>> function computes the length of the maximum initial
 	segment of the wide-character string pointed to by <[s]> which consists
diff --git a/newlib/libc/string/wcsdup.c b/newlib/libc/string/wcsdup.c
index 90be68e02..e0e97c0bd 100644
--- a/newlib/libc/string/wcsdup.c
+++ b/newlib/libc/string/wcsdup.c
@@ -7,19 +7,13 @@ INDEX
 INDEX
 	_wcsdup_r
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wcsdup(const wchar_t *<[str]>);
 
 	#include <wchar.h>
 	wchar_t *_wcsdup_r(struct _reent *<[ptr]>, const wchar_t *<[str]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	wchar_t *wcsdup(<[ptr]>, <[str]>)
-	struct _reent *<[ptr]>;
-	wchar_t *<[str]>;
-
 DESCRIPTION
 	<<wcsdup>> allocates a new wide character string using <<malloc>>,
 	and copies the content of the argument <[str]> into the newly
diff --git a/newlib/libc/string/wcslcat.c b/newlib/libc/string/wcslcat.c
index 75c085b5b..2caa58820 100644
--- a/newlib/libc/string/wcslcat.c
+++ b/newlib/libc/string/wcslcat.c
@@ -2,17 +2,10 @@
 FUNCTION
 	<<wcslcat>>---concatenate wide-character strings to specified length
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	size_t wcslcat(wchar_t *<[dst]>, const wchar_t *<[src]>, size_t <[siz]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	size_t wcslcat(<[dst]>, <[src]>, <[siz]>
-	wchar_t *<[dst]>;
-	const wchar_t *<[src]>;
-	size_t <[siz]>;
-
 DESCRIPTION
 	The <<wcslcat>> function appends wide characters from <[src]> to
 	end of the <[dst]> wide-character string so that the resultant
diff --git a/newlib/libc/string/wcslcpy.c b/newlib/libc/string/wcslcpy.c
index 21c030b38..34352fb9d 100644
--- a/newlib/libc/string/wcslcpy.c
+++ b/newlib/libc/string/wcslcpy.c
@@ -2,17 +2,10 @@
 FUNCTION
 	<<wcslcpy>>---copy a wide-character string to specified length
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	size_t wcslcpy(wchar_t *<[dst]>, const wchar_t *<[src]>, size_t <[siz]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	size_t wcslcpy(<[dst]>, <[src]>, <[siz]>)
-	wchar_t *<[dst]>;
-	const wchar_t *<[src]>;
-	size_t <[siz]>;
-
 DESCRIPTION
 	<<wcslcpy>> copies wide characters from <[src]> to <[dst]>
 	such that up to <[siz]> - 1 characters are copied.  A
diff --git a/newlib/libc/string/wcslen.c b/newlib/libc/string/wcslen.c
index d671551af..ebef17285 100644
--- a/newlib/libc/string/wcslen.c
+++ b/newlib/libc/string/wcslen.c
@@ -2,14 +2,10 @@
 FUNCTION
 	<<wcslen>>---get wide-character string length 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	size_t wcslen(const wchar_t *<[s]>);
 
-TRAD_SYNOPSIS
-	size_t wcslen(<[s]>
-	const wchar_t *<[s]>;
-
 DESCRIPTION
 	The <<wcslen>> function computes the number of wide-character codes
 	in the wide-character string to which <[s]> points, not including the
diff --git a/newlib/libc/string/wcsncasecmp.c b/newlib/libc/string/wcsncasecmp.c
index c6fc08ef6..a339bbfa5 100644
--- a/newlib/libc/string/wcsncasecmp.c
+++ b/newlib/libc/string/wcsncasecmp.c
@@ -5,17 +5,10 @@ FUNCTION
 INDEX
 	wcsncasecmp
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcsncasecmp(const wchar_t *<[a]>, const wchar_t * <[b]>, size_t <[length]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	int wcsncasecmp(<[a]>, <[b]>, <[length]>)
-	wchar_t *<[a]>;
-	wchar_t *<[b]>;
-	size_t <[length]>
-
 DESCRIPTION
 	<<wcsncasecmp>> compares up to <[length]> wide characters
 	from the string at <[a]> to the string at <[b]> in a 
diff --git a/newlib/libc/string/wcsncasecmp_l.c b/newlib/libc/string/wcsncasecmp_l.c
index 4b360b802..f276635d7 100644
--- a/newlib/libc/string/wcsncasecmp_l.c
+++ b/newlib/libc/string/wcsncasecmp_l.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	wcsncasecmp_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcsncasecmp_l(const wchar_t *<[a]>, const wchar_t * <[b]>,
 			  size_t <[length]>, locale_t <[locale]>);
diff --git a/newlib/libc/string/wcsncat.c b/newlib/libc/string/wcsncat.c
index b73f6e93e..34a694790 100644
--- a/newlib/libc/string/wcsncat.c
+++ b/newlib/libc/string/wcsncat.c
@@ -2,17 +2,11 @@
 FUNCTION
 	<<wcsncat>>---concatenate part of two wide-character strings 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wcsncat(wchar_t *__restrict <[s1]>,
 			const wchar_t *__restrict <[s2]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	wchar_t *wcsncat(<[s1]>, <[s2]>, <[n]>
-	wchar_t *__restrict <[s1]>;
-	const wchar_t *__restrict <[s2]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	The <<wcsncat>> function appends not more than <[n]> wide-character
 	codes (a null wide-character code and wide-character codes that follow
diff --git a/newlib/libc/string/wcsncmp.c b/newlib/libc/string/wcsncmp.c
index 1897f5c4e..72c5d1291 100644
--- a/newlib/libc/string/wcsncmp.c
+++ b/newlib/libc/string/wcsncmp.c
@@ -2,16 +2,10 @@
 FUNCTION
 	<<wcsncmp>>---compare part of two wide-character strings 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcsncmp(const wchar_t *<[s1]>, const wchar_t *<[s2]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	int wcsncmp(<[s1]>, <[s2]>, <[n]>
-	const wchar_t *<[s1]>;
-	const wchar_t *<[s2]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	The <<wcsncmp>> function compares not more than <[n]> wide-character
 	codes (wide-character codes that follow a null wide-character code are
diff --git a/newlib/libc/string/wcsncpy.c b/newlib/libc/string/wcsncpy.c
index 3d6d70b7d..793e522da 100644
--- a/newlib/libc/string/wcsncpy.c
+++ b/newlib/libc/string/wcsncpy.c
@@ -2,17 +2,11 @@
 FUNCTION
 	<<wcsncpy>>---copy part of a wide-character string 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wcsncpy(wchar_t *__restrict <[s1]>,
 			const wchar_t *__restrict <[s2]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	wchar_t *wcsncpy(<[s1]>, <[s2]>, <[n]>
-	wchar_t *__restrict <[s1]>;
-	const wchar_t *__restrict <[s2]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	The <<wcsncpy>> function copies not more than <[n]> wide-character codes
 	(wide-character codes that follow a null wide-character code are not
diff --git a/newlib/libc/string/wcsnlen.c b/newlib/libc/string/wcsnlen.c
index 9d680d603..77aad65a3 100644
--- a/newlib/libc/string/wcsnlen.c
+++ b/newlib/libc/string/wcsnlen.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
         wcsnlen
 
-ANSI_SYNOPSIS
+SYNOPSIS
         #include <wchar.h>
         size_t wcsnlen(const wchar_t *<[s]>, size_t <[maxlen]>);
 
-TRAD_SYNOPSIS
-        #include <wchar.h>
-        size_t wcsnlen(<[s]>, <[maxlen]>)
-        wchar_t *<[s]>;
-        size_t <[maxlen]>;
-
 DESCRIPTION
         The <<wcsnlen>> function computes the number of wide-character codes
         in the wide-character string pointed to by <[s]> not including the
diff --git a/newlib/libc/string/wcspbrk.c b/newlib/libc/string/wcspbrk.c
index fbdf9e49c..55401f1a9 100644
--- a/newlib/libc/string/wcspbrk.c
+++ b/newlib/libc/string/wcspbrk.c
@@ -2,15 +2,10 @@
 FUNCTION
 	<<wcspbrk>>----scan wide-character string for a wide-character code
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wcspbrk(const wchar_t *<[s]>, const wchar_t *<[set]>);
 
-TRAD_SYNOPSIS
-	wchar_t *wcspbrk(<[s]>, <[set]>
-	const wchar_t *<[s]>;
-	const wchar_t *<[set]>;
-
 DESCRIPTION
 	The <<wcspbrk>> function locates the first occurrence in the
 	wide-character string pointed to by <[s]> of any wide-character code
diff --git a/newlib/libc/string/wcsrchr.c b/newlib/libc/string/wcsrchr.c
index 495d95a15..b99cb9760 100644
--- a/newlib/libc/string/wcsrchr.c
+++ b/newlib/libc/string/wcsrchr.c
@@ -2,16 +2,10 @@
 FUNCTION
 	<<wcsrchr>>---wide-character string scanning operation 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wcsrchr(const wchar_t *<[s]>, wchar_t <[c]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	wchar_t *wcsrchr(<[s]>, <[c]>
-	const wchar_t *<[s]>;
-	wchar_t <[c]>;
-
 DESCRIPTION
 	The <<wcsrchr>> function locates the last occurrence of <[c]> in the
 	wide-character string pointed to by <[s]>. The value of <[c]> must be a
diff --git a/newlib/libc/string/wcsspn.c b/newlib/libc/string/wcsspn.c
index e83f42f4f..652d971dd 100644
--- a/newlib/libc/string/wcsspn.c
+++ b/newlib/libc/string/wcsspn.c
@@ -2,15 +2,10 @@
 FUNCTION
 	<<wcsspn>>---get length of a wide substring 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	size_t wcsspn(const wchar_t *<[s]>, const wchar_t *<[set]>);
 
-TRAD_SYNOPSIS
-	size_t wcsspn(<[s]>, <[set]>
-	const wchar_t *<[s]>;
-	const wchar_t *<[set]>;
-
 DESCRIPTION
 	The <<wcsspn>> function computes the length of the maximum initial
 	segment of the wide-character string pointed to by <[s]> which consists
diff --git a/newlib/libc/string/wcsstr.c b/newlib/libc/string/wcsstr.c
index 6e891120d..bb6e3eda8 100644
--- a/newlib/libc/string/wcsstr.c
+++ b/newlib/libc/string/wcsstr.c
@@ -2,16 +2,11 @@
 FUNCTION
 	<<wcsstr>>---find a wide-character substring 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wcsstr(const wchar_t *__restrict <[big]>,
 			const wchar_t *__restrict <[little]>);
 
-TRAD_SYNOPSIS
-	wchar_t *wcsstr(<[big]>, <[little]>
-	const wchar_t *__restrict <[big]>;
-	const wchar_t *__restrict <[little]>;
-
 DESCRIPTION
 	The <<wcsstr>> function locates the first occurrence in the
 	wide-character string pointed to by <[big]> of the sequence of
diff --git a/newlib/libc/string/wcstok.c b/newlib/libc/string/wcstok.c
index 144b33efd..091f4bd3e 100644
--- a/newlib/libc/string/wcstok.c
+++ b/newlib/libc/string/wcstok.c
@@ -6,19 +6,12 @@ INDEX
 	wcstok
 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
       	wchar_t *wcstok(wchar_t *__restrict <[source]>,
       			const wchar_t *__restrict <[delimiters]>,
 			wchar_t **__restrict <[lasts]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	wchar_t *wcstok(<[source]>, <[delimiters]>, <[lasts]>);
-	wchar_t *__restrict <[source]>;
-	wchar_t *__restrict <[delimiters]>;
-	wchar_t **__restrict <[lasts]>;
-
 DESCRIPTION
 	The <<wcstok>> function is the wide-character equivalent of the
 	<<strtok_r>> function (which in turn is the same as the <<strtok>>
diff --git a/newlib/libc/string/wcswidth.c b/newlib/libc/string/wcswidth.c
index 6c0efe63f..4cb8fa812 100644
--- a/newlib/libc/string/wcswidth.c
+++ b/newlib/libc/string/wcswidth.c
@@ -5,16 +5,10 @@ FUNCTION
 INDEX
 	wcswidth
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcswidth(const wchar_t *<[pwcs]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	int wcswidth(<[pwcs]>, <[n]>)
-	wchar_t *<[wc]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	The <<wcswidth>> function shall determine the number of column
 	positions required for <[n]> wide-character codes (or fewer than <[n]>
diff --git a/newlib/libc/string/wcsxfrm.c b/newlib/libc/string/wcsxfrm.c
index d267d274f..e11516ff4 100644
--- a/newlib/libc/string/wcsxfrm.c
+++ b/newlib/libc/string/wcsxfrm.c
@@ -5,18 +5,11 @@ FUNCTION
 INDEX
 	wcsxfrm
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcsxfrm(wchar_t *__restrict <[stra]>,
 		    const wchar_t *__restrict <[strb]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	size_t wcsxfrm(<[stra]>, <[strb]>, <[n]>)
-	wchar_t *__restrict <[stra]>;
-	wchar_t *__restrict <[strb]>;
-	size_t   <[n]>
-
 DESCRIPTION
 	<<wcsxfrm>> transforms the wide-character string pointed to by
 	<[strb]> to the wide-character string pointed to by <[stra]>,
diff --git a/newlib/libc/string/wcsxfrm_l.c b/newlib/libc/string/wcsxfrm_l.c
index c44b0d639..bfc4ae56b 100644
--- a/newlib/libc/string/wcsxfrm_l.c
+++ b/newlib/libc/string/wcsxfrm_l.c
@@ -5,7 +5,7 @@ FUNCTION
 INDEX
 	wcsxfrm_l
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcsxfrm_l(wchar_t *__restrict <[stra]>,
 		      const wchar_t *__restrict <[strb]>, size_t <[n]>,
diff --git a/newlib/libc/string/wcwidth.c b/newlib/libc/string/wcwidth.c
index ac5c47f67..acb15d0dc 100644
--- a/newlib/libc/string/wcwidth.c
+++ b/newlib/libc/string/wcwidth.c
@@ -5,15 +5,10 @@ FUNCTION
 INDEX
 	wcwidth
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wcwidth(const wchar_t <[wc]>);
 
-TRAD_SYNOPSIS
-	#include <wchar.h>
-	int wcwidth(<[wc]>)
-	wchar_t *<[wc]>;
-
 DESCRIPTION
 	The <<wcwidth>> function shall determine the number of column
 	positions required for the wide character <[wc]>. The application
diff --git a/newlib/libc/string/wmemchr.c b/newlib/libc/string/wmemchr.c
index b582b8948..097e47a03 100644
--- a/newlib/libc/string/wmemchr.c
+++ b/newlib/libc/string/wmemchr.c
@@ -3,16 +3,10 @@ FUNCTION
 	<<wmemchr>>---find a wide character in memory
  
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t	*wmemchr(const wchar_t *<[s]>, wchar_t <[c]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	wchar_t	*wmemchr(<[s]>, <[c]>, <[n]>
-	const wchar_t *<[s]>;
-	wchar_t <[c]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	The <<wmemchr>> function locates the first occurrence of <[c]> in the
 	initial <[n]> wide characters of the object pointed to be <[s]>. This
diff --git a/newlib/libc/string/wmemcmp.c b/newlib/libc/string/wmemcmp.c
index af9ee3207..a01bf32f1 100644
--- a/newlib/libc/string/wmemcmp.c
+++ b/newlib/libc/string/wmemcmp.c
@@ -2,16 +2,10 @@
 FUNCTION
 	<<wmemcmp>>---compare wide characters in memory 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	int wmemcmp(const wchar_t *<[s1]>, const wchar_t *<[s2]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	int wmemcmp(<[s1]>, <[s2]>, <[n]>
-	const wchar_t *<[s1]>;
-	const wchar_t *<[s2]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	The <<wmemcmp>> function compares the first <[n]> wide characters of the
 	object pointed to by <[s1]> to the first <[n]> wide characters of the
diff --git a/newlib/libc/string/wmemcpy.c b/newlib/libc/string/wmemcpy.c
index a57d6a512..0e8d6e494 100644
--- a/newlib/libc/string/wmemcpy.c
+++ b/newlib/libc/string/wmemcpy.c
@@ -2,17 +2,11 @@
 FUNCTION
 	<<wmemcpy>>---copy wide characters in memory 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wmemcpy(wchar_t *__restrict <[d]>,
 			 const wchar_t *__restrict <[s]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	wchar_t *wmemcpy(<[d]>, <[s]>, <[n]>
-	wchar_t *__restrict <[d]>;
-	const wchar_t *__restrict <[s]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	The <<wmemcpy>> function copies <[n]> wide characters from the object
 	pointed to by <[s]> to the object pointed to be <[d]>. This function
diff --git a/newlib/libc/string/wmemmove.c b/newlib/libc/string/wmemmove.c
index e20a26ae9..18d2a2bfd 100644
--- a/newlib/libc/string/wmemmove.c
+++ b/newlib/libc/string/wmemmove.c
@@ -2,16 +2,10 @@
 FUNCTION
 	<<wmemmove>>---copy wide characters in memory with overlapping areas 
 
-ANSI_SYNOPSIS
+SYNOPSIS
 	#include <wchar.h>
 	wchar_t *wmemmove(wchar_t *<[d]>, const wchar_t *<[s]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-	wchar_t *wmemmove(<[d]>, <[s]>, <[n]>
-	wchar_t *<[d]>;
-	const wchar_t *<[s]>;
-	size_t <[n]>;
-
 DESCRIPTION
 	The <<wmemmove>> function copies <[n]> wide characters from the object
 	pointed to by <[s]> to the object pointed to by <[d]>. Copying takes
diff --git a/newlib/libc/string/wmemset.c b/newlib/libc/string/wmemset.c
index 0af6f91d5..377fbee1f 100644
--- a/newlib/libc/string/wmemset.c
+++ b/newlib/libc/string/wmemset.c
@@ -2,16 +2,10 @@
 FUNCTION
        <<wmemset>>---set wide characters in memory 
 
-ANSI_SYNOPSIS
+SYNOPSIS
        #include <wchar.h>
        wchar_t *wmemset(wchar_t *<[s]>, wchar_t <[c]>, size_t <[n]>);
 
-TRAD_SYNOPSIS
-       wchar_t *wmemset(<[s]>, <[c]>, <[n]>
-       wchar_t *<[s]>;
-       wchar_t <[c]>;
-       size_t <[n]>;
-
 DESCRIPTION
        The <<wmemset>> function copies the value of <[c]> into each of the
        first <[n]> wide characters of the object pointed to by <[s]>.  This
-- 
2.15.0

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PATCH 00/24] Remove TRAD_SYNOPSIS
  2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
                   ` (23 preceding siblings ...)
  2017-11-30 10:59 ` [PATCH 15/24] string: " Yaakov Selkowitz
@ 2017-11-30 16:11 ` Craig Howland
  2017-11-30 17:40   ` Corinna Vinschen
  24 siblings, 1 reply; 32+ messages in thread
From: Craig Howland @ 2017-11-30 16:11 UTC (permalink / raw)
  To: newlib

On 11/30/2017 05:28 AM, Yaakov Selkowitz wrote:
> This completely removes TRAD_SYNOPSIS and renames ANSI_SYNOPSIS to
> SYNOPSIS throughout Newlib's docuemntation.  I'm just not sure about
> the doc tools themselves; should support for both of those names also
> be removed?
>
A thought is to leave them in the doc tools.  Since the tools treat SYNOPSIS and 
ANSI_SYNOPSIS the same, they'll work the same with or without the present 
change.  Leaving in TRAD_SYNOPSIS as something to be ignored plus keeping 
ANSI_SYNOPSIS as working could possibly help out people that have added their 
own stuff, not forcing them to make these same changes.  (Probably a very small 
to non-existent set of people, but it is difficult to know if there are any or 
not.)  It doesn't seem to hurt anything to leave them, although adding a note 
that they have been retained for legacy purposes might be a good idea.

Thank you for doing this.  I've thought of doing this for a long while, but have 
never had the time to actually go ahead and do it.

Craig

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PATCH 00/24] Remove TRAD_SYNOPSIS
  2017-11-30 16:11 ` [PATCH 00/24] Remove TRAD_SYNOPSIS Craig Howland
@ 2017-11-30 17:40   ` Corinna Vinschen
  2017-11-30 18:05     ` Craig Howland
  0 siblings, 1 reply; 32+ messages in thread
From: Corinna Vinschen @ 2017-11-30 17:40 UTC (permalink / raw)
  To: newlib

[-- Attachment #1: Type: text/plain, Size: 1229 bytes --]

On Nov 30 10:53, Craig Howland wrote:
> On 11/30/2017 05:28 AM, Yaakov Selkowitz wrote:
> > This completely removes TRAD_SYNOPSIS and renames ANSI_SYNOPSIS to
> > SYNOPSIS throughout Newlib's docuemntation.  I'm just not sure about
> > the doc tools themselves; should support for both of those names also
> > be removed?
> > 
> A thought is to leave them in the doc tools.  Since the tools treat SYNOPSIS
> and ANSI_SYNOPSIS the same, they'll work the same with or without the
> present change.  Leaving in TRAD_SYNOPSIS as something to be ignored plus
> keeping ANSI_SYNOPSIS as working could possibly help out people that have
> added their own stuff, not forcing them to make these same changes. 
> (Probably a very small to non-existent set of people, but it is difficult to
> know if there are any or not.)  It doesn't seem to hurt anything to leave
> them, although adding a note that they have been retained for legacy
> purposes might be a good idea.

Wouldn't it be better in the long run to fail on seeing a TRAD_SYNOPSIS
or ANSI_SYNOPSIS and tell the dev to remove the first and to rename the
latter?  It's not very hard to fix,

Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PATCH 00/24] Remove TRAD_SYNOPSIS
  2017-11-30 17:40   ` Corinna Vinschen
@ 2017-11-30 18:05     ` Craig Howland
  2017-11-30 21:39       ` Corinna Vinschen
  0 siblings, 1 reply; 32+ messages in thread
From: Craig Howland @ 2017-11-30 18:05 UTC (permalink / raw)
  To: newlib

On 11/30/2017 11:11 AM, Corinna Vinschen wrote:
> On Nov 30 10:53, Craig Howland wrote:
>> On 11/30/2017 05:28 AM, Yaakov Selkowitz wrote:
>>> This completely removes TRAD_SYNOPSIS and renames ANSI_SYNOPSIS to
>>> SYNOPSIS throughout Newlib's docuemntation.  I'm just not sure about
>>> the doc tools themselves; should support for both of those names also
>>> be removed?
>>>
>> A thought is to leave them in the doc tools.  Since the tools treat SYNOPSIS
>> and ANSI_SYNOPSIS the same, they'll work the same with or without the
>> present change.  Leaving in TRAD_SYNOPSIS as something to be ignored plus
>> keeping ANSI_SYNOPSIS as working could possibly help out people that have
>> added their own stuff, not forcing them to make these same changes.
>> (Probably a very small to non-existent set of people, but it is difficult to
>> know if there are any or not.)  It doesn't seem to hurt anything to leave
>> them, although adding a note that they have been retained for legacy
>> purposes might be a good idea.
> Wouldn't it be better in the long run to fail on seeing a TRAD_SYNOPSIS
> or ANSI_SYNOPSIS and tell the dev to remove the first and to rename the
> latter?  It's not very hard to fix,
>
> Corinna
>
It depends on your point of view.  I agree that it is easy to fix, but the idea 
of keeping it was thinking that if I happened to have files that suddenly became 
obsolete and I had to spend to to alter the word I would be annoyed at the waste 
of time:  discover the problem, track down how to fix it, then do it.  Figuring 
it out would likely be the longest.  So either way works, but I gave it as an 
idea as perhaps avoiding some frustration that could be avoided. Your idea for a 
direct message that those two names are now no good it would eliminate the 
track-down step I had thought of, and would make it quite a bit better.
Craig

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PATCH 00/24] Remove TRAD_SYNOPSIS
  2017-11-30 18:05     ` Craig Howland
@ 2017-11-30 21:39       ` Corinna Vinschen
  2017-12-01  9:39         ` Yaakov Selkowitz
  0 siblings, 1 reply; 32+ messages in thread
From: Corinna Vinschen @ 2017-11-30 21:39 UTC (permalink / raw)
  To: newlib

[-- Attachment #1: Type: text/plain, Size: 2036 bytes --]

On Nov 30 12:40, Craig Howland wrote:
> On 11/30/2017 11:11 AM, Corinna Vinschen wrote:
> > On Nov 30 10:53, Craig Howland wrote:
> > > On 11/30/2017 05:28 AM, Yaakov Selkowitz wrote:
> > > > This completely removes TRAD_SYNOPSIS and renames ANSI_SYNOPSIS to
> > > > SYNOPSIS throughout Newlib's docuemntation.  I'm just not sure about
> > > > the doc tools themselves; should support for both of those names also
> > > > be removed?
> > > > 
> > > A thought is to leave them in the doc tools.  Since the tools treat SYNOPSIS
> > > and ANSI_SYNOPSIS the same, they'll work the same with or without the
> > > present change.  Leaving in TRAD_SYNOPSIS as something to be ignored plus
> > > keeping ANSI_SYNOPSIS as working could possibly help out people that have
> > > added their own stuff, not forcing them to make these same changes.
> > > (Probably a very small to non-existent set of people, but it is difficult to
> > > know if there are any or not.)  It doesn't seem to hurt anything to leave
> > > them, although adding a note that they have been retained for legacy
> > > purposes might be a good idea.
> > Wouldn't it be better in the long run to fail on seeing a TRAD_SYNOPSIS
> > or ANSI_SYNOPSIS and tell the dev to remove the first and to rename the
> > latter?  It's not very hard to fix,
> > 
> > Corinna
> > 
> It depends on your point of view.  I agree that it is easy to fix, but the
> idea of keeping it was thinking that if I happened to have files that
> suddenly became obsolete and I had to spend to to alter the word I would be
> annoyed at the waste of time:  discover the problem, track down how to fix
> it, then do it.  Figuring it out would likely be the longest.

That was the idea: The doc building process should not simply fail but
explain what's wrong and just print a matching message during build:

  "bla bla, outdated, remove TRAD_SYNOPSIS and rename ANSI_SYNOPSIS
   to SYNOPSIS, bla, bla"


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PATCH 00/24] Remove TRAD_SYNOPSIS
  2017-11-30 21:39       ` Corinna Vinschen
@ 2017-12-01  9:39         ` Yaakov Selkowitz
  2017-12-01  9:39           ` Corinna Vinschen
  0 siblings, 1 reply; 32+ messages in thread
From: Yaakov Selkowitz @ 2017-12-01  9:39 UTC (permalink / raw)
  To: newlib


[-- Attachment #1.1: Type: text/plain, Size: 2401 bytes --]

On 2017-11-30 12:05, Corinna Vinschen wrote:
> On Nov 30 12:40, Craig Howland wrote:
>> On 11/30/2017 11:11 AM, Corinna Vinschen wrote:
>>> On Nov 30 10:53, Craig Howland wrote:
>>>> On 11/30/2017 05:28 AM, Yaakov Selkowitz wrote:
>>>>> This completely removes TRAD_SYNOPSIS and renames ANSI_SYNOPSIS to
>>>>> SYNOPSIS throughout Newlib's docuemntation.  I'm just not sure about
>>>>> the doc tools themselves; should support for both of those names also
>>>>> be removed?
>>>>>
>>>> A thought is to leave them in the doc tools.  Since the tools treat SYNOPSIS
>>>> and ANSI_SYNOPSIS the same, they'll work the same with or without the
>>>> present change.  Leaving in TRAD_SYNOPSIS as something to be ignored plus
>>>> keeping ANSI_SYNOPSIS as working could possibly help out people that have
>>>> added their own stuff, not forcing them to make these same changes.
>>>> (Probably a very small to non-existent set of people, but it is difficult to
>>>> know if there are any or not.)  It doesn't seem to hurt anything to leave
>>>> them, although adding a note that they have been retained for legacy
>>>> purposes might be a good idea.
>>> Wouldn't it be better in the long run to fail on seeing a TRAD_SYNOPSIS
>>> or ANSI_SYNOPSIS and tell the dev to remove the first and to rename the
>>> latter?  It's not very hard to fix,
>>>
>> It depends on your point of view.  I agree that it is easy to fix, but the
>> idea of keeping it was thinking that if I happened to have files that
>> suddenly became obsolete and I had to spend to to alter the word I would be
>> annoyed at the waste of time:  discover the problem, track down how to fix
>> it, then do it.  Figuring it out would likely be the longest.
> 
> That was the idea: The doc building process should not simply fail but
> explain what's wrong and just print a matching message during build:
> 
>   "bla bla, outdated, remove TRAD_SYNOPSIS and rename ANSI_SYNOPSIS
>    to SYNOPSIS, bla, bla"

Apparently error messages during doc building are printed to a
non-obvious location, meaning these probably wouldn't be seen.  Simply
removing any mention of these tags apparently causes them to be ignored.
 Is there a way to raise an error when these tags are found?

If there is no simple solution to this, perhaps we should consider this
separately from the existing patchset.

-- 
Yaakov


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PATCH 00/24] Remove TRAD_SYNOPSIS
  2017-12-01  9:39         ` Yaakov Selkowitz
@ 2017-12-01  9:39           ` Corinna Vinschen
  2017-12-04 20:55             ` Jon Turney
  0 siblings, 1 reply; 32+ messages in thread
From: Corinna Vinschen @ 2017-12-01  9:39 UTC (permalink / raw)
  To: newlib

[-- Attachment #1: Type: text/plain, Size: 2621 bytes --]

On Nov 30 18:08, Yaakov Selkowitz wrote:
> On 2017-11-30 12:05, Corinna Vinschen wrote:
> > On Nov 30 12:40, Craig Howland wrote:
> >> On 11/30/2017 11:11 AM, Corinna Vinschen wrote:
> >>> On Nov 30 10:53, Craig Howland wrote:
> >>>> On 11/30/2017 05:28 AM, Yaakov Selkowitz wrote:
> >>>>> This completely removes TRAD_SYNOPSIS and renames ANSI_SYNOPSIS to
> >>>>> SYNOPSIS throughout Newlib's docuemntation.  I'm just not sure about
> >>>>> the doc tools themselves; should support for both of those names also
> >>>>> be removed?
> >>>>>
> >>>> A thought is to leave them in the doc tools.  Since the tools treat SYNOPSIS
> >>>> and ANSI_SYNOPSIS the same, they'll work the same with or without the
> >>>> present change.  Leaving in TRAD_SYNOPSIS as something to be ignored plus
> >>>> keeping ANSI_SYNOPSIS as working could possibly help out people that have
> >>>> added their own stuff, not forcing them to make these same changes.
> >>>> (Probably a very small to non-existent set of people, but it is difficult to
> >>>> know if there are any or not.)  It doesn't seem to hurt anything to leave
> >>>> them, although adding a note that they have been retained for legacy
> >>>> purposes might be a good idea.
> >>> Wouldn't it be better in the long run to fail on seeing a TRAD_SYNOPSIS
> >>> or ANSI_SYNOPSIS and tell the dev to remove the first and to rename the
> >>> latter?  It's not very hard to fix,
> >>>
> >> It depends on your point of view.  I agree that it is easy to fix, but the
> >> idea of keeping it was thinking that if I happened to have files that
> >> suddenly became obsolete and I had to spend to to alter the word I would be
> >> annoyed at the waste of time:  discover the problem, track down how to fix
> >> it, then do it.  Figuring it out would likely be the longest.
> > 
> > That was the idea: The doc building process should not simply fail but
> > explain what's wrong and just print a matching message during build:
> > 
> >   "bla bla, outdated, remove TRAD_SYNOPSIS and rename ANSI_SYNOPSIS
> >    to SYNOPSIS, bla, bla"
> 
> Apparently error messages during doc building are printed to a
> non-obvious location, meaning these probably wouldn't be seen.  Simply
> removing any mention of these tags apparently causes them to be ignored.
>  Is there a way to raise an error when these tags are found?
> 
> If there is no simple solution to this, perhaps we should consider this
> separately from the existing patchset.

Makes sense.  ACK to the series.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 32+ messages in thread

* Re: [PATCH 00/24] Remove TRAD_SYNOPSIS
  2017-12-01  9:39           ` Corinna Vinschen
@ 2017-12-04 20:55             ` Jon Turney
  0 siblings, 0 replies; 32+ messages in thread
From: Jon Turney @ 2017-12-04 20:55 UTC (permalink / raw)
  To: newlib

On 01/12/2017 09:38, Corinna Vinschen wrote:
> On Nov 30 18:08, Yaakov Selkowitz wrote:
>> On 2017-11-30 12:05, Corinna Vinschen wrote:
>>> On Nov 30 12:40, Craig Howland wrote:
>>>> On 11/30/2017 11:11 AM, Corinna Vinschen wrote:
>>>>> On Nov 30 10:53, Craig Howland wrote:
>>>>>> On 11/30/2017 05:28 AM, Yaakov Selkowitz wrote:
>>>>>>> This completely removes TRAD_SYNOPSIS and renames ANSI_SYNOPSIS to
>>>>>>> SYNOPSIS throughout Newlib's docuemntation.  I'm just not sure about
>>>>>>> the doc tools themselves; should support for both of those names also
>>>>>>> be removed?
>>>>>>>
>>>>>> A thought is to leave them in the doc tools.  Since the tools treat SYNOPSIS
>>>>>> and ANSI_SYNOPSIS the same, they'll work the same with or without the
>>>>>> present change.  Leaving in TRAD_SYNOPSIS as something to be ignored plus
>>>>>> keeping ANSI_SYNOPSIS as working could possibly help out people that have
>>>>>> added their own stuff, not forcing them to make these same changes.
>>>>>> (Probably a very small to non-existent set of people, but it is difficult to
>>>>>> know if there are any or not.)  It doesn't seem to hurt anything to leave
>>>>>> them, although adding a note that they have been retained for legacy
>>>>>> purposes might be a good idea.
>>>>> Wouldn't it be better in the long run to fail on seeing a TRAD_SYNOPSIS
>>>>> or ANSI_SYNOPSIS and tell the dev to remove the first and to rename the
>>>>> latter?  It's not very hard to fix,
>>>>>
>>>> It depends on your point of view.  I agree that it is easy to fix, but the
>>>> idea of keeping it was thinking that if I happened to have files that
>>>> suddenly became obsolete and I had to spend to to alter the word I would be
>>>> annoyed at the waste of time:  discover the problem, track down how to fix
>>>> it, then do it.  Figuring it out would likely be the longest.
>>>
>>> That was the idea: The doc building process should not simply fail but
>>> explain what's wrong and just print a matching message during build:
>>>
>>>    "bla bla, outdated, remove TRAD_SYNOPSIS and rename ANSI_SYNOPSIS
>>>     to SYNOPSIS, bla, bla"
>>
>> Apparently error messages during doc building are printed to a
>> non-obvious location, meaning these probably wouldn't be seen.  Simply
>> removing any mention of these tags apparently causes them to be ignored.

To amplify on this, in Makefile.shared we currently have:

> CHEW = ${top_builddir}/../doc/makedoc -f $(top_srcdir)/../doc/doc.str
> 
> .c.def:
>         $(CHEW) < $< > $*.def 2> $*.ref

makedoc outputs something related to QUICKREF to stderr, along with any 
errors or warnings it produces.

Presumably the .ref file was at some stage intended to be used to 
produce some sort of 'quick reference', but the details are lost in time...

I'd suggest that QUICKREF is turned into a no-op, and then we can stop 
redirecting the output of makedoc.

>>   Is there a way to raise an error when these tags are found?
>>
>> If there is no simple solution to this, perhaps we should consider this
>> separately from the existing patchset.
> 
> Makes sense.  ACK to the series.

^ permalink raw reply	[flat|nested] 32+ messages in thread

end of thread, other threads:[~2017-12-04 16:19 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-11-30 10:29 [PATCH 00/24] Remove TRAD_SYNOPSIS Yaakov Selkowitz
2017-11-30 10:29 ` [PATCH 01/24] ctype: remove TRAD_SYNOPSIS Yaakov Selkowitz
2017-11-30 10:29 ` [PATCH 23/24] mathfp: " Yaakov Selkowitz
2017-11-30 10:29 ` [PATCH 11/24] signal: " Yaakov Selkowitz
2017-11-30 10:29 ` [PATCH 24/24] HOWTO: remove reference to TRAD_SYNOPSIS Yaakov Selkowitz
2017-11-30 10:29 ` [PATCH 03/24] locale: remove TRAD_SYNOPSIS Yaakov Selkowitz
2017-11-30 10:29 ` [PATCH 19/24] libm/common: " Yaakov Selkowitz
2017-11-30 10:29 ` [PATCH 16/24] sys: " Yaakov Selkowitz
2017-11-30 10:29 ` [PATCH 13/24] stdio64: " Yaakov Selkowitz
2017-11-30 10:29 ` [PATCH 02/24] iconv: " Yaakov Selkowitz
2017-11-30 10:29 ` [PATCH 12/24] stdio: " Yaakov Selkowitz
2017-11-30 10:34 ` [PATCH 14/24] stdlib: " Yaakov Selkowitz
2017-11-30 10:34 ` [PATCH 20/24] complex: " Yaakov Selkowitz
2017-11-30 10:36 ` [PATCH 09/24] reent: " Yaakov Selkowitz
2017-11-30 10:36 ` [PATCH 04/24] microblaze: " Yaakov Selkowitz
2017-11-30 10:37 ` [PATCH 08/24] posix: " Yaakov Selkowitz
2017-11-30 10:37 ` [PATCH 07/24] misc: " Yaakov Selkowitz
2017-11-30 10:37 ` [PATCH 05/24] nds32: " Yaakov Selkowitz
2017-11-30 10:37 ` [PATCH 17/24] time: " Yaakov Selkowitz
2017-11-30 10:37 ` [PATCH 10/24] search: " Yaakov Selkowitz
2017-11-30 10:39 ` [PATCH 22/24] math: " Yaakov Selkowitz
2017-11-30 10:39 ` [PATCH 06/24] powerpc: " Yaakov Selkowitz
2017-11-30 10:41 ` [PATCH 18/24] unix: " Yaakov Selkowitz
2017-11-30 10:47 ` [PATCH 21/24] libm/machine: " Yaakov Selkowitz
2017-11-30 10:59 ` [PATCH 15/24] string: " Yaakov Selkowitz
2017-11-30 16:11 ` [PATCH 00/24] Remove TRAD_SYNOPSIS Craig Howland
2017-11-30 17:40   ` Corinna Vinschen
2017-11-30 18:05     ` Craig Howland
2017-11-30 21:39       ` Corinna Vinschen
2017-12-01  9:39         ` Yaakov Selkowitz
2017-12-01  9:39           ` Corinna Vinschen
2017-12-04 20:55             ` Jon Turney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).