summaryrefslogtreecommitdiff
path: root/source4/lib/mutex.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-12-16 03:34:23 +0000
committerAndrew Tridgell <tridge@samba.org>2003-12-16 03:34:23 +0000
commit2c6b585f2de11d4facfe06b8e8db789d22955716 (patch)
tree2a89f80d3ddff3e3861dcfa8e100c4f6587a3b18 /source4/lib/mutex.c
parentff6478bb4a894228a8959ede750da9d079c13c7b (diff)
downloadsamba-2c6b585f2de11d4facfe06b8e8db789d22955716.tar.gz
samba-2c6b585f2de11d4facfe06b8e8db789d22955716.tar.bz2
samba-2c6b585f2de11d4facfe06b8e8db789d22955716.zip
more portability fixes. We now almost compile on solaris
(This used to be commit f4abd20b8437703211676fb12ea23af8f0e4642a)
Diffstat (limited to 'source4/lib/mutex.c')
-rw-r--r--source4/lib/mutex.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source4/lib/mutex.c b/source4/lib/mutex.c
index c1a0986040..8d1eee7828 100644
--- a/source4/lib/mutex.c
+++ b/source4/lib/mutex.c
@@ -28,17 +28,17 @@ static struct {
struct mutex_ops ops;
} mutex_handlers;
-int mutex_lock_by_id(enum mutex_id id, const char *name)
+int smb_mutex_lock_by_id(enum mutex_id id, const char *name)
{
- return mutex_lock(&mutex_list[id], name);
+ return smb_mutex_lock(&mutex_list[id], name);
}
-int mutex_unlock_by_id(enum mutex_id id, const char *name)
+int smb_mutex_unlock_by_id(enum mutex_id id, const char *name)
{
- return mutex_unlock(&mutex_list[id], name);
+ return smb_mutex_unlock(&mutex_list[id], name);
}
-int mutex_init(smb_mutex_t *mutex, const char *name)
+int smb_mutex_init(smb_mutex_t *mutex, const char *name)
{
if (mutex_handlers.ops.mutex_init) {
return mutex_handlers.ops.mutex_init(mutex, name);
@@ -46,7 +46,7 @@ int mutex_init(smb_mutex_t *mutex, const char *name)
return 0;
}
-int mutex_destroy(smb_mutex_t *mutex, const char *name)
+int smb_mutex_destroy(smb_mutex_t *mutex, const char *name)
{
if (mutex_handlers.ops.mutex_destroy) {
return mutex_handlers.ops.mutex_destroy(mutex, name);
@@ -54,7 +54,7 @@ int mutex_destroy(smb_mutex_t *mutex, const char *name)
return 0;
}
-int mutex_lock(smb_mutex_t *mutex, const char *name)
+int smb_mutex_lock(smb_mutex_t *mutex, const char *name)
{
if (mutex_handlers.ops.mutex_lock) {
return mutex_handlers.ops.mutex_lock(mutex, name);
@@ -62,7 +62,7 @@ int mutex_lock(smb_mutex_t *mutex, const char *name)
return 0;
}
-int mutex_unlock(smb_mutex_t *mutex, const char *name)
+int smb_mutex_unlock(smb_mutex_t *mutex, const char *name)
{
if (mutex_handlers.ops.mutex_unlock) {
return mutex_handlers.ops.mutex_unlock(mutex, name);