[m-dev.] name collision for `sp'

Thomas Charles CONWAY conway at cs.mu.oz.au
Thu Jul 17 09:45:12 AEST 1997


Fergus Henderson, you write:
> Hi,
> 
> Tom, your changes to io.m, specifically adding `#include <sys/file.h>',
> cause the compiler to break on Solaris.  The problem that one of the
> system headers included by <sys/file.h> defines a structure with
> a field named `sp', but we use `sp' as a macro, and the net result
> is a syntax error.
> 
> Could you please fix this, or back out your change to add io__lock_file?
> 
> P.S.
> While investigating this problem, I checked the man page for flock()
> on Solaris, and noticed the following:
> 
> 	NAME
> 		flock - apply or remove an advisory lock on an open file
> 
> 	...
> 	NOTES
> 		Use of these interfaces should be restricted to only  appli-
> 		cations  written  on BSD platforms.  Use of these interfaces
> 		with any of the system libraries or in multi-thread applica-
> 		tions is unsupported.
> 
> This does not bode well...
> 

I think I'll back out the change for the time being.

Thomas
-- 
ZZ:wq!
^X^C
Thomas Conway               				      conway at cs.mu.oz.au
AD DEUM ET VINUM	  			      Every sword has two edges.



More information about the developers mailing list