Commit f6184c76 by Dave Love Committed by Dave Love

u77-test.f (main): Excise `hostnm' to avoid losing on systems which need -lsocket.

1998-09-30  Dave Love  <d.love@dl.ac.uk>
	* g77.f-torture/execute/u77-test.f (main): Excise `hostnm' to
	avoid losing on systems which need -lsocket.

From-SVN: r22669
parent 43b80f82
1998-09-30 Dave Love <d.love@dl.ac.uk>
* g77.f-torture/execute/u77-test.f (main): Excise `hostnm' to
avoid losing on systems which need -lsocket.
1998-09-28 Alexandre Oliva <oliva@dcc.unicamp.br> 1998-09-28 Alexandre Oliva <oliva@dcc.unicamp.br>
* g++.old-deja/g++.other/bitfld1.C: expected failure * g++.old-deja/g++.other/bitfld1.C: expected failure
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
real tarray1(2), tarray2(2), r1, r2, sum real tarray1(2), tarray2(2), r1, r2, sum
intrinsic getpid, getuid, getgid, ierrno, gerror, intrinsic getpid, getuid, getgid, ierrno, gerror,
+ fnum, isatty, getarg, access, unlink, fstat, + fnum, isatty, getarg, access, unlink, fstat,
+ stat, lstat, getcwd, gmtime, hostnm, etime, chmod, + stat, lstat, getcwd, gmtime, etime, chmod,
+ chdir, fgetc, fputc, system_clock, second, idate, secnds, + chdir, fgetc, fputc, system_clock, second, idate, secnds,
+ time, ctime, fdate, ttynam, date_and_time + time, ctime, fdate, ttynam, date_and_time
external lenstr, ctrlc external lenstr, ctrlc
...@@ -159,13 +159,15 @@ c now try to get times to change enough to see in etime/dtime ...@@ -159,13 +159,15 @@ c now try to get times to change enough to see in etime/dtime
write (6,*) '***CHDIR to ".": ', i write (6,*) '***CHDIR to ".": ', i
call abort call abort
end if end if
i=hostnm(wd) CCC Don't do this, beacuse some targets need -lsocket, which we don't
if(i.ne.0) then CCC have a mechanism for supplying.
call perror ('*** hostnm') CCC i=hostnm(wd)
call abort CCC if(i.ne.0) then
else CCC call perror ('*** hostnm')
write (6,*) 'Host name is ', wd(:lenstr(wd)) CCC call abort
end if CCC else
CCC write (6,*) 'Host name is ', wd(:lenstr(wd))
CCC end if
i = access('/dev/null ', 'rw') i = access('/dev/null ', 'rw')
if (i.ne.0) write (6,*) '***Read/write ACCESS to /dev/null: ', i if (i.ne.0) write (6,*) '***Read/write ACCESS to /dev/null: ', i
write (6,*) 'Creating file "foo" for testing...' write (6,*) 'Creating file "foo" for testing...'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment