summaryrefslogtreecommitdiffstats
path: root/source3/lib/module.c
Commit message (Collapse)AuthorAgeFilesLines
* s3:lib: remove unused/empty modules.cStefan Metzmacher2011-10-061-22/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Oct 6 15:23:45 CEST 2011 on sn-devel-104
* lib/util: consolidate module loading into common codeAndrew Bartlett2011-10-061-120/+0
| | | | | | This creates a samba-modules private libary that handles the details. Andrew Bartlett
* s3-module allow libreplace to provide dlopen replacementAndrew Bartlett2011-10-061-24/+0
| | | | | | | | | Given that we have replacement dlopen() etc, use this from libreplace. The dlerror() from libreplace gives a good error if the platform really does not have dlopen(). Andrew Bartlett
* lib/util use modules_path(), data_path() and shlib_ext() from source3Andrew Bartlett2011-06-061-4/+4
| | | | | | | | | | This brings these helpful utility functions in common, as they are not based on either loadparm system. (The 'modules dir' parameter from Samba4 will shortly be removed, so there is no loss in functionality) Andrew Bartlett
* Remove sys_dl*() - stubs are already provided by libreplace.Jelmer Vernooij2008-11-011-8/+8
|
* Use module_path() instead of lib_path() for loading shared modules.Michael Adam2008-08-151-1/+1
| | | | | Michael (This used to be commit 22fb3ef1bb4abb33b49d275f9a5d85a1924c22ea)
* init_shared_module -> init_samba_moduleVolker Lendecke2008-06-231-2/+2
| | | | (This used to be commit 9b174871a87677f7dfbd897a80e526f203906bea)
* Use "init_shared_module" instead of "init_module" for initializing .so'sVolker Lendecke2008-06-211-3/+3
| | | | (This used to be commit 0c2fd687b25e32d446ef799927db6933bc61223d)
* CID 458. Don't leak dlopen handles on failing to loadJeremy Allison2008-01-121-0/+2
| | | | | | module. Jeremy. (This used to be commit 8809eaeb154ea12543455f589e31172dc905d83a)
* RIP BOOL. Convert BOOL -> bool. I found a few interestingJeremy Allison2007-10-181-1/+1
| | | | | | | | bugs in various places whilst doing this (places that assumed BOOL == int). I also need to fix the Samba4 pidl generation (next checkin). Jeremy. (This used to be commit f35a266b3cbb3e5fa6a86be60f34fe340a3ca71f)
* r25326: Free the context from the talloc_stackframe.Günther Deschner2007-10-101-2/+5
| | | | | Guenther (This used to be commit 0719835c4d979c91d11b139e5b424b5e0dc2a2c2)
* r25170: Remove pstring limits from ms_fnmatch and module load.Jeremy Allison2007-10-101-15/+25
| | | | | Jeremy. (This used to be commit 764574ee05ea4f13cdd30c0a0668ffeb81756989)
* r23784: use the GPLv3 boilerplate as recommended by the FSF and the license textAndrew Tridgell2007-10-101-2/+1
| | | | (This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
* r23779: Change from v2 or later to v3 or later.Jeremy Allison2007-10-101-1/+1
| | | | | Jeremy. (This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
* r21784: Replace smb_register_idle_event() with event_add_timed(). This fixes ↵Volker Lendecke2007-10-101-85/+0
| | | | | | | | | winbind who did not run the idle events to drop ldap connections. Volker (This used to be commit af3308ce5a21220ff4c510de356dbaa6cf9ff997)
* r15655: Log the result of module initialisation if it fails.James Peach2007-10-101-2/+6
| | | | (This used to be commit 3446ee5c00e114fd6697b2d70888d55ad79e63f9)
* r10656: BIG merge from trunk. Features not copied overGerald Carter2007-10-101-74/+0
| | | | | | | | * \PIPE\unixinfo * winbindd's {group,alias}membership new functions * winbindd's lookupsids() functionality * swat (trunk changes to be reverted as per discussion with Deryck) (This used to be commit 939c3cb5d78e3a2236209b296aa8aba8bdce32d3)
* r4088: Get medieval on our ass about malloc.... :-). Take control of all our ↵Jeremy Allison2007-10-101-2/+2
| | | | | | | | | | allocation functions so we can funnel through some well known functions. Should help greatly with malloc checking. HEAD patch to follow. Jeremy. (This used to be commit 620f2e608f70ba92f032720c031283d295c5c06a)
* r4009: Fix from Timur Bakeyev <timur@com.bat.ru> for bugid #2100,Jeremy Allison2007-10-101-1/+4
| | | | | | | | change the way we check for errors after a dlopen (which may set internal warnings which get picked up by mistake in dlsym). Jeremy (This used to be commit 6711cb8b02f96d04af82d30b1274f76dc5461dc2)
* Look at error before using it in debug statement.Jeremy Allison2003-11-191-3/+2
| | | | | Jeremy. (This used to be commit 69550332f33496b0a513914e2290fdb256bc2958)
* Unregister event fix from metze.Jeremy Allison2003-09-171-3/+6
| | | | | Jeremy. (This used to be commit 0aee73d45733a8eca437954e0c9fd54884bbe770)
* For some reason testparm runs at debug level 2 which causes the module probe ↵Tim Potter2003-09-151-1/+1
| | | | | | | functions to display verbose debugs. Increase the probe debugs to level 3. (This used to be commit d71a7470d721be05ecde44010cf278e8de08d9d3)
* Quieten level 0 debug when probing for modules. We shouldn't display so loudTim Potter2003-09-041-6/+22
| | | | | | | an error when a smb_probe_module() fails. Also tidy up debugs a bit. Bug 375. (This used to be commit 24a1720472f1340778dea76a88770520dca26f12)
* get rid of more compiler warningsHerb Lewis2003-08-151-1/+1
| | | | (This used to be commit 398bd14fc6e2f8ab2f34211270e179b8928a6669)
* Remove module_path_get_name() - it's not used anywhere anymore and was a bad ↵Jelmer Vernooij2003-05-301-23/+0
| | | | | | idea anyway. (This used to be commit b45a67e7a9d0fab5b4af701a9fd483cc4897ab7f)
* Get the events API right. Patch from metze with some minor modifications.Jelmer Vernooij2003-05-291-51/+103
| | | | (This used to be commit 2aad5736256968f27c42a6f94bdbc7a22c236c19)
* Remove unused variablesJelmer Vernooij2003-05-061-4/+0
| | | | (This used to be commit 2f631769f836baeec669456f786ecb38c81d9a23)
* Patch from metze to add exit and interval events. Useful for modulesJelmer Vernooij2003-05-061-1/+110
| | | | (This used to be commit 3033a63cefb5f28d4460885f7f4e4ecaed95443c)
* Add a comment about the use of string functions in the modules code, andAndrew Bartlett2003-05-031-4/+9
| | | | | | | add \n to the end of the non-dlopen case DEBUGs. Andrew Bartlett (This used to be commit ce4ff4cc8e5f5d461797e42b2148b2827c058380)
* Use NTSTATUS as return value for smb_register_*() functions and init_module()Jelmer Vernooij2003-04-281-11/+11
| | | | | function. Patch by metze with some minor modifications. (This used to be commit bc4b51bcb2daa7271c884cb83bf8bdba6d3a9b6d)
* Check for absolute paths by only checking the first character of the module ↵Jelmer Vernooij2003-04-241-1/+1
| | | | | | | name. Don't use strchr_m, which caused race conditions. (This used to be commit 69ec6be90f889686641b997d3d5cd616e1d0db6d)
* Add some more functions for the modules (backport from HEAD):Jelmer Vernooij2003-04-141-9/+88
| | | | | | - init_modules() - smb_probe_module() (This used to be commit b3328dab2fa069af300b4076695bf6c359501111)
* Merge in smb_load_module() function from HEADJelmer Vernooij2003-02-201-24/+0
| | | | (This used to be commit 6cb124247d10de86bdf6a98f3dd703b3a9eb1d35)
* dlsym() can return NULL validly, so we can't use that as the error test.Jim McDonough2003-01-171-2/+6
| | | | | dlerror() is the correct way to test. (This used to be commit 41b1be15bac271116a7096e511cc029685013e1f)
* Add a DEBUG() that gives the number of successfully loaded modules - useful ↵Jelmer Vernooij2002-11-131-0/+2
| | | | | | for debugging (This used to be commit 612ea35ab016c56e6ad9886283901bc7b417337a)
* add smb_load_modules() to load a list of modules - does this function look ok ?Jelmer Vernooij2002-10-311-0/+22
| | | | (This used to be commit a82dbb3c22e6cb2096efb87c12a6006642806aac)
* use sys_dlopen instead of dlopen (thanks to jra for noticing)Jelmer Vernooij2002-10-301-1/+1
| | | | (This used to be commit 86eb0a25b1df8ca25872f9846a74d0f13a4ad045)
* - Remove RTLD_GLOBALJelmer Vernooij2002-10-301-3/+4
| | | | | - make smb_load_module() return the return value of init_module() (This used to be commit a8d2dd8d009797486105188f8fdb898a65bb25b0)
* Add initial vesion of new module systemJelmer Vernooij2002-10-301-0/+63
(This used to be commit b5d05d3ec6808465d27e15db2a9ff48804e2e78e)