This is an old style of writing C functions where you could define a function like:
void foo(a) /* Function and its arguments */
int a; /* Define the type of the arguments */
{
// Function body
}
What you have in your function, after removing the comments:
int ufs_aclcheck(ap)
struct vop_aclcheck_args * ap;
{
// Function body
}