Commit Graph

  • 13c601f3b7 fix indentation Nils O. Selåsdal 2014-04-19 00:37:55 +02:00
  • 008004c6bd Slight refactor of checking if a destination exists Nils O. Selåsdal 2014-04-19 00:36:24 +02:00
  • edde6ec7b6 Use TailQ instead of sys/queue.h in the logging module Nils O. Selåsdal 2014-04-19 00:20:11 +02:00
  • 975b8ad1bc no need for clamping to funds + 1, just to funds Nils O. Selåsdal 2014-03-18 22:33:32 +01:00
  • f9fffbc4b0 Better error message for UC_STATIC_ASSERT. Also require it to be terminated by a ; Nils O. Selåsdal 2014-03-14 00:58:09 +01:00
  • 5f06950fd0 add uc_read_fd function Nils O. Selåsdal 2014-03-13 23:16:50 +01:00
  • c2fe3e5dc7 Fix read_file in case file size if > SSIZE_MAX Nils O. Selåsdal 2014-03-13 23:07:57 +01:00
  • 633635851d Set errno to 0, for consistent results Nils O. Selåsdal 2014-03-13 23:04:14 +01:00
  • 813836dcac Add -Winit-self flag Nils O. Selåsdal 2014-04-09 23:51:42 +02:00
  • 9a83dffde8 Add -Werror=implicit-function-declaration to CFLAGS Nils O. Selåsdal 2014-03-12 19:18:47 +01:00
  • 95a62617c0 Tidy up whitespace Nils O. Selåsdal 2014-03-10 22:02:44 +01:00
  • d831ab9510 Small refactoring of ratelimit code to make more sense Nils O. Selåsdal 2014-03-09 23:54:48 +01:00
  • a112b44c6e Implement generalied IOMux implementation operations Fix serious bug in iomix_timers_run Nils O. Selåsdal 2014-03-02 06:00:05 +01:00
  • 857c2018b9 Change library suffix from _debug to D for debug build. And no suffix for a release build. Nils O. Selåsdal 2014-03-02 03:59:18 +01:00
  • 0f25a0f565 Add a string/string mapper struct Nils O. Selåsdal 2014-02-04 20:51:47 +01:00
  • 39290eefb7 Rename the value string functions to be a bit mroe sensible Nils O. Selåsdal 2014-02-04 15:15:17 +01:00
  • eeed97e938 cosmetic cleanup Nils O. Selåsdal 2014-02-04 01:45:02 +01:00
  • dfe219b649 Add an unsigned int/string pair type, modelled on the value string of wireshark Nils O. Selåsdal 2014-02-04 01:37:27 +01:00
  • 1ec9cb38cb Open restart file in 0644 mode, fsync the file, don't write to file if seek/truncate failed Nils O. Selåsdal 2014-09-11 23:09:41 +02:00
  • 0588af093a Fic includes to use "" instead of <> Nils O. Selåsdal 2014-09-11 21:55:57 +02:00
  • 1f83ec6741 Link with libm and librt, required for older glibc. No harm on newer Nils O. Selåsdal 2014-09-11 21:42:57 +02:00
  • c3e46ce788 Add uc_restart_counter concept Nils O. Selåsdal 2014-09-11 21:41:14 +02:00
  • 37a0411fba Initialize the ticket lock Nils O. Selåsdal 2014-09-11 21:40:22 +02:00
  • b783d67f6d Remove unused include Nils O. Selåsdal 2014-09-10 23:58:15 +02:00
  • 52feeb6644 Add a few more UCStrVal functions Nils O. Selåsdal 2014-09-10 23:55:33 +02:00
  • 267451f37f Fix RATE_LIMIT_INITIALIZER Nils O. Selåsdal 2014-09-08 22:24:08 +02:00
  • 03d66f8698 Merge branch 'cmd' of ssh://box/var/lib/git/libucore into cmd Nils O. Selåsdal 2014-09-08 22:24:36 +02:00
  • b446022e6d Fix RATE_LIMIT_INITIALIZER Nils O. Selåsdal 2014-09-08 22:24:08 +02:00
  • d75d0ee48c ( ) around macro arguments.. Nils O. Selåsdal 2014-09-06 04:05:54 +02:00
  • e18317d507 fix UC_ROUND_UP() Nils O. Selåsdal 2014-09-06 04:03:20 +02:00
  • 8763059c65 Atomic example, used to inspect assembly code.. Nils O. Selåsdal 2014-09-02 23:17:41 +02:00
  • ba79566ce9 Better atomic support for gcc and clang Nils O. Selåsdal 2014-09-02 23:17:14 +02:00
  • e45be1a362 eait for max 32 epoll events. 54 is too much Nils O. Selåsdal 2014-09-01 22:20:10 +02:00
  • db0d62c639 Add ATOMIC_GET Nils O. Selåsdal 2014-09-01 22:19:54 +02:00
  • 44ecb1ea7a Fix confusing if vec_len is bytes or number of elements Nils O. Selåsdal 2014-08-26 20:12:22 +02:00
  • 225943aef7 Improve doxygen documentation. Nils O. Selåsdal 2014-08-26 21:38:09 +02:00
  • e45a4d5643 Improve doxygen documentation. Nils O. Selåsdal 2014-08-26 21:38:09 +02:00
  • 7e8c59699a Fix confusing if vec_len is bytes or number of elements Nils O. Selåsdal 2014-08-26 20:12:22 +02:00
  • f7c27648dc Print error if no test cases are run Nils O. Selåsdal 2014-07-11 16:27:36 +02:00
  • a0e5a4fac8 Initial cmd.. Nils O. Selåsdal 2014-06-28 01:53:29 +02:00
  • c949961e77 Add a sched_yeild in tocket lock test.. Nils O. Selåsdal 2014-06-25 19:53:46 +02:00
  • 777a745428 Test heapsorting 1 element Nils O. Selåsdal 2014-06-23 22:58:27 +02:00
  • 32218b3dc7 Add test for ticket locks Nils O. Selåsdal 2014-06-25 19:49:14 +02:00
  • 0a6ce86779 More comments on the ticket lock code Nils O. Selåsdal 2014-06-25 17:03:14 +02:00
  • 06be01a708 pthread implementation of a ticket lock Nils O. Selåsdal 2014-06-25 16:48:42 +02:00
  • d28288f048 Get rid of clang warnings for UC_INLINE Nils O. Selåsdal 2014-06-23 02:24:27 +02:00
  • 723ca5dcfb Fix header guard in read_file.h Nils O. Selåsdal 2014-06-23 02:15:26 +02:00
  • 06ecc68ca7 Fix header guard in buffer.h Nils O. Selåsdal 2014-06-23 02:14:20 +02:00
  • 930c90b674 Fix uninitialized return value in iomux_update_events Nils O. Selåsdal 2014-06-23 02:09:56 +02:00
  • b680671d2a Remove a TRACF() Nils O. Selåsdal 2014-06-22 23:11:54 +02:00
  • 2d1e7efc3e Add iomux_from_timers() function to recover an IOMux from the associated UCTimers Nils O. Selåsdal 2014-06-22 23:11:12 +02:00
  • 2c264a76b4 Add init method to dstr for initializing directyl from a string Change the api so _put_ functions that copy in data are named "_append_" instead. Nils O. Selåsdal 2014-06-18 15:57:51 +02:00
  • b3b1179c5a Use restrict on pointers where it makes sense. (requires C99 support, which we already assume) Nils O. Selåsdal 2014-05-25 23:07:08 +02:00
  • fe7c152631 Use nonblocking pipes Nils O. Selåsdal 2014-05-07 22:48:56 +02:00
  • 0014ca5c2e Move UC_LOG_DESTINATION enum to logging.c, it's not a public type Nils O. Selåsdal 2014-04-25 19:57:59 +02:00
  • f267b66bbe Use snprintf over sprintf Nils O. Selåsdal 2014-04-23 22:40:37 +02:00
  • 93a195f0e8 Fix size rotating, so filenames are in the order of newest to oldest Nils O. Selåsdal 2014-04-23 22:38:04 +02:00
  • 8abf8068c3 Fix raw loggin use of uninitialized value introduced in previous commit Nils O. Selåsdal 2014-04-23 02:21:54 +02:00
  • 0e35ecbc29 Initial attempt of log rotation based on file sizes Nils O. Selåsdal 2014-04-23 02:04:08 +02:00
  • bc27ed462b Keep track of bytes written to a file Nils O. Selåsdal 2014-04-22 23:16:57 +02:00
  • f6351aacbb fix indentation Nils O. Selåsdal 2014-04-19 00:37:55 +02:00
  • bb1b152fd0 Slight refactor of checking if a destination exists Nils O. Selåsdal 2014-04-19 00:36:24 +02:00
  • 0fe19af6b6 Use TailQ instead of sys/queue.h in the logging module Nils O. Selåsdal 2014-04-19 00:20:11 +02:00
  • 7a8731b44d Merge branch 'dev' of /var/lib/git/libucore into dev Nils O. Selåsdal 2014-04-09 23:51:54 +02:00
  • e09a51c852 Add -Winit-self flag Nils O. Selåsdal 2014-04-09 23:51:42 +02:00
  • c9656fbb3c no need for clamping to funds + 1, just to funds Nils O. Selåsdal 2014-03-18 22:33:32 +01:00
  • 71c9643ee9 Better error message for UC_STATIC_ASSERT. Also require it to be terminated by a ; Nils O. Selåsdal 2014-03-14 00:58:09 +01:00
  • b93e5b6d5b add uc_read_fd function Nils O. Selåsdal 2014-03-13 23:16:50 +01:00
  • 092074bbfc Fix read_file in case file size if > SSIZE_MAX Nils O. Selåsdal 2014-03-13 23:07:57 +01:00
  • 62a7a60712 Set errno to 0, for consistent results Nils O. Selåsdal 2014-03-13 23:04:14 +01:00
  • 1844735483 Add -Werror=implicit-function-declaration to CFLAGS Nils O. Selåsdal 2014-03-12 19:18:47 +01:00
  • 325c36435f Tidy up whitespace Nils O. Selåsdal 2014-03-10 22:02:44 +01:00
  • 15a3cbb59a Small refactoring of ratelimit code to make more sense Nils O. Selåsdal 2014-03-09 23:54:48 +01:00
  • 8fca5333d9 Implement generalied IOMux implementation operations Fix serious bug in iomix_timers_run Nils O. Selåsdal 2014-03-02 06:00:05 +01:00
  • 74f3d9253b Merge branch 'dev' of /var/lib/git/libucore into dev Nils O. Selåsdal 2014-03-02 04:00:03 +01:00
  • c3a900ea53 Change library suffix from _debug to D for debug build. And no suffix for a release build. Nils O. Selåsdal 2014-03-02 03:59:18 +01:00
  • 619af7aedc Merge branch 'master' into dev Nils O. Selåsdal 2014-02-19 00:40:53 +01:00
  • 5756ccfbef Merge branch 'master' of ssh://box/var/lib/git/libucore Nils O. Selåsdal 2014-02-19 00:40:33 +01:00
  • b49fd5a475 Fix orders of members in UCKeepConfig Nils O. Selåsdal 2014-02-19 00:40:13 +01:00
  • 0c3fc0f31d Add a string/string mapper struct Nils O. Selåsdal 2014-02-04 20:51:47 +01:00
  • 3119016172 Rename the value string functions to be a bit mroe sensible Nils O. Selåsdal 2014-02-04 15:15:17 +01:00
  • a1da276cf5 cosmetic cleanup Nils O. Selåsdal 2014-02-04 01:45:02 +01:00
  • c2af5db86e Add an unsigned int/string pair type, modelled on the value string of wireshark Nils O. Selåsdal 2014-02-04 01:37:27 +01:00
  • f1b1ceadca Merge branch 'master' into dev Nils O. Selåsdal 2014-01-26 00:59:08 +01:00
  • 7c271c1b52 Support libcheck version 0.9.8 as shipped on RHEL 6.4 Nils O. Selåsdal 2014-01-26 00:58:11 +01:00
  • 3e313932af Add BSD compatible strlcpy function (uc_strlcpy) Nils O. Selåsdal 2014-01-08 00:37:33 +01:00
  • 0e2d4f07c3 Adhere to coding style in logging module (struct uc_log_destination-> struct UCLogDestination, and similar for other structs) Nils O. Selåsdal 2014-01-07 23:39:01 +01:00
  • 74b6a65bd2 Add build_type string to version.c Nils O. Selåsdal 2014-01-03 00:53:37 +01:00
  • c1a04820f4 Fix @prefix in subst_info Nils O. Selåsdal 2014-01-03 00:45:22 +01:00
  • 2a66973098 Refactor timer execution into its own function Nils O. Selåsdal 2013-12-31 03:00:58 +01:00
  • ca2b2be2ee Fix UC_NOT_REACHED Nils O. Selåsdal 2013-12-31 03:00:39 +01:00
  • 145f3c26ab Add readme file Nils O. Selåsdal 2013-12-29 23:50:04 +01:00
  • 0bb42dc235 Have iomux_update_events be a no-op if the events didn't change Nils O. Selåsdal 2013-12-26 03:20:47 +01:00
  • 9756ca0aeb Create header tile for timeutils, rename tval.c to time.c Nils O. Selåsdal 2013-12-25 19:42:40 +01:00
  • a147b868c0 Fix macros Nils O. Selåsdal 2013-12-24 14:11:11 +01:00
  • ae8e53bd65 Ifnore vim *.swo files Nils O. Selåsdal 2013-12-24 06:42:53 +01:00
  • 293ce4460f Add accessor function to the uclock of an IOMux Nils O. Selåsdal 2013-12-24 06:21:13 +01:00
  • 423c21bee2 Use a separate variable for the exit condition Nils O. Selåsdal 2013-12-24 02:30:22 +01:00
  • 89802286c4 Add iomux_wake example Nils O. Selåsdal 2013-12-24 01:56:42 +01:00
  • b83d2fb2cf Decouple the signalling into a struct IOMuxSignaller Nils O. Selåsdal 2013-12-24 01:51:40 +01:00