]>
jfr.im git - irc/atheme/libmowgli-2.git/log
Elizabeth J. Myers [Mon, 23 Apr 2012 16:31:19 +0000 (11:31 -0500)]
thread: gut Sun-specific implementation.
Rationale for this is we don't work on an ancient SunOS systems anyway
because a C99 compiler is not available; modern Solaris systems have
pthreads.
William Pitcock [Sun, 3 Jun 2012 05:22:05 +0000 (00:22 -0500)]
fix examples build (closes #2)
William Pitcock [Thu, 17 May 2012 00:49:10 +0000 (19:49 -0500)]
eventloop: add mowgli_pollable_trigger(), which handles callbacks
Elizabeth J. Myers [Tue, 15 May 2012 20:28:59 +0000 (15:28 -0500)]
William Pitcock [Wed, 18 Apr 2012 10:56:14 +0000 (10:56 +0000)]
eventloop: use 'deadline' instead of 'time_min' in various places
'deadline' is a more descriptive term, since the event scheduler implements earliest-deadline-first
scheduling, and 'time_min' was the deadline that had to be met.
William Pitcock [Wed, 18 Apr 2012 10:44:14 +0000 (10:44 +0000)]
eventloop: invalidate timer cache if a timer is being scheduled for immediate execution
otherwise the cache may indicate there are no pending events scheduled and let the eventloop sleep.
William Pitcock [Wed, 18 Apr 2012 10:09:48 +0000 (10:09 +0000)]
eventloop: use run_once op if timeout_once is given timeout=-1.
This ensures we check our timers if we're going to sleep forever.
William Pitcock [Wed, 18 Apr 2012 10:07:02 +0000 (10:07 +0000)]
container/dictionary: don't dup keys.
William Pitcock [Wed, 18 Apr 2012 09:24:44 +0000 (04:24 -0500)]
container/dictionary: finish using const void keys
William Pitcock [Wed, 18 Apr 2012 09:10:14 +0000 (04:10 -0500)]
eventloop: add binding userdata get/set functions
William Pitcock [Wed, 18 Apr 2012 09:03:32 +0000 (09:03 +0000)]
container/dictionary: make compare function pointer-safe
William Pitcock [Wed, 18 Apr 2012 08:02:20 +0000 (03:02 -0500)]
Readd dictionary type.
William Pitcock [Wed, 18 Apr 2012 07:58:20 +0000 (02:58 -0500)]
eventloop: use explicit casting in headers for C++ compatibility
William Pitcock [Wed, 18 Apr 2012 07:56:12 +0000 (02:56 -0500)]
dns: avoid using C++-reserved keyword "class" in prototypes.
William Pitcock [Wed, 18 Apr 2012 01:29:03 +0000 (20:29 -0500)]
ext/getopt_long: initialize mowgli_optarg and mowgli_optreset
William Pitcock [Mon, 16 Apr 2012 20:14:08 +0000 (15:14 -0500)]
platform/win32/socketpair: warnings clean
William Pitcock [Mon, 16 Apr 2012 20:12:52 +0000 (15:12 -0500)]
platform/win32/socketpair: fix style
William Pitcock [Mon, 16 Apr 2012 20:11:15 +0000 (15:11 -0500)]
dns: windows fixes
William Pitcock [Mon, 16 Apr 2012 20:04:36 +0000 (15:04 -0500)]
platform/win32: fixes
William Pitcock [Mon, 16 Apr 2012 20:03:14 +0000 (15:03 -0500)]
ext/proctitle: fix windows build
William Pitcock [Mon, 16 Apr 2012 19:58:37 +0000 (14:58 -0500)]
platform/win32: implement pipe and socketpair
William Pitcock [Mon, 16 Apr 2012 19:36:04 +0000 (14:36 -0500)]
Mowgli 2.0.0.
William Pitcock [Mon, 16 Apr 2012 19:30:06 +0000 (14:30 -0500)]
Remove concurrent stuff.
Patrick McFarland added it, but he has since forked and we don't believe in threads here anyway.
William Pitcock [Mon, 16 Apr 2012 19:26:39 +0000 (14:26 -0500)]
vio/vio: add stub for mowgli_vio_err_sslerrorcode() when built without OPENSSL support
Pointed out by marienz.
William Pitcock [Mon, 16 Apr 2012 10:35:39 +0000 (05:35 -0500)]
eventloop: add mowgli_eventloop_timeout_once().
This allows us to integrate more cleanly into glib eventloop as a GPollFunc.
William Pitcock [Mon, 16 Apr 2012 10:33:31 +0000 (05:33 -0500)]
eventloop: add eventloop_ops::timeout_once
William Pitcock [Thu, 12 Apr 2012 02:00:09 +0000 (21:00 -0500)]
Fix compile error.
William Pitcock [Thu, 12 Apr 2012 00:15:14 +0000 (19:15 -0500)]
libmowgli 2.0.0-beta1.
William Pitcock [Thu, 12 Apr 2012 00:14:36 +0000 (19:14 -0500)]
Remove coroutine stuff.
William Pitcock [Mon, 9 Apr 2012 04:01:04 +0000 (23:01 -0500)]
container/index: no realloc
William Pitcock [Mon, 9 Apr 2012 04:00:53 +0000 (23:00 -0500)]
core/mowgli_string: cut-and-paste fix
William Pitcock [Mon, 9 Apr 2012 03:56:54 +0000 (22:56 -0500)]
core/mowgli_string: don't use realloc().
William Pitcock [Mon, 9 Apr 2012 03:51:54 +0000 (22:51 -0500)]
dns: maybe fix windows compile.
William Pitcock [Mon, 9 Apr 2012 02:06:38 +0000 (21:06 -0500)]
concurrent/atomic: use uintptr_t for representing pointer addresses.
William Pitcock [Mon, 9 Apr 2012 01:52:08 +0000 (20:52 -0500)]
concurrent/atomic: use GCC pragmas to work around a GCC verifier bug
William Pitcock [Mon, 9 Apr 2012 01:42:42 +0000 (20:42 -0500)]
concurrent/atomic: fix some prototype warnings
William Pitcock [Mon, 9 Apr 2012 01:37:30 +0000 (20:37 -0500)]
concurrent/future: fix prototype strictness
William Pitcock [Mon, 9 Apr 2012 01:29:33 +0000 (20:29 -0500)]
ext/getopt_long: unclobber system namespace
Elizabeth J. Myers [Sun, 8 Apr 2012 08:33:01 +0000 (03:33 -0500)]
Merge branch 'master' of ssh://git.atheme.org/gitroot/libmowgli-2
Elizabeth J. Myers [Sun, 8 Apr 2012 08:18:25 +0000 (03:18 -0500)]
proctitle: fix warning.
Elizabeth J. Myers [Fri, 6 Apr 2012 03:55:56 +0000 (22:55 -0500)]
proctitle: change malloc() to mowgli_alloc.
Not sure how I managed this one. "oops."
Elizabeth J. Myers [Fri, 6 Apr 2012 03:53:20 +0000 (22:53 -0500)]
helper: allow setting of the process title.
Also allow proctitle to discard empty process titles.
Elizabeth J. Myers [Fri, 6 Apr 2012 01:19:09 +0000 (20:19 -0500)]
proctitle: add support for Linux prctl(). Note not all utilities use it.
Some utilities use argv[0] instead. :(.
William Pitcock [Fri, 6 Apr 2012 00:07:41 +0000 (19:07 -0500)]
future: fix compilation with GCC 4.5 and earlier.
Elizabeth J. Myers [Thu, 5 Apr 2012 07:56:24 +0000 (02:56 -0500)]
proctitle: fix on Linux and remove needless function.
William Pitcock [Thu, 5 Apr 2012 05:52:33 +0000 (00:52 -0500)]
eventloop/helper: fix braindamage caused by rebasing
William Pitcock [Thu, 5 Apr 2012 05:49:33 +0000 (00:49 -0500)]
eventloop/helper: use socketpair() instead of pipe().
Socketpair is more useful because we only need one socketpair verses two pipes for bidirectional
I/O.
Elizabeth J. Myers [Sun, 8 Apr 2012 08:18:25 +0000 (03:18 -0500)]
proctitle: fix warning.
Patrick McFarland [Sun, 8 Apr 2012 08:06:13 +0000 (04:06 -0400)]
atomic: add synchronize, undef internal symbol spam
Elizabeth J. Myers [Fri, 6 Apr 2012 03:55:56 +0000 (22:55 -0500)]
proctitle: change malloc() to mowgli_alloc.
Not sure how I managed this one. "oops."
Elizabeth J. Myers [Fri, 6 Apr 2012 03:53:20 +0000 (22:53 -0500)]
helper: allow setting of the process title.
Also allow proctitle to discard empty process titles.
Elizabeth J. Myers [Fri, 6 Apr 2012 01:19:09 +0000 (20:19 -0500)]
proctitle: add support for Linux prctl(). Note not all utilities use it.
Some utilities use argv[0] instead. :(.
William Pitcock [Fri, 6 Apr 2012 00:07:41 +0000 (19:07 -0500)]
future: fix compilation with GCC 4.5 and earlier.
Elizabeth J. Myers [Thu, 5 Apr 2012 07:56:24 +0000 (02:56 -0500)]
proctitle: fix on Linux and remove needless function.
William Pitcock [Thu, 5 Apr 2012 05:52:33 +0000 (00:52 -0500)]
eventloop/helper: fix braindamage caused by rebasing
William Pitcock [Thu, 5 Apr 2012 05:49:33 +0000 (00:49 -0500)]
eventloop/helper: use socketpair() instead of pipe().
Socketpair is more useful because we only need one socketpair verses two pipes for bidirectional
I/O.
Patrick McFarland [Thu, 5 Apr 2012 05:00:33 +0000 (01:00 -0400)]
futuretest: fix indentfail
Elizabeth J. Myers [Thu, 5 Apr 2012 02:54:16 +0000 (21:54 -0500)]
Merge branch 'develop' of git://caspar.adterrasperaspera.com/libmowgli-2
Elizabeth J. Myers [Thu, 5 Apr 2012 02:31:16 +0000 (21:31 -0500)]
proctitle: fix error with API.
Elizabeth J. Myers [Thu, 5 Apr 2012 02:27:55 +0000 (21:27 -0500)]
ext: add proctitle setting functions to set process titles portably
Patrick McFarland [Wed, 4 Apr 2012 09:56:37 +0000 (05:56 -0400)]
future: Make it clear non-normal behavior is a consistency failure
Patrick McFarland [Wed, 4 Apr 2012 03:00:34 +0000 (23:00 -0400)]
future: clean up syntax style slightly
Patrick McFarland [Wed, 4 Apr 2012 02:51:38 +0000 (22:51 -0400)]
future: Improve cancel method
Patrick McFarland [Wed, 4 Apr 2012 02:36:32 +0000 (22:36 -0400)]
Improve futures to be more paranoid about potential failures
Patrick McFarland [Wed, 4 Apr 2012 01:22:29 +0000 (21:22 -0400)]
Make struct private
Elizabeth J. Myers [Mon, 2 Apr 2012 01:09:49 +0000 (20:09 -0500)]
machine: fix compile error.
Elizabeth J. Myers [Mon, 2 Apr 2012 01:04:20 +0000 (20:04 -0500)]
remove remnants of futex check as it's not necessary anymore.
William Pitcock [Mon, 2 Apr 2012 01:02:05 +0000 (20:02 -0500)]
Add missing coroutine_private.h.
William Pitcock [Mon, 2 Apr 2012 00:24:49 +0000 (19:24 -0500)]
mowgli_strlcpy/strlcat: use libbsd implementation
Patrick McFarland [Sun, 1 Apr 2012 19:19:52 +0000 (15:19 -0400)]
Remove something I added 5 years ago
Patrick McFarland [Sun, 1 Apr 2012 12:27:48 +0000 (08:27 -0400)]
Added AVR32, SuperH, and VMS to machine.h
Elizabeth J. Myers [Sun, 1 Apr 2012 03:14:34 +0000 (22:14 -0500)]
dns: some optimisations and shuffling.
Note the mowgli_dns_init function now takes a const mowgli_ops_t * ptr
to specify custom ops.
Elizabeth J. Myers [Sat, 31 Mar 2012 16:52:44 +0000 (11:52 -0500)]
thread: make ops tables const.
GCC will then optimise each op in the table into a jmp.
Elizabeth J. Myers [Sat, 31 Mar 2012 03:08:57 +0000 (22:08 -0500)]
Merge branch 'master' of ssh://git.atheme.org/gitroot/libmowgli-2
Elizabeth J. Myers [Sat, 31 Mar 2012 03:08:22 +0000 (22:08 -0500)]
dns_evloop: use a heap instead of mowgli_alloc for storing reslist
entries.
William Pitcock [Sat, 31 Mar 2012 02:36:04 +0000 (21:36 -0500)]
dns: use mowgli_eventloop_get_time() instead of touching struct members
William Pitcock [Sat, 31 Mar 2012 02:34:55 +0000 (21:34 -0500)]
coroutine: some initial bits of this module, incomplete
Elizabeth J. Myers [Sat, 31 Mar 2012 01:55:47 +0000 (20:55 -0500)]
dns_evloop: some optimisations.
Elizabeth J. Myers [Fri, 30 Mar 2012 17:27:30 +0000 (12:27 -0500)]
gitignore: update, and add windows files that should be ignored.
Elizabeth J. Myers [Fri, 30 Mar 2012 17:25:54 +0000 (12:25 -0500)]
fix warning in example and remove useless debug logging.
Elizabeth J. Myers [Fri, 30 Mar 2012 17:13:36 +0000 (12:13 -0500)]
vio: let socket close itself after an error if it wants.
Elizabeth J. Myers [Fri, 30 Mar 2012 06:00:49 +0000 (01:00 -0500)]
Merge branch 'develop' of git://caspar.adterrasperaspera.com/libmowgli-2
Elizabeth J. Myers [Fri, 30 Mar 2012 05:59:56 +0000 (00:59 -0500)]
Merge branch 'master' of ssh://git.atheme.org/gitroot/libmowgli-2
Elizabeth J. Myers [Fri, 30 Mar 2012 05:59:16 +0000 (00:59 -0500)]
dns: misc. fixes to make it work and an example program.
William Pitcock [Thu, 29 Mar 2012 20:22:32 +0000 (15:22 -0500)]
thread/mutex: pair mutex-owning mutex_ops with each mutex by reference
William Pitcock [Thu, 29 Mar 2012 20:17:51 +0000 (15:17 -0500)]
thread: remove unneeded 'initialized' variable
Patrick McFarland [Thu, 29 Mar 2012 20:00:44 +0000 (16:00 -0400)]
Make atomic.h use machine.h instead of the autoconf macro
William Pitcock [Thu, 29 Mar 2012 19:56:31 +0000 (14:56 -0500)]
dns: mowgli_alloc should allocate an object of size mowgli_dns_t, not mowgli_dns_ops_t.
Patrick McFarland [Thu, 29 Mar 2012 12:07:21 +0000 (08:07 -0400)]
Add endian checking to machine.h
Elizabeth J. Myers [Thu, 29 Mar 2012 11:35:47 +0000 (06:35 -0500)]
dns: renaming, and some windows portability gunk.
Elizabeth J. Myers [Thu, 29 Mar 2012 11:00:15 +0000 (06:00 -0500)]
DNS stuff, round deux. This is preliminary stuff, I am not done.
Patrick McFarland [Thu, 29 Mar 2012 10:23:41 +0000 (06:23 -0400)]
Fix install process, fix missing include rename
Elizabeth J. Myers [Thu, 29 Mar 2012 07:04:17 +0000 (02:04 -0500)]
vio: add listen/accept API to OpenSSL.
It hasn't been tested yet, but should work.
Elizabeth J. Myers [Thu, 29 Mar 2012 04:18:08 +0000 (23:18 -0500)]
vio_openssl: get rid of nasty const discarding.
Elizabeth J. Myers [Thu, 29 Mar 2012 04:09:51 +0000 (23:09 -0500)]
linebuf: accomodations for edge-triggered interfaces.
Elizabeth J. Myers [Thu, 29 Mar 2012 03:55:13 +0000 (22:55 -0500)]
vio: set NEED{READ,WRITE} for edge-triggered interfaces.
On epoll in edge-triggered mode and other edge-triggered interfaces, the fd
won't show up in subsequent batches until all data has been read or the fd is
re-added or other such crap. Signal this to the caller that more reading or
writing may be necessary.
Elizabeth J. Myers [Thu, 29 Mar 2012 03:42:11 +0000 (22:42 -0500)]
vio: convert ugly non-syntactic macros to functions.
Patrick McFarland [Wed, 28 Mar 2012 19:23:46 +0000 (15:23 -0400)]
Change mutex.h and thread.h to use the new machine.h defines
Patrick McFarland [Wed, 28 Mar 2012 19:18:47 +0000 (15:18 -0400)]
Create machine.h to make it easier to do platform specific code
Patrick McFarland [Wed, 28 Mar 2012 15:24:45 +0000 (11:24 -0400)]
Change mowgli_thread to use create/init/deinit/destroy API style