[net.unix] lint - "struct/union" warning question

biggers@topaz.ARPA (Mark Biggers) (04/10/85)

I rely on and essentially "program for" lint, in the course
of my C programming.  So, I am quite familiar with *most*
of its helpful (and not so helpful) messages, EXCEPT:

warning: struct/union ptbl never defined
(and)
warning: struct/union proc never defined

and the line number these warnings refer to is always at the
end of the C source file.  Any one have a pointer to what
these refer to?

mark biggers (seismo!topaz!biggers)

biggers@topaz.ARPA (Mark Biggers) (04/11/85)

> I rely on and essentially "program for" lint, in the course
> of my C programming.  So, I am quite familiar with *most*
> of its helpful (and not so helpful) messages, EXCEPT:
> 
> warning: struct/union ptbl never defined
> (and)
> warning: struct/union proc never defined
> 

Here is the most accurate response to my query:

From: packard!ihnp4!aicchi!ignatz
Date: 11 Apr 85 10:35:32 CST (Thu)
Subject: Re: lint - "struct/union" warning question

Mark,

Hmmm...I remember that, on the Vax (Bell-derived, anyway),
there's a system structure known as 'ptbl', for the page table;
and 'proc' is the declaration of the process table.  Are you,
by any chance, including some system headers that may reference
these structures?
	Dave Ihnat
	Analysts International Corporation
	(312) 882-4673
	ihnp4!aicchi!ignatz

***************************************************************

Yep, I sure am.  Most of my source files of my current project
include "sys/types.h", and annoyingly enough, this file
references the "proc" structure.   I pride myself on fuzz-free
C code.

Thanks for all the replies (was kinda obvious, I think now...)
mark