NetBSD Problem Report #49279

From www@NetBSD.org  Sun Oct 12 22:18:09 2014
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 89453A65D9
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 12 Oct 2014 22:18:09 +0000 (UTC)
Message-Id: <20141012221808.92046A6678@mollari.NetBSD.org>
Date: Sun, 12 Oct 2014 22:18:08 +0000 (UTC)
From: justin@netbsd.org
Reply-To: justin@netbsd.org
To: gnats-bugs@NetBSD.org
Subject: open_memstream missing
X-Send-Pr-Version: www-1.0

>Number:         49279
>Category:       standards
>Synopsis:       open_memstream missing
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    standards-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Oct 12 22:20:00 +0000 2014
>Closed-Date:    Wed Oct 15 22:31:52 +0000 2014
>Last-Modified:  Wed Oct 15 22:31:52 +0000 2014
>Originator:     Justin Cormack
>Release:        current
>Organization:
NetBSD
>Environment:
NetBSD rhombus.myriabit.eu 7.0_BETA NetBSD 7.0_BETA (GENERIC.201409131930Z) amd64

>Description:
open_memstream() missing from NetBSD, it is in POSIX.1-2008 see http://pubs.opengroup.org/onlinepubs/9699919799/functions/open_memstream.html

Someone worked on it once see http://mail-index.netbsd.org/tech-userlevel/2008/09/02/msg001133.html but apparently not committed and link not working.

FreeBSD, DragonflyBSD and OpenBSD all have support.
>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: "Christos Zoulas" <christos@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49279 CVS commit: src/lib/libc/stdio
Date: Sun, 12 Oct 2014 20:40:36 -0400

 Module Name:	src
 Committed By:	christos
 Date:		Mon Oct 13 00:40:36 UTC 2014

 Modified Files:
 	src/lib/libc/stdio: Makefile.inc
 Added Files:
 	src/lib/libc/stdio: open_memstream.3 open_memstream.c open_wmemstream.c

 Log Message:
 PR/49279: Justin Cormack: add open_memstream


 To generate a diff of this commit:
 cvs rdiff -u -r1.45 -r1.46 src/lib/libc/stdio/Makefile.inc
 cvs rdiff -u -r0 -r1.1 src/lib/libc/stdio/open_memstream.3 \
     src/lib/libc/stdio/open_memstream.c src/lib/libc/stdio/open_wmemstream.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: "Justin Cormack" <justin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/49279 CVS commit: src
Date: Wed, 15 Oct 2014 21:55:34 +0000

 Module Name:	src
 Committed By:	justin
 Date:		Wed Oct 15 21:55:34 UTC 2014

 Modified Files:
 	src/distrib/sets/lists/tests: mi
 	src/tests/lib/libc/stdio: Makefile
 Added Files:
 	src/tests/lib/libc/stdio: t_open_memstream.c

 Log Message:
 PR standards/49279 add tests for open_memstream, ported from OpenBSD


 To generate a diff of this commit:
 cvs rdiff -u -r1.593 -r1.594 src/distrib/sets/lists/tests/mi
 cvs rdiff -u -r1.11 -r1.12 src/tests/lib/libc/stdio/Makefile
 cvs rdiff -u -r0 -r1.1 src/tests/lib/libc/stdio/t_open_memstream.c

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

From: Justin Cormack <justin@specialbusservice.com>
To: gnats-bugs@netbsd.org
Cc: standards-manager@netbsd.org, gnats-admin@netbsd.org, 
	netbsd-bugs@netbsd.org
Subject: Re: standards/49279: open_memstream missing
Date: Wed, 15 Oct 2014 23:06:24 +0100

 Ok, Christos ported this from FreeBSD (thanks!) and I ported a test,
 so I think this is good to close now.

 Justin

State-Changed-From-To: open->closed
State-Changed-By: christos@NetBSD.org
State-Changed-When: Wed, 15 Oct 2014 18:31:52 -0400
State-Changed-Why:
submitter verified it is fixed.


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.