summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorniklas <>1996-03-09 02:42:58 +0000
committerniklas <>1996-03-09 02:42:58 +0000
commit83a23009542c2672b009a5ad496e0a28417a37f9 (patch)
tree129097fa3d72ad3b6b85a0a600fd1e0b703a994b /src
parent543eeae2382e5de0b9518bdd9f7a75e5686fd056 (diff)
downloadopenbsd-83a23009542c2672b009a5ad496e0a28417a37f9.tar.gz
openbsd-83a23009542c2672b009a5ad496e0a28417a37f9.tar.bz2
openbsd-83a23009542c2672b009a5ad496e0a28417a37f9.zip
From NetBSD: 960217 merge
Diffstat (limited to 'src')
-rw-r--r--src/lib/libc/string/bcmp.c5
-rw-r--r--src/lib/libc/string/bm.c10
-rw-r--r--src/lib/libc/string/strcat.c6
-rw-r--r--src/lib/libc/string/strcpy.c6
-rw-r--r--src/lib/libc/string/strftime.c10
5 files changed, 24 insertions, 13 deletions
diff --git a/src/lib/libc/string/bcmp.c b/src/lib/libc/string/bcmp.c
index 2cc38baee3..edd83c2686 100644
--- a/src/lib/libc/string/bcmp.c
+++ b/src/lib/libc/string/bcmp.c
@@ -1,3 +1,5 @@
1/* $OpenBSD: bcmp.c,v 1.2 1996/03/09 02:42:54 niklas Exp $ */
2
1/* 3/*
2 * Copyright (c) 1987 Regents of the University of California. 4 * Copyright (c) 1987 Regents of the University of California.
3 * All rights reserved. 5 * All rights reserved.
@@ -33,7 +35,7 @@
33 35
34#if defined(LIBC_SCCS) && !defined(lint) 36#if defined(LIBC_SCCS) && !defined(lint)
35/*static char *sccsid = "from: @(#)bcmp.c 5.6 (Berkeley) 2/24/91";*/ 37/*static char *sccsid = "from: @(#)bcmp.c 5.6 (Berkeley) 2/24/91";*/
36static char *rcsid = "$Id: bcmp.c,v 1.1.1.1 1995/10/18 08:42:20 deraadt Exp $"; 38static char *rcsid = "$Id: bcmp.c,v 1.2 1996/03/09 02:42:54 niklas Exp $";
37#endif /* LIBC_SCCS and not lint */ 39#endif /* LIBC_SCCS and not lint */
38 40
39#include <string.h> 41#include <string.h>
@@ -41,6 +43,7 @@ static char *rcsid = "$Id: bcmp.c,v 1.1.1.1 1995/10/18 08:42:20 deraadt Exp $";
41/* 43/*
42 * bcmp -- vax cmpc3 instruction 44 * bcmp -- vax cmpc3 instruction
43 */ 45 */
46int
44bcmp(b1, b2, length) 47bcmp(b1, b2, length)
45 const void *b1, *b2; 48 const void *b1, *b2;
46 register size_t length; 49 register size_t length;
diff --git a/src/lib/libc/string/bm.c b/src/lib/libc/string/bm.c
index 68eac22ecc..4bc5f17801 100644
--- a/src/lib/libc/string/bm.c
+++ b/src/lib/libc/string/bm.c
@@ -1,3 +1,5 @@
1/* $OpenBSD: bm.c,v 1.2 1996/03/09 02:42:55 niklas Exp $ */
2
1/*- 3/*-
2 * Copyright (c) 1994 4 * Copyright (c) 1994
3 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
@@ -34,10 +36,10 @@
34 * SUCH DAMAGE. 36 * SUCH DAMAGE.
35 */ 37 */
36 38
37#ifndef lint 39#if defined(LIBC_SCCS) && !defined(lint)
38/* from: static char sccsid[] = "@(#)bm.c 8.7 (Berkeley) 6/21/94"; */ 40/* from: static char sccsid[] = "@(#)bm.c 8.7 (Berkeley) 6/21/94"; */
39static char *rcsid = "$Id: bm.c,v 1.1.1.1 1995/10/18 08:42:20 deraadt Exp $"; 41static char *rcsid = "$Id: bm.c,v 1.2 1996/03/09 02:42:55 niklas Exp $";
40#endif /* not lint */ 42#endif /* LIBC_SCCS && not lint */
41 43
42#include <sys/types.h> 44#include <sys/types.h>
43 45
diff --git a/src/lib/libc/string/strcat.c b/src/lib/libc/string/strcat.c
index e741b84f03..10e0aefe12 100644
--- a/src/lib/libc/string/strcat.c
+++ b/src/lib/libc/string/strcat.c
@@ -1,3 +1,5 @@
1/* $OpenBSD: strcat.c,v 1.2 1996/03/09 02:42:56 niklas Exp $ */
2
1/* 3/*
2 * Copyright (c) 1988 Regents of the University of California. 4 * Copyright (c) 1988 Regents of the University of California.
3 * All rights reserved. 5 * All rights reserved.
@@ -33,7 +35,7 @@
33 35
34#if defined(LIBC_SCCS) && !defined(lint) 36#if defined(LIBC_SCCS) && !defined(lint)
35/*static char *sccsid = "from: @(#)strcat.c 5.6 (Berkeley) 2/24/91";*/ 37/*static char *sccsid = "from: @(#)strcat.c 5.6 (Berkeley) 2/24/91";*/
36static char *rcsid = "$Id: strcat.c,v 1.1.1.1 1995/10/18 08:42:22 deraadt Exp $"; 38static char *rcsid = "$Id: strcat.c,v 1.2 1996/03/09 02:42:56 niklas Exp $";
37#endif /* LIBC_SCCS and not lint */ 39#endif /* LIBC_SCCS and not lint */
38 40
39#include <string.h> 41#include <string.h>
@@ -46,6 +48,6 @@ strcat(s, append)
46 char *save = s; 48 char *save = s;
47 49
48 for (; *s; ++s); 50 for (; *s; ++s);
49 while (*s++ = *append++); 51 while ((*s++ = *append++) != '\0');
50 return(save); 52 return(save);
51} 53}
diff --git a/src/lib/libc/string/strcpy.c b/src/lib/libc/string/strcpy.c
index 669bfde23e..86956cdb95 100644
--- a/src/lib/libc/string/strcpy.c
+++ b/src/lib/libc/string/strcpy.c
@@ -1,3 +1,5 @@
1/* $OpenBSD: strcpy.c,v 1.2 1996/03/09 02:42:57 niklas Exp $ */
2
1/* 3/*
2 * Copyright (c) 1988 Regents of the University of California. 4 * Copyright (c) 1988 Regents of the University of California.
3 * All rights reserved. 5 * All rights reserved.
@@ -33,7 +35,7 @@
33 35
34#if defined(LIBC_SCCS) && !defined(lint) 36#if defined(LIBC_SCCS) && !defined(lint)
35/*static char *sccsid = "from: @(#)strcpy.c 5.7 (Berkeley) 2/24/91";*/ 37/*static char *sccsid = "from: @(#)strcpy.c 5.7 (Berkeley) 2/24/91";*/
36static char *rcsid = "$Id: strcpy.c,v 1.1.1.1 1995/10/18 08:42:22 deraadt Exp $"; 38static char *rcsid = "$Id: strcpy.c,v 1.2 1996/03/09 02:42:57 niklas Exp $";
37#endif /* LIBC_SCCS and not lint */ 39#endif /* LIBC_SCCS and not lint */
38 40
39#include <string.h> 41#include <string.h>
@@ -45,6 +47,6 @@ strcpy(to, from)
45{ 47{
46 char *save = to; 48 char *save = to;
47 49
48 for (; *to = *from; ++from, ++to); 50 for (; (*to = *from) != '\0'; ++from, ++to);
49 return(save); 51 return(save);
50} 52}
diff --git a/src/lib/libc/string/strftime.c b/src/lib/libc/string/strftime.c
index b696a60e55..0b69e10ac0 100644
--- a/src/lib/libc/string/strftime.c
+++ b/src/lib/libc/string/strftime.c
@@ -1,3 +1,5 @@
1/* $OpenBSD: strftime.c,v 1.3 1996/03/09 02:42:58 niklas Exp $ */
2
1/* 3/*
2 * Copyright (c) 1989 The Regents of the University of California. 4 * Copyright (c) 1989 The Regents of the University of California.
3 * All rights reserved. 5 * All rights reserved.
@@ -33,7 +35,7 @@
33 35
34#if defined(LIBC_SCCS) && !defined(lint) 36#if defined(LIBC_SCCS) && !defined(lint)
35/*static char *sccsid = "from: @(#)strftime.c 5.11 (Berkeley) 2/24/91";*/ 37/*static char *sccsid = "from: @(#)strftime.c 5.11 (Berkeley) 2/24/91";*/
36static char *rcsid = "$Id: strftime.c,v 1.2 1995/12/30 08:16:41 deraadt Exp $"; 38static char *rcsid = "$Id: strftime.c,v 1.3 1996/03/09 02:42:58 niklas Exp $";
37#endif /* LIBC_SCCS and not lint */ 39#endif /* LIBC_SCCS and not lint */
38 40
39#include <sys/localedef.h> 41#include <sys/localedef.h>
@@ -272,7 +274,7 @@ _fmt(format, t)
272 return(gsize); 274 return(gsize);
273} 275}
274 276
275static 277static int
276_secs(t) 278_secs(t)
277 struct tm *t; 279 struct tm *t;
278{ 280{
@@ -289,7 +291,7 @@ _secs(t)
289 return(_add(++p)); 291 return(_add(++p));
290} 292}
291 293
292static 294static int
293_conv(n, digits, pad) 295_conv(n, digits, pad)
294 int n, digits; 296 int n, digits;
295 char pad; 297 char pad;
@@ -304,7 +306,7 @@ _conv(n, digits, pad)
304 return(_add(++p)); 306 return(_add(++p));
305} 307}
306 308
307static 309static int
308_add(str) 310_add(str)
309 register char *str; 311 register char *str;
310{ 312{