aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_signals.c
AgeCommit message (Collapse)AuthorLines
2019-09-04Introduce callback for loggingStefan Hajnoczi-2/+2
Introduce an API for custom log handler functions. This allows libfuse applications to send messages to syslog(3) or other logging systems. See include/fuse_log.h for details. Convert libfuse from fprintf(stderr, ...) to log_fuse(level, ...). Most messages are error messages with FUSE_LOG_ERR log level. There are also some debug messages which now use the FUSE_LOG_DEBUG log level. Note that lib/mount_util.c is used by both libfuse and fusermount3. Since fusermount3 does not link against libfuse, we cannot call fuse_log() from lib/mount_util.c. This file will continue to use fprintf(stderr, ...) until someone figures out how to split it up. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2018-04-13Drop unneeded void cast for actually used local variableTomohiro Kusumi-1/+0
`int sig` is acutually used, so `(void) sig;` is unneeded.
2017-05-24fuse_signals.c: use new do_nothing function instead of SIG_IGNNikolaus Rath-2/+12
Fixes: #160.
2016-11-29Return signal value if session loop is terminated by signal and improve ↵Nikolaus Rath-1/+9
documentation
2016-10-28Clean-up doxygen documentationNikolaus Rath-2/+0
Fixes: #81.
2016-10-02Extended per-file comments.Nikolaus Rath-0/+2
This should make more clear what file contains code for what purpose.
2016-03-29Whitespace cleanup.Nikolaus Rath-1/+0
Applied (whitespace-cleanup) to each file. Having whitespace changes in the VCS is ugly, but it ensures that in the future committers can run this function to *avoid* commiting any whitespace.
2015-02-26libfuse: fix fuse_remove_signal_handlers()Miklos Szeredi-11/+11
to properly restore the default signal handler. Reported by: Chris Johnson <johnsocg@gmail.com>
2013-07-24libfuse: remove "-D_FILE_OFFSET_BITS=64" from fuse.pcMiklos Szeredi-0/+1
add AC_SYS_LARGEFILE to your configure.ac instead.
2013-07-02rewrote c++ style comments to c style coments mentioned by Miklos SzerediJoachim Schiele-2/+2
2013-06-20- added a doxygen main pageJoachim Schiele-0/+2
- modified all examples to be included in doxygen - modified the API documentation to have more details - added the 490px_FUSE_structure.svg.png (c) wikipedia
2007-12-12change indentingMiklos Szeredi-39/+39
2007-10-16Clarify licence version to be "LGPLv2" for the libraryMiklos Szeredi-1/+1
2007-04-25update copyright datesMiklos Szeredi-1/+1
2006-09-07interrupt supportMiklos Szeredi-2/+2
2006-01-06fixMiklos Szeredi-0/+72