Export prototypes for osi_fbsd_{alloc,free} for use in rx
authorBen Kaduk <kaduk@mit.edu>
Tue, 9 Mar 2010 04:38:15 +0000 (23:38 -0500)
committerDerrick Brashear <shadow@dementia.org>
Tue, 9 Mar 2010 05:11:52 +0000 (21:11 -0800)
Include prototypes for osi_fbsd_alloc() and osi_fbsd_free() in
osi_machdep.h, since afs_prototypes.h is not included when compiling
the rx code.  afs_osi_Alloc_NoSleep is #defined to be osi_fbsd_free,
and is used in the rx code; if the prototype for the latter is not
included, then int is assumed for all parameters and return values,
which breaks the calling convention for 64-bit pointers.

Change-Id: I3d7575525f159097d1f8ca9ecb22af9f27b63111
Reviewed-on: http://gerrit.openafs.org/1541
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>

src/afs/FBSD/osi_machdep.h

index 4c04884..e22760b 100644 (file)
@@ -76,6 +76,10 @@ extern int (**afs_vnodeop_p) ();
 
 #define afs_strcat(s1, s2)     strcat((s1), (s2))
 
+/* malloc */
+extern void *osi_fbsd_alloc(size_t size, int dropglobal);
+extern void osi_fbsd_free(void *p);
+
 #undef afs_osi_Alloc_NoSleep
 #define afs_osi_Alloc_NoSleep(size) osi_fbsd_alloc((size), 0)