Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/common
Commit message (Collapse)AuthorAgeFilesLines
* restore the old writing code which masks SIGPIPE on ↵Arthur de Jong2008-06-121-0/+21
| | | | | | platforms that can't use send() git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@758 ef36b2f9-881f-0410-afb5-c4e39611909c
* miscellaneous portability improvementsArthur de Jong2008-06-061-1/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@742 ef36b2f9-881f-0410-afb5-c4e39611909c
* use send() with a flag to ignore SIGPIPE instead of ↵Arthur de Jong2008-05-171-15/+3
| | | | | | write() so we don't have to muck with signal handlers git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@740 ef36b2f9-881f-0410-afb5-c4e39611909c
* add sanity checks to sleep calls to never sleep too long ↵Arthur de Jong2008-05-161-4/+14
| | | | | | (problems could occur when the clock moves backwards) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@738 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix problem where first item in the hashtable could be ↵Arthur de Jong2008-04-231-1/+1
| | | | | | returned twice while looping git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@694 ef36b2f9-881f-0410-afb5-c4e39611909c
* allocate room for key string just after entry to save on ↵Arthur de Jong2008-04-211-72/+12
| | | | | | calls to malloc() and make it simpler git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@691 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix wrapping and indenting of commentsArthur de Jong2008-04-191-19/+18
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@684 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement a set that uses the dict module as back-endArthur de Jong2008-04-193-2/+132
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@681 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement new dict module that uses a hashtable which is ↵Arthur de Jong2008-04-191-92/+252
| | | | | | around 40 times faster for large (around 2000) entries but with around 40% more memory used git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@680 ef36b2f9-881f-0410-afb5-c4e39611909c
* add note about freed valuesArthur de Jong2008-04-171-1/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@676 ef36b2f9-881f-0410-afb5-c4e39611909c
* change dict_values_first() and dict_values_next() into ↵Arthur de Jong2008-04-172-12/+18
| | | | | | dict_loop_first() and dict_loop_next() to have a looping mechanism over keys and values git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@675 ef36b2f9-881f-0410-afb5-c4e39611909c
* split out the flushing of the buffers to separate ↵Arthur de Jong2008-02-151-38/+84
| | | | | | functions and see if we can flush some data from the buffer if it is overflowing before growing the buffer git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@635 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement resizable I/O buffers and tune buffer sizes to ↵Arthur de Jong2008-02-122-27/+68
| | | | | | normal requests git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@630 ef36b2f9-881f-0410-afb5-c4e39611909c
* always allocate the read and write buffers and make the ↵Arthur de Jong2008-02-121-85/+61
| | | | | | struct tio_buffer inline in struct tio_fileinfo git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@629 ef36b2f9-881f-0410-afb5-c4e39611909c
* when including stdint.h check if we actually have itArthur de Jong2008-01-271-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@571 ef36b2f9-881f-0410-afb5-c4e39611909c
* add limited implementation of tio_mark() and tio_reset() ↵Arthur de Jong2008-01-012-26/+78
| | | | | | functions to do limited seeks in the read stream, clean up header file comments and write tests for new code git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@547 ef36b2f9-881f-0410-afb5-c4e39611909c
* simple check for validity of key value in dict_put()Arthur de Jong2007-12-011-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@482 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix memory leak in I/O module not free()ing allocated ↵Arthur de Jong2007-10-271-3/+6
| | | | | | storage for file info on file close git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@462 ef36b2f9-881f-0410-afb5-c4e39611909c
* portability improvement to fall back to ETIMEDOUT when ↵Arthur de Jong2007-10-271-0/+5
| | | | | | ETIME is unavailable git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@461 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix usage of DEBUG_TIO_STATSArthur de Jong2007-10-191-2/+3
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@440 ef36b2f9-881f-0410-afb5-c4e39611909c
* also initialize sa_sigaction although it's not usedArthur de Jong2007-09-241-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@423 ef36b2f9-881f-0410-afb5-c4e39611909c
* some small improvements to the code based on some source ↵Arthur de Jong2007-09-231-0/+2
| | | | | | code checks git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@418 ef36b2f9-881f-0410-afb5-c4e39611909c
* just use -fPIC on all files in this directoryArthur de Jong2007-09-211-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@411 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix a serious bug in dict_values_next() that would ↵Arthur de Jong2007-07-231-3/+11
| | | | | | return map pointers instead of values and write a test for it git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@315 ef36b2f9-881f-0410-afb5-c4e39611909c
* add support for removing entries from a DICT by setting ↵Arthur de Jong2007-07-232-5/+7
| | | | | | the value to NULL (this does not free any memory) git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@313 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix typoArthur de Jong2007-07-151-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@306 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix bug with buffer magic in writing codeArthur de Jong2007-07-151-11/+18
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@305 ef36b2f9-881f-0410-afb5-c4e39611909c
* add const and add FIXME about a to-be-fixed race conditionArthur de Jong2007-07-131-1/+5
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@301 ef36b2f9-881f-0410-afb5-c4e39611909c
* support building outside the source directoryArthur de Jong2007-06-171-0/+2
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@289 ef36b2f9-881f-0410-afb5-c4e39611909c
* fix casts of types where neededArthur de Jong2007-06-121-0/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@285 ef36b2f9-881f-0410-afb5-c4e39611909c
* move dict into the common directoryArthur de Jong2007-06-113-1/+225
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@279 ef36b2f9-881f-0410-afb5-c4e39611909c
* compile tio module with -fPIC because it is used in the ↵Arthur de Jong2007-06-101-0/+1
| | | | | | NSS shared library git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@277 ef36b2f9-881f-0410-afb5-c4e39611909c
* remove some trailing spacesArthur de Jong2007-06-091-1/+1
| | | | git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@274 ef36b2f9-881f-0410-afb5-c4e39611909c
* implement our own stdio-like library that handles IO ↵Arthur de Jong2007-06-093-0/+451
with a simple configurable timeout mechanism with buffering git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@272 ef36b2f9-881f-0410-afb5-c4e39611909c