OSDN Git Service

- fixup after sync with glibc. _ptyname was renamed to __libc_ptyname
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 10 Dec 2005 14:08:40 +0000 (14:08 -0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Sat, 10 Dec 2005 14:08:40 +0000 (14:08 -0000)
libc/stdlib/ptsname.c

index 769944b..c56f18a 100644 (file)
@@ -152,7 +152,7 @@ int attribute_hidden __ptsname_r (int fd, char *buf, size_t buflen)
       if (major (st.st_rdev) == 4)
        ptyno -= 128;
 
-      if (ptyno / 16 >= __strlen (_ptyname1))
+      if (ptyno / 16 >= __strlen (__libc_ptyname1))
        {
          errno = ENOTTY;
          return ENOTTY;
@@ -160,8 +160,8 @@ int attribute_hidden __ptsname_r (int fd, char *buf, size_t buflen)
 
       __strcpy (buf, _PATH_TTY);
       p = buf + __strlen (buf);
-      p[0] = _ptyname1[ptyno / 16];
-      p[1] = _ptyname2[ptyno % 16];
+      p[0] = __libc_ptyname1[ptyno / 16];
+      p[1] = __libc_ptyname2[ptyno % 16];
       p[2] = '\0';
     }