Tobias Brunner
|
2ed241aeb3
|
utils: Add memrchr(3) replacement for platforms that don't support it
For instance, on Mac OS X memrchr(3) is not provided by the C library.
|
2014-02-26 11:05:07 +01:00 |
Tobias Brunner
|
766141bc77
|
utils: Add thread-safe variants of dirname(3) and basename(3)
|
2014-02-24 12:04:11 +01:00 |
Tobias Brunner
|
ba10cd3c7f
|
utils: Move thread-safe strerror replacement to a separate file
For some utils _GNU_SOURCE might be needed but that conflicts with the
signature of strerror_r(3).
|
2014-02-24 12:04:10 +01:00 |
Tobias Brunner
|
4ab38d98a7
|
Fixed some typos
|
2014-02-18 10:36:25 +01:00 |
Tobias Brunner
|
ccb6758e5b
|
utils: Add strreplace function
|
2014-01-23 10:18:23 +01:00 |
Tobias Brunner
|
5ac29360fc
|
utils: Include stdio.h for fmemopen() replacement
This might now be required because Vstr is not necessarily required
anymore, which means stdio.h might not be pulled in by prinf_hook.h.
|
2013-10-29 16:18:35 +01:00 |
Martin Willi
|
9df621d21f
|
utils: Fix check for fmemopen() fallback implementation
|
2013-10-24 15:58:49 +02:00 |
Martin Willi
|
2077d996a9
|
utils: Provide a fmemopen(3) fallback using BSD funopen()
|
2013-10-24 13:17:05 +02:00 |
Tobias Brunner
|
812ae898bf
|
utils: Add utility function to calculate padding length
|
2013-10-17 10:25:34 +02:00 |
Tobias Brunner
|
32a145fdbd
|
utils: Add case-insensitive version of strpfx()
|
2013-08-24 16:22:51 +02:00 |
Martin Willi
|
84044f9c73
|
utils: add round_up/down() helper functions
|
2013-07-29 09:00:48 +02:00 |
Tobias Brunner
|
f460facdca
|
utils: Add helper function to check a string for a given prefix
|
2013-07-08 18:49:30 +02:00 |
Tobias Brunner
|
985dcab1c2
|
utils: Convert string helper macros to static inline functions
|
2013-07-08 18:49:29 +02:00 |
Tobias Brunner
|
4d04e2c63b
|
utils: Remove volatile qualifier from refcount_t typedef
It's not really required anymore (if it ever was) and may cause compiler
warnings when using the non atomic versions of ref_get/ref_put.
|
2013-06-19 09:28:30 +02:00 |
Martin Willi
|
3160b92adb
|
utils: ref_get() returns the new value of the reference counter
This allows us to use ref_get() for getting unique values.
|
2013-06-11 15:54:27 +02:00 |
Tobias Brunner
|
438a6693ca
|
Removed unused clalloc() function
|
2013-06-11 11:03:12 +02:00 |
Tobias Brunner
|
819c02dbc6
|
timeval_add_ms() fixed
1000000us are exactly 1s so.
|
2013-06-11 11:03:12 +02:00 |
Tobias Brunner
|
c480b5f458
|
Allow memwipe() to be called with NULL argument
|
2013-05-27 18:41:16 +02:00 |
Martin Willi
|
4d17427205
|
Add a utility function to resolve TTY color escape codes dynamically
|
2013-03-04 15:04:56 +01:00 |
Martin Willi
|
4755ab505d
|
Add a global return_success() method implementation
|
2013-02-14 17:17:45 +01:00 |
Tobias Brunner
|
bca34c3717
|
Moved utils.[ch] to utils folder
|
2012-10-24 16:07:53 +02:00 |