--- a/usr/src/lib/libc/port/gen/memalign.c Tue Jun 13 10:16:49 2006 -0700
+++ b/usr/src/lib/libc/port/gen/memalign.c Tue Jun 13 10:19:16 2006 -0700
@@ -2,9 +2,8 @@
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
- * Common Development and Distribution License, Version 1.0 only
- * (the "License"). You may not use this file except in compliance
- * with the License.
+ * Common Development and Distribution License (the "License").
+ * You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolaris.org/os/licensing.
@@ -19,8 +18,9 @@
*
* CDDL HEADER END
*/
+
/*
- * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -29,7 +29,6 @@
/* Copyright (c) 1988 AT&T */
/* All Rights Reserved */
-
#pragma weak memalign = _memalign
#include "synonyms.h"
@@ -117,7 +116,7 @@
/* malloc sets errno */
return (NULL);
}
- lmutex_lock(&libc_malloc_lock);
+ (void) _private_mutex_lock(&libc_malloc_lock);
/*
* get size of the entire block (overhead and all)
@@ -178,6 +177,6 @@
SIZE(blk) = frag_size | BIT0;
_free_unlocked(DATA(blk));
}
- lmutex_unlock(&libc_malloc_lock);
+ (void) _private_mutex_unlock(&libc_malloc_lock);
return (DATA(aligned_blk));
}