summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* build: Remove fallback call to sys_open as HAVE_CREAT is not actually ↵Andrew Bartlett2012-04-051-8/+0
| | | | checked for
* build: Remove sys_ftell wrapperAndrew Bartlett2012-04-051-9/+0
|
* build: Remove sys_lseek wrapperAndrew Bartlett2012-04-055-14/+5
|
* build: Remove sys_ftruncate wrapperAndrew Bartlett2012-04-052-11/+2
|
* build: do not use HAVE_EXPLICIT_LARGEFILE_SUPPORT and *64() fucntions any moreAndrew Bartlett2012-04-052-155/+44
|
* s3: Enhance the dbwrap needed x attempts msgVolker Lendecke2012-04-031-1/+5
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Apr 3 15:17:11 CEST 2012 on sn-devel-104
* s3-smbd: Inline init_modules() into only callerAndrew Bartlett2012-04-031-9/+0
|
* s3: Avoid a crash with debug level 10Volker Lendecke2012-03-301-1/+2
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Fri Mar 30 16:52:16 CEST 2012 on sn-devel-104
* s3: Fix a valgrind errorVolker Lendecke2012-03-291-1/+8
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Mar 29 15:50:13 CEST 2012 on sn-devel-104
* use usleep rather than sys_usleep in various places, in anticipation of ↵Jelmer Vernooij2012-03-241-34/+0
| | | | usleep moving to libreplace.
* lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij2012-03-249-16/+16
| | | | | | | | | The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
* adt_tree: Fix return types.Jelmer Vernooij2012-03-241-3/+3
|
* adt_tree: Avoid WERROR.Jelmer Vernooij2012-03-241-3/+3
|
* util_malloc: Remove unused constant.Jelmer Vernooij2012-03-241-3/+0
|
* lib/util: Remove dummy wrapper for getgrnam().Jelmer Vernooij2012-03-242-2/+2
|
* lib/util: Remove dummy wrapper for getpwnam().Jelmer Vernooij2012-03-241-2/+2
|
* lib/util: Remove dummy wrappers for setpwent/getpwent/endpwent.Jelmer Vernooij2012-03-241-1/+1
|
* lib/util: Move calloc_array and memalign_array to top-level libutil.Jelmer Vernooij2012-03-241-32/+0
|
* sock_exec: Avoid sys_connect.Jelmer Vernooij2012-03-241-2/+2
|
* util_sock: Avoid sys_connect.Jelmer Vernooij2012-03-241-7/+13
|
* ctdb_conn: Avoid sys_connect.Jelmer Vernooij2012-03-241-1/+3
|
* replace: Move memalign() from lib/util/system.c to libreplace.Jelmer Vernooij2012-03-241-1/+1
|
* libndr: Rename policy_handle_equal to ndr_policy_handle_equal.Jelmer Vernooij2012-03-201-3/+3
| | | This makes the NDR namespace a bit clearer, in preparation of ABI checking.
* s3-dbwrap: Move "lock_order" initialization to db_open_xxVolker Lendecke2012-03-164-6/+8
|
* Make reinit_after_fork_pipe_handler code with reads being interrupted by a ↵Jeremy Allison2012-03-151-1/+1
| | | | | | | signal. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 15 23:29:47 CET 2012 on sn-devel-104
* s3:smbd: let smbd/nmbd/winbindd child processes terminate if the parent ↵Michael Adam2012-03-151-0/+56
| | | | | | | | | | | process died. This applies to all child processes making use of reinit_after_fork(). It is implemented by establishing a pipe between parent and child. The child watches for EOF on the read end of the pipe, indidcating an exited parent. Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
* s3: Update waf build to include missed dependancy on Lion.Ira Cooper2012-03-151-1/+1
| | | | | Autobuild-User: Ira Cooper <ira@samba.org> Autobuild-Date: Thu Mar 15 07:34:43 CET 2012 on sn-devel-104
* tdb_wrap: Move to specific directory.Jelmer Vernooij2012-03-105-5/+5
| | | | | | | | | | It's a bit confusing to mix low-level and high-level libraries. We had multiple libraries in one directory, and there were have circular dependencies with other libraries outside that directory (in this case, samba-hostconfig). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 10 23:13:01 CET 2012 on sn-devel-104
* s3-ctdb: Enable CTDB readonly support only if CTDB supports itAmitay Isaacs2012-03-052-1/+12
| | | | | Autobuild-User: Amitay Isaacs <amitay@samba.org> Autobuild-Date: Mon Mar 5 02:47:36 CET 2012 on sn-devel-104
* dbwrap_ctdb: only fetch a read-only copy if we had a record already.Rusty Russell2012-03-052-4/+10
| | | | | | | | | | | | | Because revoking read-only copies of records is expensive, we only want ctdbd to do it for high-turnover records. A basic heuristic is that if we don't find a local copy of the record, don't ask for a read-only copy. The fetch itself will cause ctdbd to migrate the record, so eventually we will have a local copy. Next time it gets migrated away, we'll call ctdbd_fetch() with local_copy = true. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* ctdbd_conn: fetch read-only copies of records.Rusty Russell2012-03-051-2/+2
| | | | | | | This means we try to get a read-only copy of a record, which we can then place in the local tdb. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* dbwrap_ctdb: handle read-only records.Rusty Russell2012-03-051-9/+26
| | | | | | | | | | | | | | | | | | | | | The new read-only record flags make determining if we can use a record a bit more complex, so extract it into its own function. The OLD logic was: 1) If the record doesn't exist, we can't use it. 2) If we are the dmaster for the record, we can use it. The new logic is: 1) If the record doesn't exist, we can't use it. 2) If we are the dmaster for the record, we can use it IF we only want read-only access, OR there are no read-only delegations. 3) If we are not dmaster, we can only use it if we want read-only access and it is marked as a read-only copy. This logic is unused until the next patches which begin to ask for read-only copies of records. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* dbwrap: changed log level for information about lock orderAndrew Tridgell2012-02-271-1/+1
| | | | | | | | | we were filling our logs with lock ordering debug lines Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Feb 27 12:50:29 CET 2012 on sn-devel-104
* Fix a bunch of "unused variable" warnings.Jeremy Allison2012-02-181-74/+0
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Feb 18 06:22:40 CET 2012 on sn-devel-104
* lib/util: Remove unused sys_sendto()Andrew Bartlett2012-02-171-18/+0
| | | | | | | | | Found by callcatcher. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Feb 17 13:48:05 CET 2012 on sn-devel-104
* lib/util: Remove unused sys_recv()Andrew Bartlett2012-02-171-18/+0
| | | | | | Found by callcatcher. Andrew Bartlett
* s3-lib: Remove unused standard_sub_conn()Andrew Bartlett2012-02-171-19/+0
|
* s3-lib Remove unused sys_fcntl_long()Andrew Bartlett2012-02-171-14/+0
|
* s3-lib Remove unused sys_fseek()Andrew Bartlett2012-02-171-17/+0
|
* lib/util: Remove sys_poll as it is no longer neededAndrew Bartlett2012-02-163-16/+11
| | | | | | | | | | | sys_poll() is only needed if the signal pipe is set up and used, but as no signal handler ever writes to the pipe, this can all be removed. signal based events are now handled via tevent. Andrew Bartlett Signed-off-by: Jeremy Allison <jra@samba.org>
* Rename obscure defined constants.Christopher R. Hertel (crh)2012-02-161-2/+3
| | | | | | | | | | | | | | | Replaced the undescriptive SMB_PORT1 and SMB_PORT2 defined constants with the slightly more descriptive names NBT_SMB_PORT and TCP_SMB_PORT. Also replaced several hard-coded references to the well-known port numbers (139 and 445, respectively) as appropriate. Small changes to clarify some comments regarding the two transport types. Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Simo Sorce <idra@samba.org> Autobuild-Date: Thu Feb 16 08:29:41 CET 2012 on sn-devel-104
* s3: Add SERVERID_UNIQUE_ID_NOT_TO_VERIFY, bug 8760Volker Lendecke2012-02-152-2/+29
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Feb 15 21:10:22 CET 2012 on sn-devel-104
* s3-lib: Remove unused is_myworkgroup()Andrew Bartlett2012-02-101-17/+0
| | | | | | Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* s3-charcnv: Remove unused rpcstr_push()Andrew Bartlett2012-02-101-8/+0
| | | | | | Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* s3-lib: Remove unused pid_path()Andrew Bartlett2012-02-101-13/+0
| | | | | | | | piddir.c calls lp_piddir() directly. Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* s3-charcnv: Remove unused pull_string_fnAndrew Bartlett2012-02-101-35/+0
| | | | | | Found by callcatcher: http://www.skynet.ie/~caolan/Packages/callcatcher.html Andrew Bartlett
* s3-build: remove EXEEXT from MakefilesAndrew Bartlett2012-02-092-106/+106
| | | | | | | | As far as I am aware, we do not actually build on any platforms that require this. The last Stratos VOS release on ftp://ftp.stratus.com/vos/samba/samba.html was 3.0.5 Andrew Bartlett
* Remove unused get_file_size() function.Jeremy Allison2012-02-071-13/+0
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Feb 7 20:56:28 CET 2012 on sn-devel-104
* s3: Increase debug level of basic ctdb packet handlingVolker Lendecke2012-02-071-6/+6
| | | | | | | | This clutters the debug level 10 output significantly without much value Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Tue Feb 7 18:19:08 CET 2012 on sn-devel-104
* s3: FreeBSD does not define sin6_addr.s_addr32Volker Lendecke2012-02-061-1/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Feb 6 20:03:58 CET 2012 on sn-devel-104