s4-netlogon: implement dcesrv_netr_DsRAddressToSitenamesExW
[Samba/aatanasov.git] / source3 / libsmb / libsmb_thread_posix.c
blob6519659c25cca16233bc5308693b2d7d785522d7
1 /*
2 Unix SMB/Netbios implementation.
3 SMB client library implementation
4 Copyright (C) Derrell Lipman 2009
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #include "includes.h"
21 #include <pthread.h>
22 #include "libsmbclient.h"
23 #include "libsmb_internal.h"
26 /* Get rid of the malloc checker */
27 #ifdef malloc
28 #undef malloc
29 #endif
32 * Define the functions which implement the pthread interface
34 SMB_THREADS_DEF_PTHREAD_IMPLEMENTATION(tf);
37 /**
38 * Initialize for threads using the Posix Threads (pthread)
39 * implementation. This is a built-in implementation, avoiding the need to
40 * implement the component functions of the thread interface. If this function
41 * is used, it is not necessary to call smbc_thread_impl().
43 * @return {void}
45 void
46 smbc_thread_posix(void)
48 smb_thread_set_functions(&tf);