Re: SYSCALL_MODULE macro modified?

2009-03-11 Thread T.

T. wrote:
Found 7.0's sysent.h file modified at the commonly used SYSCALL_MODULE 
macro,
wasn't sure how I should modify my code to accommodate the change so 
changed the sysent.h (yikes!).

No biggy right? Removed the AUE_NULL. That's all that's been added.
But the argument was NULL, so what the hell else could I do? AUE_NULL 
didn't work.

And how can you be requiring anything else where once there was NULL.
And when I said NULL, I meant NULL! Boggling! This is related to some 
audit stuff?

Anyway...

#define SYSCALL_MODULE(name, offset, new_sysent, evh, arg) \
static struct syscall_module_data name##_syscall_mod = {   \
  evh, arg, offset, new_sysent, { 0, NULL, AUE_NULL }  \
}; \
   \
static moduledata_t name##_mod = { \
  #name,   \
  syscall_module_handler,  \
  &name##_syscall_mod  \
}; \
DECLARE_MODULE(name, name##_mod, SI_SUB_SYSCALLS, SI_ORDER_MIDDLE)
___


So, if anyone else is interested / doesn't already know, if you 
encounter AUE_NULL errors compiling
rather than go and removing AUE_NULL from the system source (which works 
too), you can just add


#include 

That's where AUE_NULL is defined.
You'd think they would have included that in the macro then, eh?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


SYSCALL_MODULE macro modified?

2009-03-10 Thread T.
Found 7.0's sysent.h file modified at the commonly used SYSCALL_MODULE 
macro,
wasn't sure how I should modify my code to accommodate the change so 
changed the sysent.h (yikes!).

No biggy right? Removed the AUE_NULL. That's all that's been added.
But the argument was NULL, so what the hell else could I do? AUE_NULL 
didn't work.

And how can you be requiring anything else where once there was NULL.
And when I said NULL, I meant NULL! Boggling! This is related to some 
audit stuff?

Anyway...

#define SYSCALL_MODULE(name, offset, new_sysent, evh, arg) \
static struct syscall_module_data name##_syscall_mod = {   \
  evh, arg, offset, new_sysent, { 0, NULL, AUE_NULL } \
}; \
  \
static moduledata_t name##_mod = { \
  #name,  \
  syscall_module_handler, \
  &name##_syscall_mod \
}; \
DECLARE_MODULE(name, name##_mod, SI_SUB_SYSCALLS, SI_ORDER_MIDDLE)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"