aboutsummaryrefslogtreecommitdiffstats
path: root/lib/fuse_opt.c
AgeCommit message (Collapse)AuthorLines
2025-06-27license: s/COPYING/GPL2.txt, s/COPYING.LIB/LGPL2.txtizxl007-1/+1
Signed-off-by: izxl007 <zeng.zheng@zte.com.cn>
2023-01-28Install a the configure_file (config.h) and use in headersBernd Schubert-1/+1
This addresses: https://github.com/libfuse/libfuse/issues/724 HAVE_LIBC_VERSIONED_SYMBOLS configures the library if to use versioned symbols and is set at meson configuration time. External filesystems (the main target, actually) include fuse headers and the preprocessor then acts on HAVE_LIBC_VERSIONED_SYMBOLS. Problem was now that 'config.h' was not distributed with libfuse and so HAVE_LIBC_VERSIONED_SYMBOLS was never defined with external tools and the preprocessor did the wrong decision. This commit also increases the the minimal meson version, as this depends on meson feature only available in 0.50 <quote 'meson' > WARNING: Project specifies a minimum meson_ version '>= 0.42' but uses features which were added in newer versions: * 0.50.0: {'install arg in configure_file'} </quote> Additionally the config file has been renamed to "fuse_config.h" to avoid clashes - 'config.h' is not very specific.
2019-09-04Introduce callback for loggingStefan Hajnoczi-4/+5
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>
2019-06-06Avoid pointer arithmetic with `void *`Michael Forney-1/+1
The pointer operand to the binary `+` operator must be to a complete object type. Since we are working with byte sizes, use `char *` instead.
2016-10-02Extended per-file comments.Nikolaus Rath-0/+3
This should make more clear what file contains code for what purpose.
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-02-19fuse_opt_parse(): fix memory leakMiklos Szeredi-1/+3
when storing a newly allocated string for format "%s", free the previous value stored at that location. Reported by Marco Schuster
2012-07-19Remove compat functionsMiklos Szeredi-7/+0
2012-07-19Remove old symbol versionsMiklos Szeredi-3/+0
2012-01-27Interpret octal escape codes in optionsMiklos Szeredi-2/+14
Requested by Jan Engelhardt
2011-03-30Fix a potential resource leak (newargv)Laszlo Papp-2/+7
2008-10-16* Allow commas in options to be escaped with a backslash * Add new function: ↵Miklos Szeredi-33/+56
fuse_opt_add_opt_escaped() * Add missing fuse_reply_bmap() to the version script
2007-12-12change indentingMiklos Szeredi-263/+265
2007-12-12Disable old symbol versions if __UCLIBC__ is definedMiklos Szeredi-1/+18
2007-10-16Clarify licence version to be "LGPLv2" for the libraryMiklos Szeredi-1/+1
2007-07-25Don't call /bin/[u]mount if /etc/mtab is a symlinkMiklos Szeredi-5/+7
2007-07-12Reset args->argc in fuse_opt_free_args()Miklos Szeredi-0/+1
2007-04-25update copyright datesMiklos Szeredi-1/+1
2006-01-20fixMiklos Szeredi-25/+30
2006-01-06fixMiklos Szeredi-17/+26
2005-12-16fixMiklos Szeredi-41/+32
2005-12-14fixMiklos Szeredi-1/+1
2005-12-12fixMiklos Szeredi-5/+5
2005-12-10fixMiklos Szeredi-2/+4
2005-12-09fixMiklos Szeredi-1/+1
2005-12-09new versionMiklos Szeredi-10/+4
2005-12-09added option parsingMiklos Szeredi-0/+363