Optimize grantpt.
commitaa9890239a2aef81e64f3f22a31c7e01b6501f69
authorUlrich Drepper <drepper@redhat.com>
Wed, 25 Nov 2009 02:50:32 +0000 (24 18:50 -0800)
committerUlrich Drepper <drepper@redhat.com>
Wed, 25 Nov 2009 02:50:32 +0000 (24 18:50 -0800)
tree9f11b2e9d90685e5c9b15a69e7ffefd259e4777e
parent0f622686af3ae5a8f03dae886b08c260b38bda16
Optimize grantpt.

grantpt was performing two consecutive calls to stat with the same
file name.  Avoid this by creating a special version of the ptsname
function which allows to pass the stat result back to the caller.
ChangeLog
include/stdlib.h
sysdeps/unix/grantpt.c
sysdeps/unix/sysv/linux/ptsname.c