aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/ptsname.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/ptsname.c')
-rw-r--r--sysdeps/generic/ptsname.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sysdeps/generic/ptsname.c b/sysdeps/generic/ptsname.c
index 7a442d0..1a2e61f 100644
--- a/sysdeps/generic/ptsname.c
+++ b/sysdeps/generic/ptsname.c
@@ -17,8 +17,9 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include <stdlib.h>
#include <errno.h>
+#include <stdlib.h>
+#include <unistd.h>
/* Given the file descriptor of a master pty, return the pathname
of the associated slave. */
@@ -28,14 +29,14 @@ ptsname (fd)
int fd __attribute__ ((unused));
{
__set_errno (ENOSYS);
- return 0;
+ return NULL;
}
-char *
+int
__ptsname_r (fd, buf, len)
int fd __attribute__ ((unused));
char *buf __attribute__ ((unused));
- unsigned int len __attribute__ ((unused));
+ size_t len __attribute__ ((unused));
{
__set_errno (ENOSYS);
return 0;