NetBSD Problem Report #21401
Received: (qmail 15951 invoked by uid 605); 30 Apr 2003 12:11:38 -0000
Message-Id: <Pine.SOL.4.44.0304301258530.1882-100000@draco.cus.cam.ac.uk>
Date: Wed, 30 Apr 2003 13:11:35 +0100 (BST)
From: Ben Harris <bjh21@netbsd.org>
Sender: gnats-bugs-owner@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: POSIX.2-1992: gl_pathc and gl_offs have wrong type
>Number: 21401
>Category: standards
>Synopsis: POSIX.2-1992: gl_pathc and gl_offs have wrong type
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: standards-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 30 12:12:00 +0000 2003
>Closed-Date: Sun Apr 10 08:36:17 +0000 2011
>Last-Modified: Sun Apr 10 08:40:01 +0000 2011
>Originator: Ben Harris
>Release: 2003-04-30
>Organization:
>Environment:
>Description:
IEEE Std 1003.2-1992, and its successors, require glob_t to have the
following members:
size_t gl_pathc
char **gl_pathv
size_t gl_offs
In NetBSD's <glob.h>, though, gl_pathc and gl_offs are of type int, not
size_t. This is significant on systems where size_t and int are different
sizes.
>How-To-Repeat:
Inspection of the definition of glob_t in <glob.h>.
Compare with
<http://www.opengroup.org/onlinepubs/007904975/basedefs/glob.h.html>
>Fix:
glob() will need versioning, again.
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: jruoho@NetBSD.org
State-Changed-When: Sun, 10 Apr 2011 08:36:17 +0000
State-Changed-Why:
Should be fixed.
From: "Jukka Ruohonen" <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/21401 CVS commit: src
Date: Sun, 10 Apr 2011 08:35:48 +0000
Module Name: src
Committed By: jruoho
Date: Sun Apr 10 08:35:48 UTC 2011
Modified Files:
src/distrib/sets/lists/tests: mi
src/tests/include: Makefile
Added Files:
src/tests/include: t_glob.c
Log Message:
Verify that PR standards/21401 is no longer an issue.
To generate a diff of this commit:
cvs rdiff -u -r1.304 -r1.305 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.3 -r1.4 src/tests/include/Makefile
cvs rdiff -u -r0 -r1.1 src/tests/include/t_glob.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(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-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.