From 741d13126a304df5b35da534978e12f0a1466b76 Mon Sep 17 00:00:00 2001 From: millert <> Date: Wed, 20 Aug 1997 04:13:57 +0000 Subject: [PATCH] Update man page and sccs tags from lite2. --- src/lib/libc/string/memccpy.3 | 14 ++++++++------ src/lib/libc/string/memccpy.c | 12 +++++++++--- src/lib/libc/string/strcasecmp.3 | 13 +++++++------ src/lib/libc/string/strcasecmp.c | 16 +++++++++++----- 4 files changed, 35 insertions(+), 20 deletions(-) diff --git a/src/lib/libc/string/memccpy.3 b/src/lib/libc/string/memccpy.3 index a06e60cf..2fabd2f5 100644 --- a/src/lib/libc/string/memccpy.3 +++ b/src/lib/libc/string/memccpy.3 @@ -1,5 +1,7 @@ -.\" Copyright (c) 1990, 1991 The Regents of the University of California. -.\" All rights reserved. +.\" $OpenBSD: memccpy.3,v 1.3 1997/08/20 04:09:39 millert Exp $ +.\" +.\" Copyright (c) 1990, 1991, 1993 +.\" The Regents of the University of California. All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions @@ -29,13 +31,14 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: memccpy.3,v 1.2 1996/08/19 08:34:03 tholo Exp $ +.\" @(#)memccpy.3 8.1 (Berkeley) 6/9/93 .\" -.Dd April 19, 1991 +.Dd June 9, 1993 .Dt MEMCCPY 3 .Os .Sh NAME .Nm memccpy +.Nd copy string until character found .Sh SYNOPSIS .Fd #include .Ft void * @@ -68,5 +71,4 @@ bytes are copied, and a NULL pointer is returned. .Sh HISTORY The .Fn memccpy -function is -.Ud . +function first appeared in 4.4BSD. diff --git a/src/lib/libc/string/memccpy.c b/src/lib/libc/string/memccpy.c index 4757f9c0..020e6e56 100644 --- a/src/lib/libc/string/memccpy.c +++ b/src/lib/libc/string/memccpy.c @@ -1,6 +1,8 @@ +/* $OpenBSD: memccpy.c,v 1.3 1997/08/20 04:09:39 millert Exp $ */ + /*- - * Copyright (c) 1990 The Regents of the University of California. - * All rights reserved. + * Copyright (c) 1990, 1993 + * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -32,7 +34,11 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: memccpy.c,v 1.2 1996/08/19 08:34:03 tholo Exp $"; +#if 0 +static char sccsid[] = "@(#)memccpy.c 8.1 (Berkeley) 6/4/93"; +#else +static char *rcsid = "$OpenBSD: memccpy.c,v 1.3 1997/08/20 04:09:39 millert Exp $"; +#endif #endif /* LIBC_SCCS and not lint */ #include diff --git a/src/lib/libc/string/strcasecmp.3 b/src/lib/libc/string/strcasecmp.3 index 1aa4c4a7..e098ff4e 100644 --- a/src/lib/libc/string/strcasecmp.3 +++ b/src/lib/libc/string/strcasecmp.3 @@ -1,5 +1,7 @@ -.\" Copyright (c) 1990, 1991 The Regents of the University of California. -.\" All rights reserved. +.\" $OpenBSD: strcasecmp.3,v 1.3 1997/08/20 04:13:56 millert Exp $ +.\" +.\" Copyright (c) 1990, 1991, 1993 +.\" The Regents of the University of California. All rights reserved. .\" .\" This code is derived from software contributed to Berkeley by .\" Chris Torek. @@ -31,9 +33,9 @@ .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" -.\" $OpenBSD: strcasecmp.3,v 1.2 1996/08/19 08:34:09 tholo Exp $ +.\" @(#)strcasecmp.3 8.1 (Berkeley) 6/9/93 .\" -.Dd April 19, 1991 +.Dd June 9, 1993 .Dt STRCASECMP 3 .Os .Sh NAME @@ -83,5 +85,4 @@ The .Fn strcasecmp and .Fn strncasecmp -functions are -.Ud . +functions first appeared in 4.4BSD. diff --git a/src/lib/libc/string/strcasecmp.c b/src/lib/libc/string/strcasecmp.c index fe8b8eb8..1f487524 100644 --- a/src/lib/libc/string/strcasecmp.c +++ b/src/lib/libc/string/strcasecmp.c @@ -1,6 +1,8 @@ +/* $OpenBSD: strcasecmp.c,v 1.3 1997/08/20 04:13:57 millert Exp $ */ + /* - * Copyright (c) 1987 Regents of the University of California. - * All rights reserved. + * Copyright (c) 1987, 1993 + * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -31,12 +33,16 @@ * SUCH DAMAGE. */ +#include + #if defined(LIBC_SCCS) && !defined(lint) -static char *rcsid = "$OpenBSD: strcasecmp.c,v 1.2 1996/08/19 08:34:09 tholo Exp $"; +#if 0 +static char sccsid[] = "@(#)strcasecmp.c 8.1 (Berkeley) 6/4/93"; +#else +static char *rcsid = "$OpenBSD: strcasecmp.c,v 1.3 1997/08/20 04:13:57 millert Exp $"; +#endif #endif /* LIBC_SCCS and not lint */ -#include - typedef unsigned char u_char; /*