Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2009-05-10 | Use bool instead of int for a boolean variable | Derrell Lipman | 1 | -1/+1 | |
2009-05-10 | Optimize smb_thread_once usage by not calling it if known already called | Derrell Lipman | 1 | -2/+6 | |
- The macro SMB_THREAD_ONCE now tests whether the "once" variable is already set, and if so avoids calling smb_thread_once(). Derrell | |||||
2009-05-10 | Panic upon mutex lock or unlock failure | Derrell Lipman | 1 | -2/+2 | |
- It's a serious error if we can't lock or unlock a mutex in smb_thread_once(). Panic instead of just displaying a DEBUG message. Derrell | |||||
2009-05-10 | Don't require external use of internal enum smb_thread_lock_type | Derrell Lipman | 1 | -3/+4 | |
- Internally, when locking or unlocking a mutex, we'll pass one of the values of enum smb_thread_lock_type. That enum is not available to users providing a thread implementation. Externally, we'll document the integer values which will be passed to their lock_mutex function, but not require them to access our internal header file. Derrell | |||||
2009-05-10 | Replace external thread "once" with an internal implementation | Derrell Lipman | 3 | -22/+66 | |
Jeremy, please check... - I'm in the process of providing an interface in libsmbclient to the recently-added threading capabilities. In the process, I discovered that different thread implementations have varying types for the variable passed to the thread_impl_once() function. pthreads, for example, uses type pthread_once_t. Since Samba needs to internally declare these variables, it would need to know the exact type required by each thread implementation's function. After considering multiple methods of obtaining an appropriately sized variable, I decided that for the basic "once" functionality required by Samba, it would be much simpler to just implement our own "once" functionality. We don't require cancellation points et all. This commit adds an smb_thread_once() function that is implemented using an internal mutex. The mutex itself uses the implementation's create_mutex function. This eliminates the need for the user to provide a smb_thread_once function pointer and the entire issue of that function's first parameter. Derrell | |||||
2009-05-03 | Clean up after Tridge's util_strlist changes | Volker Lendecke | 2 | -25/+30 | |
2009-04-28 | Fix a missing prototype warning | Volker Lendecke | 2 | -0/+3 | |
2009-04-28 | pm_process():raise level of debug message | Michael Adam | 1 | -1/+1 | |
Michael | |||||
2009-04-23 | Fix push_codepoint function without iconv_convenience. | Jelmer Vernooij | 1 | -1/+1 | |
2009-04-23 | Add a new non-convenience version of push_codepoint. | Jelmer Vernooij | 4 | -7/+15 | |
2009-04-20 | Ensure we have all the definitions needed in both threaded and non-threaded ↵ | Jeremy Allison | 1 | -9/+4 | |
versions. Jeremy. | |||||
2009-04-20 | Attempt to fix build farm on platforms where pthread_once_t is a struct. | Jeremy Allison | 2 | -3/+6 | |
Jeremy. | |||||
2009-04-20 | Fix the pthread_once initialization issue. Make talloc_stackframe use | Jeremy Allison | 4 | -38/+85 | |
this. Jeremy. | |||||
2009-04-15 | Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+ | Jeremy Allison | 1 | -1/+1 | |
What a difference a name makes... :-). Just because something is missnamed SAMR_ACCESS_OPEN_DOMAIN, when it should actually be SAMR_ACCESS_LOOKUP_DOMAIN, don't automatically use it for a security check in _samr_OpenDomain(). Jeremy. | |||||
2009-04-14 | Ensure a tls key is only generated once - wrap create & destroy in a mutex. | Jeremy Allison | 4 | -40/+71 | |
Change the function names to add _once to the tls_create & tls_destroy to make this obvious. Jeremy. | |||||
2009-04-14 | Make talloc_stack threadsafe using TLS. Volker please | Jeremy Allison | 4 | -25/+93 | |
check. Passes make test and basic valgrind testing. Jeremy. | |||||
2009-04-09 | Merge branch 'wspp-schema' | Andrew Tridgell | 2 | -6/+173 | |
2009-04-09 | added _const versions of some of the str_list_*() functions | Andrew Tridgell | 2 | -0/+84 | |
These const versions don't copy the strings themselves, which is useful when those strings point at known constant data (into the schema in this case) | |||||
2009-04-09 | added str_list_unique() and str_list_show() | Andrew Tridgell | 2 | -36/+62 | |
I also undid some of the const changes from Andrew, as they didn't in fact resolve the const warnings. | |||||
2009-04-08 | Add the thread functions to top level lib/util. | Jeremy Allison | 3 | -0/+277 | |
Not yet used, that's the next step. Jeremy. | |||||
2009-04-08 | Rework util_strlist prototypes to use a bit more and less const | Andrew Bartlett | 2 | -9/+43 | |
Hopefully this produces less warnings, but it might produce more... Andrew Bartlett | |||||
2009-04-07 | added a str_list_append() function | Andrew Tridgell | 1 | -0/+23 | |
2009-04-01 | lib/util: fallback to any id in idr_get_new_random() | Stefan Metzmacher | 1 | -2/+6 | |
metze | |||||
2009-03-26 | Merge branch 'master' of git://git.samba.org/samba | Jelmer Vernooij | 2 | -0/+11 | |
2009-03-24 | Add tevent_req_simple_recv_ntstatus() | Volker Lendecke | 2 | -0/+11 | |
2009-03-20 | Merge branch 'master' of ssh://git.samba.org/data/git/samba into displaysec | Jelmer Vernooij | 1 | -1/+8 | |
2009-03-19 | lib/util: build tevent_unix.o and tevent_ntstatus.o as UTIL_TEVENT subsystem | Stefan Metzmacher | 1 | -1/+8 | |
metze | |||||
2009-03-15 | Strip /usr/include from include flags, so we don't end up including | Jelmer Vernooij | 1 | -0/+2 | |
the system tevent if it's too old. | |||||
2009-03-15 | Remove -L/usr/lib from a couple more make variables. | Jelmer Vernooij | 1 | -0/+1 | |
2009-03-09 | Fix prototype mismatch. | Jelmer Vernooij | 1 | -1/+1 | |
2009-03-08 | Revert accidental reintroduction of void ** bug. | Jelmer Vernooij | 2 | -5/+7 | |
2009-03-03 | lib/util: remove samba specific talloc_get_type_abort() | Stefan Metzmacher | 2 | -22/+0 | |
metze | |||||
2009-03-02 | Import ISO-8859-1, 646 from Samba 3 iconv. | Jelmer Vernooij | 1 | -0/+29 | |
2009-03-01 | Use common header file for character set handling in Samba 3 and Samba 4. | Jelmer Vernooij | 3 | -38/+122 | |
2009-03-01 | s4: Use same function signature for convert_* as s3. | Jelmer Vernooij | 4 | -46/+77 | |
2009-03-01 | Merge branch 'master' of git://git.samba.org/samba into convenience | Jelmer Vernooij | 2 | -0/+115 | |
2009-03-01 | Move next_token_talloc to util.c, as util_str.c is only compiled inside samba 4. | Jelmer Vernooij | 2 | -100/+100 | |
2009-03-01 | Move next_token_talloc() to top-level. | Jelmer Vernooij | 2 | -0/+115 | |
2009-03-01 | Sync smb_iconv_t type, convert_string return type with Samba 3 equivalents. | Jelmer Vernooij | 2 | -2/+3 | |
2009-03-01 | Add allow_badcharcnv argument to all conversion function, for | Jelmer Vernooij | 4 | -23/+31 | |
consistency with Samba 3. | |||||
2009-02-26 | Add tevent_ntstatus | Volker Lendecke | 2 | -0/+83 | |
2009-02-24 | Add tevent_req_is_unix_error | Volker Lendecke | 2 | -0/+73 | |
2009-02-23 | Refactored sys_fork() and sys_pid() into shared util library | Steven Danneman | 3 | -3/+42 | |
This fixes a bug in 116ce19b, where we didn't clear the pid cache in become_daemon() and thus the /var/run/smbd.pid didn't match the actual pid of the parent process. Currently S4 will clear the pid cache on fork but doesn't yet take advantage of the pid cache by using sys_pid() instead of the direct get_pid(). | |||||
2009-02-21 | Fix shadowed declaration warning | Tim Prouty | 1 | -1/+1 | |
2009-02-20 | Moved become_daemon() and close_low_fds() to shared util lib | Steven Danneman | 2 | -14/+17 | |
2009-02-13 | Replace get_myname() with the talloc version from v3-3-test | Volker Lendecke | 2 | -17/+13 | |
2009-02-13 | Fix Coverity ID 707 (RESOURCE_LEAK) | Volker Lendecke | 1 | -0/+1 | |
2009-02-09 | Revert "s3/s4: Move CONST_DISCARD into lib/util so it's available from s3 ↵ | Jelmer Vernooij | 1 | -2/+0 | |
and s4" lib/util already has discard_const_p. This reverts commit 0cb430c22e9c0af2248fbc15ce97a4d760df189d. | |||||
2009-02-02 | Attempt to fix "make test" on host "tridge" | Volker Lendecke | 1 | -1/+1 | |
2009-02-02 | lib/util: s/new/pn in idtree.c | Stefan Metzmacher | 1 | -16/+16 | |
metze |