about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/ptsname.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-27 09:43:55 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-27 09:43:55 +0000
commit45139d5f770d32969d95593a6e176688c2205d54 (patch)
tree1b0cf211e106b8de1ff19e1c4c5ba3ff4bf6bcb3 /sysdeps/unix/sysv/linux/ptsname.c
parent625094fd7aedb7088304d2e14471a9fae256f994 (diff)
downloadglibc-45139d5f770d32969d95593a6e176688c2205d54.tar.gz
glibc-45139d5f770d32969d95593a6e176688c2205d54.tar.xz
glibc-45139d5f770d32969d95593a6e176688c2205d54.zip
Update.
1998-04-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* streams/Makefile (headers): Add sys/stropts.h.
	* streams/sys/stropts.h: New file.

1998-04-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* sysdeps/unix/sysv/linux/ttyname.c,
	sysdeps/unix/sysv/linux/ttyname_r.c: New files, like
	sysdeps/posix/ttyname*.c, but look in /dev/pts first.

1998-04-25  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* sysdeps/unix/sysv/linux/ptsname.c: Fix off-by-one bug in second
	argument of _itoa_word.

1998-04-24  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* sysdeps/unix/sysv/linux/syscalls.list (s_getcwd, s_getdents,
	s_pread64, s_pwrite64, s_reboot, s_sigpending, s_sigprocmask): Set
	caller to getcwd, getdents, pread64, pwrite64, reboot, sigpending,
	sigprocmask, resp., instead of EXTRA.

	* sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove
	s_pread64 and s_pwrite64.
Diffstat (limited to 'sysdeps/unix/sysv/linux/ptsname.c')
-rw-r--r--sysdeps/unix/sysv/linux/ptsname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/ptsname.c b/sysdeps/unix/sysv/linux/ptsname.c
index c81f23504c..2db8f8d08a 100644
--- a/sysdeps/unix/sysv/linux/ptsname.c
+++ b/sysdeps/unix/sysv/linux/ptsname.c
@@ -101,7 +101,7 @@ __ptsname_r (fd, buf, buflen)
 
   idbuf[5] = '\0';
   __stpcpy (__stpcpy (nbuf, "/dev/pts/"),
-	    _itoa_word (ptyno, &idbuf[4], 10, 0));
+	    _itoa_word (ptyno, &idbuf[5], 10, 0));
   if (__xstat (_STAT_VER, nbuf, &st) < 0)
     {
       if (errno != ENOENT)