Austin Group Defect Tracker

Aardvark Mark III

Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001246 [1003.1(2016)/Issue7+TC2] Base Definitions and Headers Objection Omission 2019-04-16 05:48 2019-06-27 16:07
Reporter dannyniu View Status public  
Assigned To
Priority normal Resolution Duplicate  
Status Closed  
Name DannyNiu/NJF
Organization Individual
User Reference Online Pub
Section unistd.h
Page Number 434
Line Number 14760
Interp Status ---
Final Accepted Text
Summary 0001246: environ missing.
Description In the description for exec functions, it is mentioned that the variable environ holds an array of pointers to environment variables to be passed to new program. The exec functions are from the "unistd.h" header, however in XDB, environ is mentioned nowhere in "unistd.h".
Desired Action Insert after line 15463:

extern char **environ;
Tags No tags attached.
Attached Files

- Relationships
duplicate of 0000386Closedajosey 1003.1(2008)/Issue 7 environ should be declared in <unistd.h> 

-  Notes
kre (reporter)
2019-04-16 06:22

I object to that change.

All that needs to be said about environ (the variable) is in the
standard already. It has never been traditionally defined in any
header file, as normally, applications should not be using it.

There is an "environ" page in XSH 3, and in the exec page it says

    In addition, the following variable, which must be declared by
    the user if it is to be used directly:

    extern char **environ;

I see no need for any changes to any of that. Further, if environ
were to be (needlessly) added to a standard header, we would also need
changes to XSH 3.environ and XSH 3.exec (and possibly more places).
geoffclare (manager)
2019-04-16 07:38

This should be closed as a duplicate of bug 0000386

- Issue History
Date Modified Username Field Change
2019-04-16 05:48 dannyniu New Issue
2019-04-16 05:48 dannyniu Name => DannyNiu/NJF
2019-04-16 05:48 dannyniu Organization => Individual
2019-04-16 05:48 dannyniu User Reference => Online Pub
2019-04-16 05:48 dannyniu Section => unistd.h
2019-04-16 05:48 dannyniu Page Number => 434
2019-04-16 05:48 dannyniu Line Number => 14760
2019-04-16 06:22 kre Note Added: 0004363
2019-04-16 07:38 geoffclare Note Added: 0004364
2019-04-16 07:38 geoffclare Relationship added duplicate of 0000386
2019-06-27 16:07 geoffclare Interp Status => ---
2019-06-27 16:07 geoffclare Status New => Closed
2019-06-27 16:07 geoffclare Resolution Open => Duplicate

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker