Joachim Nilsson
9105e8d3d8
Update pidfile() documentation
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-08 15:16:00 +01:00
Joachim Nilsson
3555af6a6a
Update ChangeLog and bump version for upcoming v1.8.3 release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-07 13:58:59 +01:00
Joachim Nilsson
42715eab8a
ChangeLog: Add missing link to v1.8.2 release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-07 13:57:57 +01:00
Joachim Nilsson
497d58dbf0
ChangeLog: Minor Markdown fixes
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-07 13:57:21 +01:00
Joachim Nilsson
9ab70ebbcd
Build all unit tests static, for easier debugging
...
- Add -static to LDFLAGS
- Remove CFLAGS override, respect input from configure script
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-07 13:00:08 +01:00
Joachim Nilsson
bad363883d
Fix leaky makepath() unit test
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-07 12:59:27 +01:00
Joachim Nilsson
7f3215b3e6
Update pidfile unit test to cover new use-case
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-07 12:59:02 +01:00
Joachim Nilsson
729cc5307f
pidfile: Add support for absolute path
...
The OpenBSD version of pidfile() makes sure to place all PID files in
the same, canonical, location: _PATH_VARRUN. On Linux, however, some
disitributions prefer to place PID files in a sub-directory under the
canonical location: _PATH_VARRUN + __progname/ ...
This patch adds support for creating PID files in any location. If the
PID file name argument starts with a '/', the function assumes the rest
of the string is the full PATH to the PID file.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-07 12:55:26 +01:00
Joachim Nilsson
66290d132f
pidfile: Re-create file on consequetive calls if it doesn't exist
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-07 08:15:49 +01:00
Joachim Nilsson
59f7a78441
pidfile: Always initialize global variables
...
Always initialize global variables, even though they cannot be used in
current code paths without being initialized at runtime.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-07 08:15:42 +01:00
Joachim Nilsson
b716776863
tests/pidfile: Cleanup test files from /tmp
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-07 06:53:21 +01:00
Joachim Nilsson
018ecaca15
debian/source/format: Change to native mode to allow building from GIT
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2017-01-07 04:10:21 +01:00
Joachim Nilsson
a293c37777
debian/: Support for building .deb packages
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-11-29 08:32:06 +01:00
Joachim Nilsson
a4937a93e2
Add reminder about umask()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-10-02 12:13:43 +02:00
Joachim Nilsson
94d547c9ec
Unit test: fix search path for library header
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
v1.8.2
2016-09-05 00:19:52 +02:00
Joachim Nilsson
68cf8b6576
Update ChangeLog and bump version for v1.8.2 release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-09-05 00:13:03 +02:00
Joachim Nilsson
b6a55fcc46
Add err.h include to tests
...
lite.h no longer includes err.h it has to be included in each test.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-09-05 00:07:24 +02:00
Joachim Nilsson
5f29ef6413
Convert touch() et al to inline functions
...
The touch(), makedir(), makefifo(), and erase() macros print warnings to
stderr, which mess up the logging in Finit. This patch refactors these
macros into inline functions and in the process removes the warn() use.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-09-04 23:58:32 +02:00
Joachim Nilsson
627c47caff
Bump version for v1.8.2 devel
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-08-22 01:33:12 +02:00
Joachim Nilsson
7c2ed556b9
Replace \e GNUism w/ ISO \033 for escape sequences
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-08-22 01:31:49 +02:00
Joachim Nilsson
6dec4e3858
Extend lfile test with fstab parser
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-08-02 00:29:52 +02:00
Joachim Nilsson
dff92356b3
Remove sys/cdefs.h include, does not exist in musl libc
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-07-19 15:39:57 +02:00
Joachim Nilsson
883c90112d
Update modification date
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-07-04 12:46:44 +02:00
Joachim Nilsson
a2c8dddaad
Free pidfile_path atexit()
...
To prevent warnings from tools like Valgrind, or handle issues
with RAM leaks on non-MMU systems like uClinux, we must free
the memory allocated by pidfile().
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-07-04 12:42:22 +02:00
Joachim Nilsson
14f547b638
Add ldconfig to build instructions, thanks rooth!
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-30 18:53:59 +02:00
Joachim Nilsson
6f2a03bba7
Update ChangeLog & bump version for v1.8.1 release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
v1.8.1
2016-06-25 12:50:21 +02:00
Joachim Nilsson
cdfffa312b
Update ChangeLog for upcoming v1.8.1 fix release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-08 07:18:30 +02:00
Joachim Nilsson
50cb72018f
pidfile: Portability fix, utimensat() in sys/time.h
...
For building libite on NetBSD, and probably other BSD's as well.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-08 06:25:02 +02:00
Joachim Nilsson
e8a3117158
fparseln: Portability fix _DIAGASSERT()
...
Only define _DIAGASSERT() if it's not already defined.
For building libite on NetBSD.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-08 06:23:34 +02:00
Joachim Nilsson
7cf2a3786c
Bump version and ABI for v1.8.0 release
...
- Change from v1.7.1 to v1.8.0 due to amount of changes
including ABI bump
- Update ChangeLog
- Bump library ABI version due to change in API semantics
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
v1.8.0
2016-06-06 19:05:26 +02:00
Joachim Nilsson
1c1d5c94e3
Clarify ABI versioning and encourage more unit tests
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 19:00:14 +02:00
Joachim Nilsson
23703c75da
tests/dir.c: Remove nested checker function
...
Move nested check function is_startup_config() outside main().
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 18:15:47 +02:00
Joachim Nilsson
efae15416c
Bump version to -rc1, many changes since last release
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 18:11:03 +02:00
Joachim Nilsson
661b4b4d0b
Remove last remnants of old build/unit test framework
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 18:09:59 +02:00
Joachim Nilsson
682b662bd5
Add unit test for chomp()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 18:09:29 +02:00
Joachim Nilsson
75d4edb424
check.h: Add stdlib.h for exit()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 18:08:54 +02:00
Joachim Nilsson
141d4f6936
Add unit test for copyfile()/fcopyfile()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:59:52 +02:00
Joachim Nilsson
63aa6c5d07
Add unit test for dir()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:56:13 +02:00
Joachim Nilsson
1d698418c7
dir(): Do not assert(), return -1 and errno
...
The dir() function, although useless compared to glob(), called assert()
and perror() instead of returning an error code.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:56:13 +02:00
Joachim Nilsson
92d81280a9
Add unit test for fexist()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:45:19 +02:00
Joachim Nilsson
267465f3d2
Add unit test for fisdir()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:42:31 +02:00
Joachim Nilsson
c22a6e64d9
Add unit test for progress bars
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:39:31 +02:00
Joachim Nilsson
16ae343df2
Add missing progress bar API's
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:39:31 +02:00
Joachim Nilsson
6e558e98f0
Add unit test for rsync
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:28:41 +02:00
Joachim Nilsson
69291d3e74
Add unit test for fsendfile()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:20:58 +02:00
Joachim Nilsson
6fdffeb355
fsendfile(): Change return type size_t --> ssize_t
...
Most send/recv/read/write API's return -1 on error and today use the
agreed upon type ssize_t for this purpose.
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:19:54 +02:00
Joachim Nilsson
b2f6721813
Clarify LITE file API in README
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:12:42 +02:00
Joachim Nilsson
3c350b8862
Add unit test for LITE file API
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:11:22 +02:00
Joachim Nilsson
5b786ce221
Add unit test for tempfile()
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 17:07:14 +02:00
Joachim Nilsson
86b883e2af
strdupa.h: Unify header guards with other headers
...
Signed-off-by: Joachim Nilsson <troglobit@gmail.com >
2016-06-06 15:32:35 +02:00