Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* sysmisc.h syntax error?
@ 1996-10-11  4:00 Rohn Wood
  0 siblings, 0 replies; only message in thread
From: Rohn Wood @ 1996-10-11  4:00 UTC (permalink / raw)



Is there a c-programmer out there who can spot the syntax error in this
code snippet from Digital UNIX 4.0's /usr/include/sys/sysmisc.h file?  When
attemping to compile just a simple c++ program, the compile dies. 
Similarly, attempts to compile libg++ die on this same file in the same
line-range (100-106).  I have included below, the output from the compile
of the simple program, the code of th esimple program, and the offending
range of lines in sysmisc.h

Any insights would be appreciated.  I am not (obviously) a C programmer.

------------------------- compile stdout
---------------------------------------------------------
# g++ t.cc
In file included from /usr/include/sys/timers.h:46,
                 from
/usr/public/lib/gcc-lib/alpha-dec-osf/2.7.2/include/time.h:167,
                 from t.cc:1:
/usr/include/sys/sysmisc.h:100: syntax error before `*'

----------------------------------------------------------------------------
-------------------
The code which produced this:

------------------------------------ t.cc 
code-----------------------------------------------------
#include <time.h>
main()
{
}


------------------------------ sysmisc.h 
-----------------------------------------------------------

The offending lines of code in sysmisc.h are: (line 100...)


#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 199506L) 
		/*
		 * These fields appear only when compiling
		 * for threaded applications. See SIGEV_THREAD
		 * above.
		 */
		void		      (*_sigev_notify_function) __((sigval_t));
		pthread_attr_t *_sigev_notify_attribute; 
/*                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                         LINE WITH SYNTAX ERROR
*/

#endif /* _POSIX_C_SOURCE >= 199506L */
begin 600 out.txt
M(R!G*RL@="YC8PI);B!F:6QE(&EN8VQU9&5D(&9R;VT@+W5S<B]I;F-L=61E
M+W-Y<R]T:6UE<G,N:#HT-BP*(" @(" @(" @(" @(" @("!F<F]M("]U<W(O
M<'5B;&EC+VQI8B]G8V,M;&EB+V%L<&AA+61E8RUO<V8O,BXW+C(O:6YC;'5D
M92]T:6UE+F@Z,38W+ H@(" @(" @(" @(" @(" @(&9R;VT@="YC8SHQ.@HO
M=7-R+VEN8VQU9&4O<WES+W-Y<VUI<V,N:#HQ,# Z('-Y;G1A>"!E<G)O<B!B
+969O<F4@8"HG"@HO
`
end
end




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1996-10-11  4:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-11  4:00 sysmisc.h syntax error? Rohn Wood

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox