1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-04 17:47:26 +03:00

15 Commits

Author SHA1 Message Date
Andrew Tridgell
e7b3f91678 r6968: fixed a typo in the event macros. I'm surprised this one didn't show up earlier!
(This used to be commit 517028870747338fe96fd7607ec507e5577b67a9)
2007-10-10 13:17:01 -05:00
Andrew Tridgell
c363874466 r6147: The maxfd was being recalculated on every event loop, which made us
less scalable. It only needs to be recalculated when we the highest fd
is destroyed.
(This used to be commit 568b9175f329f594404c9091ee5946670c40697e)
2007-10-10 13:11:22 -05:00
Jelmer Vernooij
c52fb55903 r5437: Allow Samba4 to be compiled by tcc (www.tinycc.org). It still crashes when linking though.
(This used to be commit 2e1e8db6dc877eb32b51cfc3d9c8f463d14530ec)
2007-10-10 13:10:45 -05:00
Stefan Metzmacher
6d17fc3b3e r5407: - this patch makes samba's event loop code more generic and makes
using other implementations possible. This will be mostly usefull
  for client apps which have there own event loop and want to
  use our client libs

- add a example plugin for liboop (see http://liboop.org)
  NOTE: this just compiles and is completly untested
        and is commited only as example

metze
(This used to be commit b3d0a410efe856e3bcf127f00c31905f5a23cc04)
2007-10-10 13:10:42 -05:00
Stefan Metzmacher
c29141f10b r5393: trigger timed events not to early, better do it a bit to late
metze
(This used to be commit 67bf637e9a44202061fd71c92142f835ba76da89)
2007-10-10 13:09:50 -05:00
Stefan Metzmacher
e40da81aa4 r5373: prepare infrastructure for maing different events
implementations possible

metze
(This used to be commit dd77ec754b811feb147458d76fa16833767dccea)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
cc336df026 r5370: epoll gives more precise event bits like EPOLLHUP instead of just EPOLLIN. We need to map
these to "read" events for the events code to work on errors like connection refused
(thanks to vl for noticing this bug)
(This used to be commit 7c379590b4ca808eddef5c3ac15db25cefc5215b)
2007-10-10 13:09:48 -05:00
Andrew Tridgell
e82aad1ce3 r5298: - got rid of pstring.h from includes.h. This at least makes it a bit
less likely that anyone will use pstring for new code

 - got rid of winbind_client.h from includes.h. This one triggered a
   huge change, as winbind_client.h was including system/filesys.h and
   defining the old uint32 and uint16 types, as well as its own
   pstring and fstring.
(This used to be commit 9db6c79e902ec538108d6b7d3324039aabe1704f)
2007-10-10 13:09:38 -05:00
Andrew Tridgell
fedf0b0d91 r5296: - only include the tdb headers where they are needed
- removed the u32 hack in events.c as I think this was only needed as
  tdb.h defines u32. Metze, can you check that this hack is indeed no
  longer needed on your suse system?
(This used to be commit 6f79432fe656164d4770dbce114a30dda5e7bf9a)
2007-10-10 13:09:38 -05:00
Andrew Tridgell
22adab2004 r5292: ensure we cleanup the epoll_fd on event context destruction
(This used to be commit e820fca5062026810c5bd4827941f34c19a5e847)
2007-10-10 13:09:37 -05:00
Stefan Metzmacher
efd042e979 r5284: this is needed on my server
+/* this #undef is needed on my SuSE 9.2 Box with glibc-devel-2.3.3-118 */
+#undef u32

as sys/epoll.h has this:
typedef union epoll_data
{
  void *ptr;
  int fd;
  uint32_t u32;
  uint64_t u64;
} epoll_data_t;

metze
(This used to be commit b4928f3ea8f6530317dfa76593cf93e6acd4337a)
2007-10-10 13:09:36 -05:00
Andrew Tridgell
579d40052c r5273: fixed another bug in the code that keeps timed events
sorted. Hopefully it really works now :-)
(This used to be commit 34e1a3ad7849df913584074ec406c2fcc40212fc)
2007-10-10 13:09:35 -05:00
Andrew Tridgell
567b7a90f6 r5217: avoid epoll_ctl() if the event flags are already set correctly
(This used to be commit d89b493aaf690ceb107bd62df75f1bba82284f90)
2007-10-10 13:09:32 -05:00
Andrew Tridgell
e6b8c811ca r5198: don't consider failure to remove an epoll event as enough reason to
fallback to select(). This can happen in too many situations.
(This used to be commit 2d7242f2ec945c1e5fbc6f256265471f60ac8cd9)
2007-10-10 13:09:30 -05:00
Andrew Tridgell
131dc76d56 r5197: moved events code to lib/events/ (suggestion from metze)
(This used to be commit 7f54c8a339f36aa43c9340be70ab7f0067593ef2)
2007-10-10 13:09:30 -05:00