summaryrefslogtreecommitdiffstats
path: root/libc/termios/ttyname.c
Commit message (Collapse)AuthorAgeFilesLines
* Greg Nutt writes:Eric Andersen2003-09-011-2/+2
| | | | | | | | | | Attached is a patch for a bug I found in libc/termios/ttyname.c. Essentially the length of the buffer is calculated incorrectly in a strncpy call and then the null terminator is placed on the byte after the buffer. This probably cause some very strange behavior on my system (it ended up setting malloc's heapsize to zero) but may be innocuous on other systems.
* A patch from Danny Lepage so that we do not setting on symlinksEric Andersen2002-11-051-2/+2
| | | | | when looking for a device match, and instead keep looking till we find the correct device.
* Stupid filesystems like cramfs fail to guarantee that st_ino and st_devEric Andersen2002-07-061-2/+11
| | | | | | | uniquely identify a file, contrary to SuSv3, so we cannot be quite so precise as to require an exact match. Settle for something less... Grumble... -Erik
* Oops. Looks like I broke ttyname. Fix it.Eric Andersen2002-06-191-5/+5
| | | | -Erik
* Implement ttyname_rEric Andersen2002-06-151-28/+50
| | | | -Erik
* Fix a really stupid bug with ttyname, thanks to a patch fromEric Andersen2001-06-131-1/+1
| | | | Stefan Soucek <ssoucek@coactive.com>
* rewrite to accomodate devfsEric Andersen2001-05-211-30/+60
|
* Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen2001-04-061-3/+3
| | | | | | | This required we use _LIBC instead of __LIBC__ to be consistent with glibc. This had some sideffects in sys/syscalls.h. While fixing things, I made everything use __set_errno() for (eventual) thread support. -Erik
* Bug ugly formatting updateEric Andersen2000-10-091-35/+31
|
* Work in progress -- cleanups.Erik Andersen2000-05-141-1/+2
| | | | -Erik
* Initial revision0_9_1Erik Andersen2000-05-141-0/+45