Subject: standards/20479: setenv/unsetenv are defined in IEEE Std 1003.1-2001
To: None <gnats-bugs@gnats.netbsd.org>
From: None <maekawa@daemon-systems.org>
List: netbsd-bugs
Date: 02/24/2003 07:31:21
>Number: 20479
>Category: standards
>Synopsis: setenv/unsetenv are defined in IEEE Std 1003.1-2001
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: standards-manager
>State: open
>Class: support
>Submitter-Id: net
>Arrival-Date: Mon Feb 24 07:32:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: MAEKAWA Masahide
>Release: 1.6N
>Organization:
>Environment:
NetBSD astaroth.daemon-systems.org 1.6N NetBSD 1.6N (ASTAROTH) #0: Mon Feb 10 02:48:42 JST 2003 maekawa@lucifer.daemon-systems.org:/usr/src/sys/arch/i386/compile/ASTAROTH i386
>Description:
setenv() and unsetenv() are defined in IEEE Std 1003.1-2001, but
test.c:
#include <stdlib.h> /* the prototypes shall be in this header. */
int
main(void)
{
setnv("LANG", "C", 1);
unsetenv("LANG");
exit(0);
}
% cc -Wall -D_POSIX_C_SOURCE=200112L -D_XOPEN_SOURCE=600 test.c
test.c: In function `main':
test.c:6: warning: implicit declaration of function `setenv'
test.c:7: warning: implicit declaration of function `unsetenv'
>How-To-Repeat:
See above.
>Fix:
No good idea.
>Release-Note:
>Audit-Trail:
>Unformatted: