summaryrefslogtreecommitdiff
path: root/source4/lib
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r21174: many thanks to Paul Wayper for pointing out that C99 requires aAndrew Tridgell5-11/+18
matching va_end() for each va_copy(). This doesn't matter for most architectures, but there could be some obscure ones where it does matter. some of this should be ported to Samba3 (This used to be commit 21eb316473486cb6b73bb3ff9c5f3a44ecd57e4a)
2007-10-10r21171: fixed a bug related to recursive event handling.Andrew Tridgell4-11/+7
If this happens: - two sockets are readable, and select/epoll/aio returns both of them - read event on socket1 is called - inside that read event an event_loop_once is called, this returns that socket2 is readable - read event on socket2 is called - event_loop_once returns - top level event handler then calls read event on socket2 (as it still has that listed as readable) - read handler for socket2 returns zero byte read, which is interpreted as end of file - socket is incorrectly closed this happened with ctdb, but it could happen anywhere (just rarely). The fix is trivial - ensure we break out of the event loop when we have been called recursively. (This used to be commit e042002bb5ee8974220e1ade56b64389571f75a6)
2007-10-10r20989: don't mark epoll as set until after the io_submit() succeedsAndrew Tridgell1-1/+1
this is part of the solution to LOCAL-EVENT on fort (This used to be commit 35f62bc12559e355d4ac73018afe255ea7c5866b)
2007-10-10r20984: Try to ensure we can't have sig_state dissapear before se.Andrew Bartlett1-0/+5
I think this happens when both are eventual children of the autofree context. (Trying to track down a valgrind error on fort). Andrew Bartlett (This used to be commit aee751497ca738fa0de72dd0748590a74d5af2fd)
2007-10-10r20981: Fix cut'n'paste error.James Peach1-1/+1
(This used to be commit 20dcd6e2416d656e97b8cc060809673a97d5cde6)
2007-10-10r20969: remove unused function, found my lcovStefan Metzmacher1-49/+0
metze (This used to be commit 0c5eb19ebc12bc954c23e9f561d5f96644a19aca)
2007-10-10r20960: attempt to fix a valgrind error in the signals backend.Andrew Tridgell1-38/+48
This also reduces the static data in the signal backend when not using signals to 4 bytes. (This used to be commit 071a6e8eb1861b10b8a7aa61470f21a546ffa0ca)
2007-10-10r20952: when a component is changed we need to rebuild the linearized stringStefan Metzmacher1-0/+1
metze (This used to be commit beb816fb78ec4a7816680611af6619740e159424)
2007-10-10r20941: avoid races in the block/unblock codeAndrew Tridgell1-3/+11
(This used to be commit 83353ec0cd05464abb581f51d8c26ade7f0876fe)
2007-10-10r20940: allow SA_SIGINFO signals to be oneshot. Why you would ever want thisAndrew Tridgell1-0/+3
is beyond me :-) (This used to be commit e892cbdb4bb0779f8abb0902bee4a2e79456808d)
2007-10-10r20939: reduce the amount of static state for signal handlers from 96k to 1.2kAndrew Tridgell1-4/+23
(This used to be commit bf060ce4fe3b58fc3e58214490c4da9c6644c365)
2007-10-10r20938: use a double counter trick to avoid the need for atomic incrementAndrew Tridgell1-10/+31
(This used to be commit 7c7b79ed042abebc48d8eaa71c252df3200a84d9)
2007-10-10r20934: I *hate* deep indents :-)Volker Lendecke1-26/+28
(This used to be commit c98dd55e32a1d2df016e7a4deba218cd54efcdd2)
2007-10-10r20930: use sigaction() instead of signal()Andrew Tridgell5-11/+91
add support for sa_flags argument to event_add_signal(). These are passed to sigaction(). Special handling is provided for SA_RESETHAND (which tells the event system to remove the handler after the signal) and SA_SIGINFO which allows the siginfo structure to be received per signal (This used to be commit 1bb10b6cf7d717ad21834e73a4ca4b22b5fb6f0a)
2007-10-10r20929: fixed typoAndrew Tridgell1-4/+4
(This used to be commit bad87e2c82208646c331507d3999a3311ed153d9)
2007-10-10r20928: added signal events to lib/eventsAndrew Tridgell10-2/+261
Jeremy asked for this to allow Samba3 to use the Samba4 events library see torture/local/event.c for an example (This used to be commit 7e105482ff9a3da6b4708ff99a64f1881614fc5f)
2007-10-10r20865: remove useless warning, we now always pass the current partitionStefan Metzmacher1-25/+10
control as non critical control metze (This used to be commit 21fddb643bf05ca2b7c60a4695e1fff0f29ec6d1)
2007-10-10r20852: add a function to add a ldb control to a ldb_requestStefan Metzmacher2-0/+40
metze (This used to be commit f0bf86ed66f7f9995df35db55f2f3875e7dbacbe)
2007-10-10r20819: - include system/aio.hStefan Metzmacher2-2/+3
- use full prototype for main - use ifdef instead if metze (This used to be commit b3a3c44f42455d6f84ab2f1f282fb177f8b6013c)
2007-10-10r20816: merge from samba3:Stefan Metzmacher2-0/+5
include setjmp.h via system/wait.h metze (This used to be commit 1b10cbb62950693760d4af6ab8691a4ba70908c9)
2007-10-10r20815: merge from samba3Stefan Metzmacher1-1/+1
metze (This used to be commit 5b8387969dcc1575a71eaf2daa8f42b94c87bbd0)
2007-10-10r20810: unlink the test file when the test is doneStefan Metzmacher1-0/+1
metze (This used to be commit d3e10679afe436b994813e60b117bc42e6c2ed8f)
2007-10-10r20794: hopefully fix the build on systems without native linux aioStefan Metzmacher1-1/+1
metze (This used to be commit 4787b8e1f7a7bb6b1e0f8ca64a27e4c5e6f53c2c)
2007-10-10r20788: - remove epoll configure checks from libreplaceStefan Metzmacher5-29/+15
- fix epoll configure checks for the epoll and aio events backends - we should only activate the epoll backend if sys/epoll.h and epoll_create() are found - we should only activate the aio backend if sys/epoll.h, epoll_create(), libaio.h and io_getevents() are found hopefully fix the build on 'bnhtest' in the build farm... metze (This used to be commit d46a5efb03ea1df50567cad00e1589870cdb31fe)
2007-10-10r20787: a subsystem doesn't need explicit dependencies to its modulesStefan Metzmacher1-1/+1
metze (This used to be commit 017cf3f13799b03e0aef995bc4fa9ae74bc1acb7)
2007-10-10r20772: fix segfault caused by ldb_set_default_dns() from init_context hook ↵Stefan Metzmacher1-0/+3
of the root dse module metze (This used to be commit a201d3fc4ddfa336e2a98412d05eac4e51d01cea)
2007-10-10r20761: let ldb modules call ldb_set_default_dns()Stefan Metzmacher2-1/+2
metze (This used to be commit 224a31cdbf12a555b8c46786c9f83fec8e839c5a)
2007-10-10r20734: always terminate the string... so that an empty data_blobStefan Metzmacher1-0/+1
gets '\0' as "" string metze (This used to be commit 4f5daa830a3c02a05ba1bc7f32eedbe1d52640a1)
2007-10-10r20731: we need the complex memmove() handling for removing an attribute ↵Stefan Metzmacher1-16/+12
only in one place metze (This used to be commit dfdfdd6cefeac2974a4b3425a49e3dd93ad7e952)
2007-10-10r20730: this can be constStefan Metzmacher1-1/+1
metze (This used to be commit 181db920476a9ebddeee1ebea17be0baf85ea59e)
2007-10-10r20697: A couple of minot cross-compile fixes.James Peach1-1/+4
(This used to be commit d4c7dd19f3a114ee1527cbcd3071b4921600977d)
2007-10-10r20684: if we don't have any indexes, then we should not waste timeStefan Metzmacher1-0/+5
to traverse the whole tdb and unpack each record metze (This used to be commit 492c79de13eab8db6079f880a8f0857dc7a29fa8)
2007-10-10r20670: Make the logic more clearSimo Sorce1-16/+22
(This used to be commit 906630f18e5fab4be6c40018aafe67df1e27c92e)
2007-10-10r20669: Simplifing moreSimo Sorce1-88/+56
(This used to be commit 03de577059cb71bb6d5df7a65b5f5ba30bdea746)
2007-10-10r20665: put in my version of aio.hAndrew Tridgell1-4/+4
sorry about that .... (This used to be commit a91373291422e2f50b91fd7c2317dce5d2a4ab63)
2007-10-10r20659: add missing system/aio.hStefan Metzmacher1-0/+29
tridge: please commit your version and merge it to both samba3 branches metze (This used to be commit ba492e2c3a64dfc5d4743ba568c63cb9a59e2849)
2007-10-10r20656: This way the process flow should be much more readable.Simo Sorce1-104/+131
We need to make it easier, but this should be a step in the right direction. (This used to be commit ad58177ee46a4f02ee2e2d97882b851226bd3af2)
2007-10-10r20650: revert a bunch of code I didn't mean to commit yetAndrew Tridgell1-34/+0
(This used to be commit b3e2d4908781781a487eaeb683d22eb967e5597d)
2007-10-10r20649: fixed strlower_talloc() and strupper_talloc() to end with right size,Andrew Tridgell1-0/+6
so talloc_append_string() works (This used to be commit 0d36b036b381d4f81a22ce31066d89932d73597b)
2007-10-10r20647: add cluster codeAndrew Tridgell1-0/+34
(This used to be commit 5870830b99a8d76bda1ff5af3fcf8dda9aba50ec)
2007-10-10r20646: first preparations for cluster enablement. This changes "Andrew Tridgell3-43/+56
uint32_t server_id to struct server_id server_id; which allows a server ID to have an node number. The node number will be zero in non-clustered case. This is the most basic hook needed for clustering, and ctdb. (This used to be commit 2365abaa991d57d68c6ebe9be608e01c907102eb)
2007-10-10r20623: change where the smb.conf parm event:backend is checked to ensure itAndrew Tridgell1-4/+6
affects all event_context_init() calls (This used to be commit 803e6cf6ef5caaf7c9faefcc111c97e1a97e9b82)
2007-10-10r20621: - enable the aio events backend on systems that support itAndrew Tridgell3-7/+19
- allow the events backend to be chosen in smb.conf (This used to be commit 4a8e07286f827a6f57b2c54d97d31172553ceb0d)
2007-10-10r20598: add comments and make clear that the void *data element for extended ↵Stefan Metzmacher1-5/+7
operations needs to be NULL or a valid talloc pointer as talloc_get_type() will be called on it. metze (This used to be commit 5731617ea9103eaaef2c5591aab89d59ded35fd8)
2007-10-10r20596: add prototypes for the ldb_extended functionsStefan Metzmacher1-2/+62
metze (This used to be commit 8d3a3117c313c2950381e8d21eb92469a82c3afe)
2007-10-10r20594: Match popt.h declaration.James Peach1-1/+1
(This used to be commit c12fc86a936392922a7f22a3a6a1766f43db7ff5)
2007-10-10r20593: Kill annoying warning.James Peach1-1/+1
(This used to be commit d225481e49eb8ae22f255be1a0d146cebaad04b9)
2007-10-10r20588: handle extended operations in the ldb_next_request() callStefan Metzmacher1-0/+3
metze (This used to be commit b98ca57a6504c1b0fce015b1b2c3e4d228dd452e)
2007-10-10r20583: implement the frontend calls for extended operationsStefan Metzmacher2-5/+112
metze (This used to be commit cfcd05adc03effeaf85dc776c2d5bb5244f0d6d4)
2007-10-10r20582: use void *data in the ldb_extended struct to match what we have in ↵Stefan Metzmacher1-4/+4
ldb_control add a request element for extended requests metze (This used to be commit 530b3cd2501efb7763cbb7d3301ff0550689effe)