OSDN Git Service

Unbreak sem_open when UCLIBC_SUSV3_LEGACY is not defined
authorMikhail Gusarov <dottedmag@dottedmag.net>
Sat, 7 Nov 2009 20:33:16 +0000 (02:33 +0600)
committerAustin Foxley <austinf@cetoncorp.com>
Mon, 9 Nov 2009 23:24:25 +0000 (15:24 -0800)
commit0d1e9a17751ad7aa4ff61f3ca1f775e05eed6b60
tree3664cfde1c16e36f2418a498b5437db7b8155c57
parent8d74517c1619e3f688ad543717cee25d0b166a6e
Unbreak sem_open when UCLIBC_SUSV3_LEGACY is not defined

sem_open uses mktemp to create temporary file. Reimplement it
using __gen_tmpname, removing ugly while(1) loop. As a side-effect
remove the potential source of EAGAIN errors.

Signed-off-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
libpthread/nptl/sem_open.c