summaryrefslogtreecommitdiff
path: root/src/core/wee-util.c
AgeCommit message (Collapse)Author
2024-01-27api: add support of specifier `%!` for timestamp in function util_strftimevalSébastien Helleu
2024-01-05api: add function util_parse_time (issue #649)Sébastien Helleu
2024-01-01core: update copyright datesSébastien Helleu
2023-12-26core: store microseconds in buffer lines (closes #649)Sébastien Helleu
2023-08-28core: add command `/sys` to show resource limits and usageSébastien Helleu
2023-08-25core: add function util_get_microseconds_stringSébastien Helleu
2023-08-25core: add microseconds precision in function util_parse_delaySébastien Helleu
2023-04-15doc/api: add more examples on function util_version_numberSébastien Helleu
2023-04-14core: remove unnecessary condition in comparison of timeval structuresSébastien Helleu
Ref: https://github.com/weechat/weechat-relay/pull/3
2023-01-01core: update copyright datesSébastien Helleu
2022-01-17core: update copyright datesSébastien Helleu
2021-05-11core: move directory/file functions from wee-util.c to wee-dir.c (issue #1285)Sébastien Helleu
2021-03-16core: add options to customize commands on system signals, quit by default ↵Sébastien Helleu
on SIGHUP when not running headless (closes #1595) New options to customize behavior on signals received, with the default behavior: - weechat.signal.sighup: quit in normal mode, reload config in headless - weechat.signal.sigquit: quit - weechat.signal.sigterm: quit - weechat.signal.sigusr1: no command executed by default - weechat.signal.sigusr2: no command executed by default The signals SIGUSR1 and SIGUSR2 are introduced by this commit, so it's now possible to run commands when they are received. The SIGHUP signal makes now WeeChat quit, it was the behavior before version 2.9 of WeeChat (see commit de1e61f7cd50cbd1a99777fe6611642a51abf5f6).
2021-01-02core: update copyright datesSébastien Helleu
2020-11-17core: fix and normalize error messagesSébastien Helleu
2020-04-21core: restore signal "signal_sighup", and if eaten do not reload configurationSébastien Helleu
2020-02-02core: rename function util_get_uptime to util_get_time_diffSébastien Helleu
The two times must be sent as parameters, which makes the function not specific to uptime. It is now easier to test the function in unit tests.
2020-01-04core: update copyright datesSébastien Helleu
2019-06-15api: add argument "strip_items" in function string_splitSébastien Helleu
2019-04-01tests: add tests on function util_signal_searchSébastien Helleu
2019-03-29core: move parsing of /wait delay in a separate function, with unit testsSébastien Helleu
2019-03-10core: replace argument "keep_eol" by "flags" in function string_split ↵Sébastien Helleu
(closes #1322)
2019-01-01core: update copyright datesSébastien Helleu
2018-11-29core: use https for links to GNU GPL licenseSébastien Helleu
2018-11-17core: add command line option "-t" (or "--temp-dir") to create a temporary ↵Sébastien Helleu
WeeChat home (deleted on exit)
2018-01-07core: fix some stylesSébastien Helleu
2018-01-05core: update copyright datesSébastien Helleu
2017-11-04core: add missing includes of stdio.hSébastien Helleu
2017-09-23core, plugins: check return code of strftime functionSébastien Helleu
2017-07-05core: add constant WEECHAT_EXTRA_LIBDIRSébastien Helleu
2017-07-05core: search WEECHAT_EXTRA_LIBDIR for plugins (closes #971, issue #979)Linus Heckemann
In addition to searching the statically configured WEECHAT_LIBDIR (weechat's installation directory) for plugins, search the path given in the environment variable WEECHAT_EXTRA_LIBDIR. This makes departing from the FHS standard while keeping the plugins packaged separately easier. This change was made specifically with the Nix package manager in mind, but can easily be used by others.
2017-07-04core: use PATH_MAX for size of variable with complete filename in exec_on_filesSébastien Helleu
2017-07-04api: add argument "recurse_subdirs" in function exec_on_files()Sébastien Helleu
2017-01-01core: update copyright datesSébastien Helleu
2016-12-31api: add info "uptime" (WeeChat uptime)Sébastien Helleu
2016-10-08core: fix integer overflow in calls to realloc (issue #809)Sébastien Helleu
2016-08-13core: free file pointer in case of memory error in util_file_get_content()Sébastien Helleu
2016-03-21core: add pointer in some callbacks (closes #406)Sébastien Helleu
This pointer is the first argument received by callbacks, and the existing argument "data" is now automatically freed by WeeChat when the object containing the callback is removed. With this new pointer, the linked list of callbacks in scripts has been removed. This will improve speed of scripts (using a lot of hooks), reduce memory used by scripts and reduce time to unload scripts. Following functions are affected in the C API: * exec_on_files * config_new * config_new_section * config_new_option * hook_command * hook_command_run * hook_timer * hook_fd * hook_process * hook_process_hashtable * hook_connect * hook_print * hook_signal * hook_hsignal * hook_config * hook_completion * hook_modifier * hook_info * hook_info_hashtable * hook_infolist * hook_hdata * hook_focus * unhook_all_plugin * buffer_new * bar_item_new * upgrade_new * upgrade_read
2016-01-01core: update copyright datesSébastien Helleu
2015-07-04api: fix type of value returned by function util_get_time_stringSébastien Helleu
2015-07-04api: fix type of value returned by functions utf8_prev_char, utf8_next_char ↵Sébastien Helleu
and utf8_add_offset
2015-04-30core: add comments after some #endifSébastien Helleu
2015-01-19core: check that filename is not NULL in function util_file_get_contentSébastien Helleu
2015-01-01core: update copyright datesSébastien Helleu
2014-08-29api: use microseconds instead of milliseconds in functions util_timeval_diff ↵Sébastien Helleu
and util_timeval_add
2014-07-05core: check that timeval arguments are not NULL in timeval functionsSébastien Helleu
2014-03-11api: add option "signal" in function hook_set to send a signal to the child ↵Sebastien Helleu
process
2014-02-26core: fix size used in some snprintfSebastien Helleu
2014-01-01core: update copyright datesSebastien Helleu
2013-01-01core: update copyright datesSebastien Helleu