Operating System - HP-UX
1753477 Members
5468 Online
108794 Solutions
New Discussion

open("/usr/lib/dld.sl", O_RDONLY, 010564) = 0 or 3

 
Guy Blatt
Occasional Contributor

open("/usr/lib/dld.sl", O_RDONLY, 010564) = 0 or 3

why if /usr/bin/date is copied to name/sub/date
cd ~name
truss ~name/sub/date -> gives open as 0
truss sub/date -> gives open as 3

This looks like the reason a fortan read(5 is failing

The fortran read(5 works (i.e. waits for user input) if the open is 3
and fails when the open is 0

*** FORTRAN I/O ERROR 933: END (OR BEGIN) OF FILE WITH NO "END=" SPECIFIER
FILE: , UNIT: 5
LAST FORMAT: (A)
( 0) 0xc0382118 __io_ded + 0x408 [/usr/lib/libcl.2]
( 1) 0xc0386f74 check_read + 0x64 [/usr/lib/libcl.2]
( 2) 0xc03874a0 read_to_newline + 0x354 [/usr/lib/libcl.2]
( 3) 0xc0387bd8 __read_seq_record + 0x30 [/usr/lib/libcl.2]
( 4) 0xc0387904 __new_record + 0xcc [/usr/lib/libcl.2]
( 5) 0xc03785b4 ____F90_START_IO + 0x4d8 [/usr/lib/libcl.2]
( 6) 0xc0378d0c FTN_S_RSFE + 0xa8 [/usr/lib/libcl.2]
( 7) 0x0000b41c funcb + 0x6b8 [/path/myprog]
( 8) 0x00008ef4 funca + 0x94 [/path/myprog]
( 9) 0x00004ab8 _start + 0x158 [/path/myprog]
UNIX is the only OS
1 REPLY 1
Steve Steel
Honored Contributor

Re: open("/usr/lib/dld.sl", O_RDONLY, 010564) = 0 or 3

Hi


Look at http://atwnt961.external.hp.com/dspp/topic/topic_TopicDetailPage_IDX/1,1711,10203,00.html

for documentation and technical hints.

Consider using optimisation and debug options and check the opens.

"When a file is auto-opened, some of its characteristics are determined by the read or write statement that causes the open,
e.g. whether it is formatted, sequential, etc.

This can cause this type of error.

ie. The BLANK attributs


Steve Steel

If you want truly to understand something, try to change it. (Kurt Lewin)