summaryrefslogtreecommitdiff
path: root/error.h (follow)
Commit message (Collapse)AuthorAge
* Rename source files which also exist as system headers.Andre Noll2012-08-15
| | | | | | | | | As pointed out by Daniel Richard G. some of the dss header files are named the same as system header files. This patch renames these headers as well as their corresponding .c files. Specifically, error.h, fd.h, signal.h, string.h and time.h become err.h, file.h, sig.h, str.h and tv.h.
* Merge branch 't/cleanups'Andre Noll2012-08-15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes in this branch are an attempt to make dss compile cleanly with the more strict compiler flags (GCC 4.6 on Linux). -pedantic -fno-common -W -Wall -Wcast-align -Wformat=2 -Wpointer-arith -Wundef -Waggregate-return -Wcast-qual -Wmissing-declarations -Wnested-externs -Wstrict-prototypes This is only a first step that addresses the easier warnings. Some, like the ones stemming from the variadic macros, have yet to be fixed. * 9e6c2f Remove some debug messages. * 899f88 string.c: Fix a statement-before-declaration issue. * 83ebb4 Remove trailing commas. * 2ed0d7 snap.h: Fix HSA_ITEM. * 508350 Fix "comma after last element" warning. * 97fbf4 compare_snapshots(): Add const keyword. * b28495 Avoid per-element initializers. * 9528cf dss.c: Fix initialization of argv[]. * 4526f9 dss.c: Remove redundant const. * 2183c6 Makefile: Split CPPFLAGS. Conflicts: error.h
| * Fix "comma after last element" warning.Daniel Richard G2012-08-04
| | | | | | | | | | | | | | This changes the definition of DSS_ERRORS so that it includes the commas, and removes the comma from both definitions of DSS_ERROR. This avoids "comma after last element" warnings, which on some compilers produces an error.
* | Merge branch 't/ipc'Andre Noll2012-08-10
|\ \ | |/ |/| | | | | | | | | | | | | | | 4d9f41 mutex_get(): Change parameter from key_t to int. 55c90e Implement --reload. 492928 Add the --kill subcommand. dd42f7 Use semaphore locking to avoid starting dss multiple times. 17eea8 Introduce get_config_file_name(). That topic was cooking in next for a quite some time now.
| * Add the --kill subcommand.Andre Noll2012-06-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It works as follows: Whenever a semaphore operation is performed, the PID of the process is stored in the sempid field of the semaphore. This PID can be obtained from a different process by calling semctl with the GETPID command. com_kill() first tries to acquire the lock by calling the new mutex_try_lock() function of ipc.c. In contrast to mutex_lock(), mutex_try_lock() only operates on the first semaphore in the semaphore set, leaving the sempid field of the second semaphore unchanged. If mutex_try_lock() succeeds, no running dss process is holding the lock and the kill command fails. Otherwise, some dss process is running whose PID can be obtained by calling semctl() on the second semaphore.
* | error.h: Remove is_errno().Andre Noll2012-08-03
|/ | | | This inline function is unused.
* Change copyright year from 2009 to 2010.Andre Noll2010-11-06
| | | | Better late than never..
* Change copyright year from 2008 to 2009.Andre Noll2009-07-03
| | | | A bit late, but better late than never.
* Implement exit-hooks.Andre Noll2008-05-12
|
* Add GPL headers and COPYING file.Andre Noll2008-05-12
|
* Get rid of make_err_msg() and log_err_msg().Andre Noll2008-03-22
| | | | It's too error-prone to be useful.
* Get rid of E_INVALID_COMMAND.Andre Noll2008-03-16
|
* Initial git checkin.Andre Noll2008-03-11
Dyadic intervals are so harmonic. Do you feel it?