Define osi_procname for FBSD
authorBen Kaduk <kaduk@mit.edu>
Fri, 7 May 2010 04:47:53 +0000 (00:47 -0400)
committerDerrick Brashear <shadow@dementia.org>
Fri, 7 May 2010 17:51:58 +0000 (10:51 -0700)
The kernel linker doesn't like to load modules with unresolved
(implicitly-defined) symbols (understandably).  Make it happy.

Change-Id: I23fdbb9c9e07a0c583580f5c5eee577a04fae278
Reviewed-on: http://gerrit.openafs.org/1925
Reviewed-by: Simon Wilkinson <sxw@inf.ed.ac.uk>
Reviewed-by: sanket <sanket@sanketagarwal.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Benjamin Kaduk <kaduk@mit.edu>

src/afs/FBSD/osi_machdep.h

index dd5e965..eddb35b 100644 (file)
@@ -150,4 +150,6 @@ extern struct thread *afs_global_owner;
 #undef USERPRI
 #define USERPRI splx(splvar)
 
+#define osi_procname(procname, size) strncpy(procname, curproc->p_comm, size)
+
 #endif /* _OSI_MACHDEP_H_ */