diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-02-23 23:42:03 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-02-23 23:42:03 +0000 |
commit | 02b20a23114a743022b3cfac023b3a6eb8fdd072 (patch) | |
tree | 6f187f408c655260c36cf6a048a50ac4c00659e9 /newlib/libc/unix/ttyname.h | |
parent | 8ec5da1ff6c169f34f9d85d98129814fb40dd4f8 (diff) | |
download | cygnal-02b20a23114a743022b3cfac023b3a6eb8fdd072.tar.gz cygnal-02b20a23114a743022b3cfac023b3a6eb8fdd072.tar.bz2 cygnal-02b20a23114a743022b3cfac023b3a6eb8fdd072.zip |
2009-02-23 Craig Howland <howland@LGSInnovations.com>
* libc/unix/ttyname.c: Remove ttyname_r() (to a new file to avoid
coupling ttyname_r() and ttyname() due to the latter's large buffer).
* libc/unix/ttyname_r.c: New file to hold ttyname_r(), previously in
ttyname.c.
* libc/unix/ttyname.h: New file (common size definition for the 2
ttyname*c files that are now split).
* libc/unix/Makefile.am (ELIX_2_SOURCES): Add ttyname_r.c.
* libc/unix/Makefile.in: Regenerate.
Diffstat (limited to 'newlib/libc/unix/ttyname.h')
-rw-r--r-- | newlib/libc/unix/ttyname.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/unix/ttyname.h b/newlib/libc/unix/ttyname.h new file mode 100644 index 000000000..ad9453553 --- /dev/null +++ b/newlib/libc/unix/ttyname.h @@ -0,0 +1,6 @@ +/* Common defines for ttyname.c and ttyname_r.c */ + +#include <dirent.h> /* For MAXNAMLEN */ +#include <paths.h> /* For _PATH_DEV */ + +#define TTYNAME_BUFSIZE (sizeof (_PATH_DEV) + MAXNAMLEN) |