fix ptsname_r to conform to the upcoming posix requirements
authorRich Felker <dalias@aerifal.cx>
Wed, 20 Jun 2012 19:11:27 +0000 (15:11 -0400)
committerRich Felker <dalias@aerifal.cx>
Wed, 20 Jun 2012 19:11:27 +0000 (15:11 -0400)
commitc21a19d5a559cbd39963b89547900d24624f1fad
tree155427ae2cd3e35ce2a2f58fb22d0d6544493406
parentcea106fb8976d04b916953469439bc58fa111266
fix ptsname_r to conform to the upcoming posix requirements

it should return the error code rather than 0/-1 and setting errno.
src/misc/ptsname.c
src/misc/pty.c