Date: Wed, 23 Jun 1999 18:50:01 -0700 (PDT) From: Mika Nystrom <mika@cs.caltech.edu> To: FreeBSD-gnats-submit@freebsd.org Subject: docs/12372: man page HISTORY for strdup is wrong Message-ID: <199906240150.SAA09479@dogmatix.cs.caltech.edu>
index | next in thread | raw e-mail
>Number: 12372
>Category: docs
>Synopsis: man page HISTORY for strdup is wrong
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: freebsd-doc
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 23 19:00:02 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator: Mika Nystrom
>Release: FreeBSD 3.0-CURRENT i386
>Organization:
Department of Computer Science
California Institute of Technology
>Environment:
3.0-CURRENT
3.2-RELEASE
others..?
>Description:
The manual page for strdup(3) claims:
HISTORY
The strdup() function first appeared in 4.4BSD.
BSD June 9, 1993 1
This is wrong. strdup() is documented in SunOS 4.1.1 (and earlier),
at least as early as 1987.
From SunOS 4.1.1/sun3:
.\" @(#)string.3 1.33 90/02/15 SMI; from UCB 4.2 and S5
.TH STRING 3 "6 October 1987"
.SH NAME
strcat, strncat, strdup, strcmp, strncmp, strcasecmp, strncasecmp, strcpy, strnc
py, strlen, strchr, strrchr, strpbrk, strspn, strcspn, strstr, strtok, index, ri
ndex \- string operations
It is not present in Tahoe UNIX though (dated 22 Oct 1987, two weeks after
the SMI man page), so I assume it is actually from AT&T System V.
The only reason I bring this up is that the manual page might lead a
programmer to believe (such as I did in shock after having used strdup
with abandon for several years) that use of strdup will lead to
less portable programs than it actually does.
>How-To-Repeat:
freebsd% man 3 strdup
>Fix:
Edit the man page to say .. don't know.. "Probably from System V"?
>Release-Note:
>Audit-Trail:
>Unformatted:
no
non-critical
low
doc-bug
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199906240150.SAA09479>
