canavan wrote:
While you're there, check the man page for limits
Got past that error with a simple #include<limits.h> which seemed to work thank you (i hope) but moving right along ...
Code:
cc-1020 cc: ERROR File = /usr/include/sys/vnode.h, Line = 375
The identifier "mprot_t" is undefined.
typedef int (*vop_map_t)(bhv_desc_t *, off_t, size_t, mprot_t, u_int,
^
cc-1020 cc: ERROR File = /usr/include/sys/vnode.h, Line = 378
The identifier "mprot_t" is undefined.
pgno_t *, off_t, size_t, mprot_t,
^
Okay, I give up. If
typedef int (*vop_map_t)(bhv_desc_t *, off_t, size_t,
mprot_t,
u_int,
doesn't define mprot_t what is needed to define it ? This is what I get from diegel's helpful searchment suggestion :
Code:
urchin 1% find /usr/include -exec fgrep mprot_t {} \; -print
off_t, size_t, mprot_t, struct cred *,
/usr/include/sys/fs/spec_ops.h
mprot_t, u_int, struct cred *, vnode_t **);
mprot_t, struct cred *);
/usr/include/sys/pvnode.h
typedef uchar_t mprot_t; /* memory protections (PROT_*) */
/usr/include/sys/types.h
typedef int (*vop_map_t)(bhv_desc_t *, off_t, size_t, mprot_t, u_int,
pgno_t *, off_t, size_t, mprot_t,
/usr/include/sys/vnode.h
fgrep: /usr/include/X11/Xirisw: No such file or directory
fgrep: /usr/include/X11/uil: No such file or directory
fgrep: /usr/include/uil: No such file or directory
(Another puzzle is why we are searching directories that don't exist ... something told fgrep to look there and it wasn't me
)