summaryrefslogtreecommitdiff
path: root/src/core/wee-util.c
AgeCommit message (Collapse)Author
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
2012-12-15core: move comments with description of C file to top of filesSebastien Helleu
2012-12-13core: reformat comments for functionsSebastien Helleu
2012-08-01core: add option weechat.startup.sys_rlimit to set system resource limits ↵Sebastien Helleu
for WeeChat process
2012-02-19core: fix memory leak in function util_search_full_lib_nameSebastien Helleu
2012-01-08core: update copyright datesSebastien Helleu
2011-11-27core: check pointer returned by function localtimeSebastien Helleu
2011-11-27irc: fix crash when signon time in message 317 (whois, idle) is invalid (too ↵Sebastien Helleu
large) (bug #34905)
2011-11-15core: allow list for option weechat.plugin.extension (makes weechat.conf ↵Sebastien Helleu
portable accross Un*x and Windows) (task #11479)
2011-11-03core: fix typo: occured -> occurredSebastien Helleu