summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-02-24 12:40:43 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:18:10 -0500
commit56c1d7e5078ca6b79bb286f458956b5f49c83e81 (patch)
treef59e13e33a7dbd9ff81ced5dbf1fd23ff469d6ac /source3/include
parentd43dbee7133e069f0f34d6adea8d8b4ac0268797 (diff)
downloadsamba-56c1d7e5078ca6b79bb286f458956b5f49c83e81.tar.gz
samba-56c1d7e5078ca6b79bb286f458956b5f49c83e81.tar.bz2
samba-56c1d7e5078ca6b79bb286f458956b5f49c83e81.zip
r21525: Go ahead and checkin the mlock() & memalign() fixes so
others don't get stuck with the winbindd hang. Still waiting on additional confirmation from Guenther that this fixes thes issues he was observing as well. But it's been running in my local tree for a day without problems. (This used to be commit 0d2b80c6c4a744b05a0efdec352cddccc430e0c4)
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/smb_macros.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h
index 4b4351347f..4ca227c21e 100644
--- a/source3/include/smb_macros.h
+++ b/source3/include/smb_macros.h
@@ -276,6 +276,7 @@ copy an IP address from one buffer to another
*****************************************************************************/
#define SMB_MALLOC_ARRAY(type,count) (type *)malloc_array(sizeof(type),(count))
+#define SMB_MEMALIGN_ARRAY(type,align,count) (type *)memalign_array(sizeof(type),align,(count))
#define SMB_REALLOC(p,s) Realloc((p),(s),True) /* Always frees p on error or s == 0 */
#define SMB_REALLOC_KEEP_OLD_ON_ERROR(p,s) Realloc((p),(s),False) /* Never frees p on error or s == 0 */
#define SMB_REALLOC_ARRAY(p,type,count) (type *)realloc_array((p),sizeof(type),(count),True) /* Always frees p on error or s == 0 */