[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Inquiring cttys



Andreas Schwab writes:

> Juergen Lock <nox@jelal.north.de> writes:
> 
> |> 	volatile struct stat sb;
> 
> |> 	*(short *)&sb = fd;	/* -1 for /dev/tty */
> |> 	if (r = Fcntl(procf, &sb, PFSTAT))
> |> 		error ...
> |> 	find device...
> 
> |> (volatile seems necessary because of the gcc Fcntl binding(?), can this be
> |> fixed?)
> 
> This should not be necessary with newer gcc's, where the pseudo
> register "memory" can be specified as being clobbered in the asm spec.
> I think this is taken care of in the current MiNTlibs.

 just checked, the "memory" is there, apparently gcc 2.3.3pl2 silently
ignored it...  (sorry not tried 2.5.8 yet.)
> 
> Andreas.
 *shrug*
	Juergen
-- 
J"urgen Lock / nox@jelal.north.de / UUCP: ..!uunet!unido!uniol!jelal!nox
								...ohne Gewehr
PGP public key fingerprint =  8A 18 58 54 03 7B FC 12  1F 8B 63 C7 19 27 CF DA