summaryrefslogtreecommitdiff
path: root/libc/termios/ttyname.c
AgeCommit message (Collapse)Author
2004-01-02Kept the same approach, but rewrote the code for the most part.Manuel Novoa III
Fixed some minor issues plus (as I recall) one SUSv3 errno case.
2003-09-01Greg Nutt writes:Eric Andersen
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.
2002-11-05A patch from Danny Lepage so that we do not setting on symlinksEric Andersen
when looking for a device match, and instead keep looking till we find the correct device.
2002-07-06Stupid filesystems like cramfs fail to guarantee that st_ino and st_devEric Andersen
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
2002-06-19Oops. Looks like I broke ttyname. Fix it.Eric Andersen
-Erik
2002-06-15Implement ttyname_rEric Andersen
-Erik
2001-06-13Fix a really stupid bug with ttyname, thanks to a patch fromEric Andersen
Stefan Soucek <ssoucek@coactive.com>
2001-05-21rewrite to accomodate devfsEric Andersen
2001-04-06Fix include/errno.h to not use kernel header, and instead use bits/errno.h.Eric Andersen
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
2000-10-09Bug ugly formatting updateEric Andersen
2000-05-14Work in progress -- cleanups.Erik Andersen
-Erik
2000-05-14Initial revisionErik Andersen