Skip to content
  • Keir Fraser's avatar
    xenconsoled: portability fixes: · 58873e67
    Keir Fraser authored
    
     - Use openpty(), which does the same as the sequence
       of open(), grantpt(), unlockpt(), ptsname(), tcgetattr()
       simplifies code
     - Check return code from tcsetattr()
     - sprintf() -> snprintf()
     - OpenBSD lacks POSIX grantpt() and unlockpt()
       requires use of openpty()
     - Solaris lacks POSIX openpty() via feedback from SUN (John Levon)
       implement openpty() for Solaris, tested and ok'd by SUN (John
       Levon)
    
    Signed-off-by: default avatarChristoph Egger <Christoph.Egger@amd.com>
    58873e67