[lsb-discuss] ttyname_r LSB3.1 file creation problem

Stew Benedict stewb at aysenterprises.com
Fri Apr 20 04:02:50 PDT 2007


On Fri, 20 Apr 2007, alanyoung wrote:

> Hi all:
> 
> I ran a test against Linpus Linux and received this error:
> /tset/PTHR.os/procenv/ttyname_r/T.ttyname_r 2 
> fail
> Messages from the test  If the implementation detects that fildes is not a valid file descriptor: a call to ttyname_r(fildes, name, namesize) shall fail and return EBADF. Posix Ref: Component TTYNAME_R Assertion 9945-1:1996 4.7.2.4-2(C) The system does not support the PTHREAD_SCOPE_PROCESS scope, using PTHREAD_SCOPE_SYSTEM The system does not support the PTHREAD_SCOPE_PROCESS scope, using PTHREAD_SCOPE_SYSTEM The system does not support the PTHREAD_SCOPE_PROCESS scope, using PTHREAD_SCOPE_SYSTEM The system does not support the PTHREAD_SCOPE_PROCESS scope, using PTHREAD_SCOPE_SYSTEM The system does not support the PTHREAD_SCOPE_PROCESS scope, using PTHREAD_SCOPE_SYSTEM The system does not support the PTHREAD_SCOPE_PROCESS scope, using PTHREAD_SCOPE_SYSTEM The system does not support the PTHREAD_SCOPE_PROCESS scope, using PTHREAD_SCOPE_SYSTEM The system does not support the PTHREAD_SCOPE_PROCESS scope, using PTHREAD_SCOPE_SYSTEM ttyname_r, expected 9, got 25 ttyname_r, expec!
 ted
>   9, got 25 ttyname_r, expected 9, got 25 ttyname_r, expected 9, got 25 ttyname_r, expected 9, got 25 ttyname_r, expected 9, got 25 ttyname_r, expected 9, got 25 ttyname_r, expected 9, got 25
> 
> 
> This test is trying to get the tty path from a supplied file. However, this test has problem creating the tmp file and hence, wont be able to find the path. Do any of u guys witness the same problem?
> 

Fought with this one testing Mandriva. Turned out to be a glibc bug:

http://www.linux-foundation.org/en/TestPilot31#lsb-runtime-test_on_Mandriva_2007.0.2C_Cooker

-- 
Stew Benedict




More information about the lsb-discuss mailing list