summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-08-11 01:23:29 +0000
committerEric Andersen <andersen@codepoet.org>2000-08-11 01:23:29 +0000
commit84866232d9644a02d613e11710d0f3abe8c7a66e (patch)
treea049bcdec016a50126beb40941fc786aa4a8b150 /include
parent3973dd83bfc875c6ec2d71b99f17e72b578d517d (diff)
Yet more updates. Getting closer....
-Erik
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h9
-rw-r--r--include/unistd.h1
2 files changed, 10 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h
index 5f944f1f7..654cb8e55 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -172,6 +172,15 @@ extern int vfprintf __P ((FILE *__restrict __s,
extern int vsprintf __P ((char *__restrict __s,
__const char *__restrict __format,
va_list __arg));
+/* Maximum chars of output to write in MAXLEN. */
+extern int snprintf __P ((char *__restrict __s, size_t __maxlen,
+ __const char *__restrict __format, ...))
+ __attribute__ ((__format__ (__printf__, 3, 4)));
+/* Maximum chars of output to write in MAXLEN. */
+extern int vsnprintf __P ((char *__restrict __s, size_t __maxlen,
+ __const char *__restrict __format,
+ va_list __arg))
+ __attribute__ ((__format__ (__printf__, 3, 0)));
diff --git a/include/unistd.h b/include/unistd.h
index 6c2d1cece..d8a25dfa1 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -30,6 +30,7 @@ extern void usleep __P ((unsigned long __microseconds));
extern int pause __P ((void));
extern char* crypt __P((__const char *__key, __const char *__salt));
extern int isatty __P ((int __fd));
+extern char *ttyname __P ((int __fd));
extern int readlink __P ((__const char *__path, char *__buf, size_t __len));
extern int link __P ((__const char *__from, __const char *__to));
extern int symlink __P ((__const char *__from, __const char *__to));