Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/gnu/dist/gawk/missing Obsoleted by the update to 3.1.3 (move...
details: https://anonhg.NetBSD.org/src/rev/dea170776046
branches: trunk
changeset: 552936:dea170776046
user: wiz <wiz%NetBSD.org@localhost>
date: Mon Oct 06 18:27:45 2003 +0000
description:
Obsoleted by the update to 3.1.3 (moved to missing_d dir).
diffstat:
gnu/dist/gawk/missing/memcmp.c | 18 -
gnu/dist/gawk/missing/memcpy.c | 18 -
gnu/dist/gawk/missing/memset.c | 20 -
gnu/dist/gawk/missing/strchr.c | 47 -
gnu/dist/gawk/missing/strerror.c | 37 -
gnu/dist/gawk/missing/strftime.3 | 353 --------------
gnu/dist/gawk/missing/strftime.c | 891 ------------------------------------
gnu/dist/gawk/missing/strncasecmp.c | 95 ---
gnu/dist/gawk/missing/strtod.c | 123 ----
gnu/dist/gawk/missing/system.c | 27 -
gnu/dist/gawk/missing/tzset.c | 39 -
11 files changed, 0 insertions(+), 1668 deletions(-)
diffs (truncated from 1712 to 300 lines):
diff -r 9671655c5b80 -r dea170776046 gnu/dist/gawk/missing/memcmp.c
--- a/gnu/dist/gawk/missing/memcmp.c Mon Oct 06 18:20:54 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-/*
- * memcmp --- compare strings.
- *
- * We use our own routine since it has to act like strcmp() for return
- * value, and the BSD manual says bcmp() only returns zero/non-zero.
- */
-
-int
-memcmp (s1, s2, l)
-register char *s1, *s2;
-register int l;
-{
- for (; l-- > 0; s1++, s2++) {
- if (*s1 != *s2)
- return (*s1 - *s2);
- }
- return (0);
-}
diff -r 9671655c5b80 -r dea170776046 gnu/dist/gawk/missing/memcpy.c
--- a/gnu/dist/gawk/missing/memcpy.c Mon Oct 06 18:20:54 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,18 +0,0 @@
-/*
- * memcpy --- copy strings.
- *
- * We supply this routine for those systems that aren't standard yet.
- */
-
-char *
-memcpy (dest, src, l)
-register char *dest, *src;
-register int l;
-{
- register char *ret = dest;
-
- while (l--)
- *dest++ = *src++;
-
- return ret;
-}
diff -r 9671655c5b80 -r dea170776046 gnu/dist/gawk/missing/memset.c
--- a/gnu/dist/gawk/missing/memset.c Mon Oct 06 18:20:54 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-/*
- * memset --- initialize memory
- *
- * We supply this routine for those systems that aren't standard yet.
- */
-
-void *
-memset(dest, val, l)
-void *dest;
-register int val;
-register size_t l;
-{
- register char *ret = dest;
- register char *d = dest;
-
- while (l--)
- *d++ = val;
-
- return ((void *) ret);
-}
diff -r 9671655c5b80 -r dea170776046 gnu/dist/gawk/missing/strchr.c
--- a/gnu/dist/gawk/missing/strchr.c Mon Oct 06 18:20:54 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-/*
- * strchr --- search a string for a character
- *
- * We supply this routine for those systems that aren't standard yet.
- */
-
-#if 0
-#include <stdio.h>
-#endif
-
-char *
-strchr(str, c)
-register const char *str, c;
-{
- if (c == '\0') {
- /* thanks to Mike Brennan ... */
- do {
- if (*str == c)
- return (char *) str;
- } while (*str++);
- } else {
- for (; *str; str++)
- if (*str == c)
- return (char *) str;
- }
-
- return NULL;
-}
-
-/*
- * strrchr --- find the last occurrence of a character in a string
- *
- * We supply this routine for those systems that aren't standard yet.
- */
-
-char *
-strrchr(str, c)
-register const char *str, c;
-{
- register const char *save = NULL;
-
- for (; *str; str++)
- if (*str == c)
- save = str;
-
- return (char *) save;
-}
diff -r 9671655c5b80 -r dea170776046 gnu/dist/gawk/missing/strerror.c
--- a/gnu/dist/gawk/missing/strerror.c Mon Oct 06 18:20:54 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,37 +0,0 @@
-/* strerror.c --- ANSI C compatible system error routine
-
- Copyright (C) 1986, 1988, 1989, 1991 the Free Software Foundation, Inc.
-
- This program is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 2, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program; if not, write to the Free Software Foundation,
- Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-
-#if 0
-#include <stdio.h>
-#endif
-
-extern int sys_nerr;
-extern char *sys_errlist[];
-
-char *
-strerror(n)
-int n;
-{
- static char mesg[30];
-
- if (n < 0 || n >= sys_nerr) {
- sprintf(mesg, "Unknown error (%d)", n);
- return mesg;
- } else
- return sys_errlist[n];
-}
diff -r 9671655c5b80 -r dea170776046 gnu/dist/gawk/missing/strftime.3
--- a/gnu/dist/gawk/missing/strftime.3 Mon Oct 06 18:20:54 2003 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,353 +0,0 @@
-.TH STRFTIME 3
-.SH NAME
-strftime \- generate formatted time information
-.SH SYNOPSIS
-.ft B
-.nf
-#include <sys/types.h>
-#include <time.h>
-.sp
-size_t strftime(char *s, size_t maxsize, const char *format,
- const struct tm *timeptr);
-.SH DESCRIPTION
-The following description is transcribed verbatim from the December 7, 1988
-draft standard for ANSI C.
-This draft is essentially identical in technical content
-to the final version of the standard.
-.LP
-The
-.B strftime
-function places characters into the array pointed to by
-.B s
-as controlled by the string pointed to by
-.BR format .
-The format shall be a multibyte character sequence, beginning and ending in
-its initial shift state.
-The
-.B format
-string consists of zero or more conversion specifiers and ordinary
-multibyte characters. A conversion specifier consists of a
-.B %
-character followed by a character that determines the behavior of the
-conversion specifier.
-All ordinary multibyte characters (including the terminating null
-character) are copied unchanged into the array.
-If copying takes place between objects that overlap the behavior is undefined.
-No more than
-.B maxsize
-characters are placed into the array.
-Each conversion specifier is replaced by appropriate characters as described
-in the following list.
-The appropriate characters are determined by the
-.B LC_TIME
-category of the current locale and by the values contained in the
-structure pointed to by
-.BR timeptr .
-.TP
-.B %a
-is replaced by the locale's abbreviated weekday name.
-.TP
-.B %A
-is replaced by the locale's full weekday name.
-.TP
-.B %b
-is replaced by the locale's abbreviated month name.
-.TP
-.B %B
-is replaced by the locale's full month name.
-.TP
-.B %c
-is replaced by the locale's appropriate date and time representation.
-.TP
-.B %d
-is replaced by the day of the month as a decimal number
-.RB ( 01 - 31 ).
-.TP
-.B %H
-is replaced by the hour (24-hour clock) as a decimal number
-.RB ( 00 - 23 ).
-.TP
-.B %I
-is replaced by the hour (12-hour clock) as a decimal number
-.RB ( 01 - 12 ).
-.TP
-.B %j
-is replaced by the day of the year as a decimal number
-.RB ( 001 - 366 ).
-.TP
-.B %m
-is replaced by the month as a decimal number
-.RB ( 01 - 12 ).
-.TP
-.B %M
-is replaced by the minute as a decimal number
-.RB ( 00 - 59 ).
-.TP
-.B %p
-is replaced by the locale's equivalent of the AM/PM designations associated
-with a 12-hour clock.
-.TP
-.B %S
-is replaced by the second as a decimal number
-.RB ( 00 - 60 ).
-.TP
-.B %U
-is replaced by the week number of the year (the first Sunday as the first
-day of week 1) as a decimal number
-.RB ( 00 - 53 ).
-.TP
-.B %w
-is replaced by the weekday as a decimal number
-.RB [ "0 " (Sunday)- 6 ].
-.TP
-.B %W
-is replaced by the week number of the year (the first Monday as the first
-day of week 1) as a decimal number
-.RB ( 00 - 53 ).
-.TP
-.B %x
-is replaced by the locale's appropriate date representation.
-.TP
-.B %X
-is replaced by the locale's appropriate time representation.
-.TP
-.B %y
-is replaced by the year without century as a decimal number
-.RB ( 00 - 99 ).
-.TP
-.B %Y
-is replaced by the year with century as a decimal number.
-.TP
-.B %Z
-is replaced by the time zone name or abbreviation, or by no characters if
-no time zone is determinable.
-.TP
-.B %%
-is replaced by
-.BR % .
-.LP
-If a conversion specifier is not one of the above, the behavior is
-undefined.
-.SH RETURNS
-If the total number of resulting characters including the terminating null
-character is not more than
-.BR maxsize ,
-the
-.B strftime
Home |
Main Index |
Thread Index |
Old Index