| Commit message (Expand) | Author | Age | Files | Lines |
| * | improve error handling of ttyname_r and isatty•••POSIX allows ttyname(_r) and isatty to return EBADF if passed file
descriptor is invalid.
maintainer's note: these are optional ("may fail") errors, but it's
non-conforming for ttyname_r to return ENOTTY when it failed for a
different reason.
| Benjamin Peterson | 2018-09-15 | 1 | -1/+1 |
| * | move and deduplicate declarations of __procfdname to make it checkable•••syscall.h was chosen as the header to declare it, since its intended
usage is alongside syscalls as a fallback for operations the direct
syscall does not support.
| Rich Felker | 2018-09-12 | 1 | -2/+1 |
| * | make ttyname[_r] return ENODEV rather than ENOENT•••commit 0a950dcf15bb9f7274c804dca490e9e20e475f3e added checking that
the pathname a tty device was opened with actually matches the device,
which can fail to hold when a container inherits a tty from outside
the container. the error code added at the time was ENOENT; however,
discussions between affected applications and glibc developers
resulted in glibc adopting ENODEV as the error for this condition, and
this has now been documented in the man pages project as well. adopt
the same error code for consistency.
patch by Christian Brauner.
| Rich Felker | 2017-04-21 | 1 | -1/+1 |
| * | verify that ttyname refers to the same file as the fd•••linux containers use separate mount namespace so the /proc
symlink might not point to the right device if the fd was
opened in the parent namespace, in this case return ENOENT.
| Szabolcs Nagy | 2016-08-30 | 1 | -4/+11 |
| * | include cleanups: remove unused headers and add feature test macros | Szabolcs Nagy | 2013-12-12 | 1 | -2/+0 |
| * | debloat code that depends on /proc/self/fd/%d with shared function•••I intend to add more Linux workarounds that depend on using these
pathnames, and some of them will be in "syscall" functions that, from
an anti-bloat standpoint, should not depend on the whole snprintf
framework.
| Rich Felker | 2013-08-02 | 1 | -1/+3 |
| * | fix broken ttyname[_r] (failure to null-terminate result) | Rich Felker | 2012-09-06 | 1 | -1/+4 |
| * | initial check-in, version 0.5.0 | Rich Felker | 2011-02-12 | 1 | -0/+19 |