[WISHLIST] Provide a utility that interprets POSIX errno's
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-meta (Ubuntu) |
Invalid
|
Wishlist
|
Dustin Kirkland | ||
ubuntu-dev-tools (Ubuntu) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Many a kernel or systems programmer will recall debugging some code and trying to interpret the returned error number.
This is quite easy to do programmatically in any one of a number of ways. It would be really simple and incredibly useful to bundle one of these and drop it into /usr/bin/errno on Ubuntu systems, such that users could run "errno 36", or "errno EPERM" and have the utility interpret common POSIX error numbers.
There are a number of ways that this can be done. Perhaps easiest is grepping /usr/include/
Alternatively, perl and python could be used to do this too (courtesy of Kees Cook):
perl -MPOSIX -e 'print strerror(
or
python -c 'import os;print os.strerror('$1');'
This is a wishlist bug that we upload one of these solutions to /usr/bin. If I could get a +1 from a member of the Ubuntu kernel team, I'll gladly commit a fix.
Related branches
- Kees Cook: Approve
-
Diff: 21 lines (+5/-1) (has conflicts)1 file modifieddebian/changelog (+5/-1)
Changed in linux-meta (Ubuntu): | |
assignee: | nobody → Dustin Kirkland (kirkland) |
importance: | Undecided → Wishlist |
milestone: | none → ubuntu-10.10-beta |
status: | New → Triaged |
Changed in linux-meta (Ubuntu): | |
status: | Triaged → Invalid |
Changed in ubuntu-dev-tools (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Wishlist |
Changed in ubuntu-dev-tools (Ubuntu): | |
status: | Triaged → Fix Committed |
Changed in linux-meta (Ubuntu): | |
milestone: | ubuntu-10.10-beta → none |
Fixes in branch:
* lp:~kirkland/+junk/612267
Added an initial cut at the script, licensed GPLv2 like the rest of the package. Also added a manpage. This script should be functional enough to get us started. It may need some tweaks and improvements.
:-Dustin