implement POSIX confstr() in System/Posix/Unistd.hsc
Trac metadata
Trac field | Value |
---|---|
Version | 7.4.1 |
Type | FeatureRequest |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | libraries/unix |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |
- Show closed items
Activity
-
Newest first Oldest first
-
Show all activity Show comments only Show history only
- clint changed weight to 5
changed weight to 5
- clint added Tfeature request Trac import external-unix labels
added Tfeature request Trac import external-unix labels
- Author
Attached file
0001-Add-binding-for-POSIX-confstr-_CS_PATH-and-LFS-varia.patch
(download).patch implementing confstr()
- Author
Trac metadata
Trac field Value CC → clint@debian.org - pcapriotti changed milestone to %7.6.1
changed milestone to %7.6.1
- Simon Peyton Jones assigned to @simonmar
assigned to @simonmar
- Simon Marlow unassigned @simonmar
unassigned @simonmar
- Developer
confstr
is fine, but most of those values (e.g._CS_LFS_CFLAGS
) are non-portable as far as I can tell. The only portable one is_CS_PATH
.See e.g. the POSIX pages that list the standard defines: http://pubs.opengroup.org/onlinepubs/009695399/basedefs/unistd.h.html and http://pubs.opengroup.org/onlinepubs/009695399/functions/confstr.html
- Author
So can they be included conditionally?
- Developer
In general it's not OK to have platform-conditional APIs in the
unix
package. Typically a missing function will throw an exception (e.g.getSlaveTerminalName
), or fall back to a portable version (e.g.unsetEnv
). Where there are constants or symbols that need to be conditional, we use a.Exts
module (see e.g.System.Posix.Signals.Exts
). - Ian Lynagh <igloo@earth.li> changed milestone to %7.6.2
changed milestone to %7.6.2
- thoughtpolice changed milestone to %7.10.1
changed milestone to %7.10.1
Moving to 7.10.1.
- thoughtpolice assigned to @trac-ekmett
assigned to @trac-ekmett
Moving over to new owning component 'Core Libraries'.
Trac metadata
Trac field Value Component libraries/unix → Core Libraries - thoughtpolice added core libraries label and removed external-unix label
added core libraries label and removed external-unix label
- Thomas Miedema closed
closed
The change you are requesting has to go through the library submission process first (basically send an email to libraries@haskell.org). Please submit a pull request to https://github.com/haskell/unix once your proposal is accepted.
Trac metadata
Trac field Value Resolution Unresolved → ResolvedWon'tFix CC clint@debian.org → clint@debian.org, core-libraries-committee@haskell.org - trac-import added external-unix label
added external-unix label
- Ben Gamari added Pnormal label
added Pnormal label