Re: Checking syscall arguments

2002-09-11 Thread Maxime Henrion
Grahame Bowland wrote: > > Hi all, > > When implementing a syscall for FreeBSD, how do you ensure that the arguments > you have been passed are sane? I'm interested in the following syscall: > int setattr(char *file, struct stat *st, unsigned bitmap); > > As far as I can see from reading sim

Checking syscall arguments

2002-09-11 Thread Grahame Bowland
Hi all, When implementing a syscall for FreeBSD, how do you ensure that the arguments you have been passed are sane? I'm interested in the following syscall: int setattr(char *file, struct stat *st, unsigned bitmap); As far as I can see from reading similar functions, such as fhstatfs, the