aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/9pfuse/main.c
Commit message (Collapse)AuthorAgeFilesLines
* all: remove need for `-fcommon`Dan Cross2025-07-251-1/+0
| | | | | | | | | | Use `extern` where appropriate so that we can remove `-fcommon` on macOS and others. On macOS, `-fcommon` generates a number of linker warnings. I've tested building on macOS, Linux, FreeBSD, NetBSD, OpenBSD and illumos. I am not in a position to test on AIX or other more esoteric platforms, however.
* libthread: add threadmaybackgroundRuss Cox2020-12-301-0/+6
| | | | | | | | Programs that want to background themselves now need to define threadmaybackground returning 1. This avoids a confusing (to people and debuggers) extra parent process for all the threaded programs that will never want to background themselves.
* 9pfuse: do not fswalk("..")Russ Cox2020-01-131-12/+5
| | | | | | | f is open, so walk will fail. The comments say we only need one directory anyway. Fixes #277.
* cmd/9pfuse: ignore FMODE_EXEC open flagNicola Girardi2020-01-131-2/+11
| | | | | | | | | Improved error message in case of unexpected open flags. The message unexpected open flags requested=0100040 unhandled=040 prompted me to clear the FMODE_EXEC flag, although I wonder if I shouldn't have set OEXEC (0x3) instead.
* Trivial changes: whitespace and modes.Dan Cross2020-01-101-37/+37
| | | | | | | | | Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
* 9pfuse: fix handling of access mode (thanks Kenji Arisawa)David du Colombier2018-02-051-1/+3
| | | | Fixes #81.
* 9pfuse: Disable glibc workaround for O_LARGEFILE on ARMMerlijn Wajer2014-12-021-1/+4
| | | | | | | | | | | 9pfuse fails on ARM when O_LARGEFILE is supported. glibc does define O_LARGEFILE properly on ARM, and the value is different than what that this workaround suggests, causing it to wrongly detect bad flags. Change-Id: I02b0cc222ca7785c4b1739c3df3caa17cf7bc265 Reviewed-on: https://plan9port-review.googlesource.com/1094 Reviewed-by: Russ Cox <rsc@swtch.com>
* 9pfuse: fix memory leak, avoid memory explosionTies Bos2012-09-101-2/+11
| | | | | | | | Change is to handle FUSE_FORGET in main loop instead of separate thread for each as 10s of thousands can come in at once. Fixes issue 104. R=0intro, rsc http://codereview.appspot.com/6498081
* semicolons!Russ Cox2011-10-071-2/+2
|
* 9pfuse: handle two more flagsRuss Cox2011-10-051-1/+8
|
* 9pfuse: clear O_EXCL tooRuss Cox2009-04-301-1/+1
|
* 9pfuse: allow O_APPEND in open and create (Roman Shaposhnik)Russ Cox2008-12-301-1/+8
|
* 9pfuse: always return . and ..Russ Cox2008-07-041-3/+28
|
* 9pfuse: add symlink supportRuss Cox2008-07-041-1/+30
|
* 9pfuse: "fix" O_LARGEFILE on x86_64 linux (sqweek)Russ Cox2008-06-191-5/+14
|
* 9pfuse: bug fix in error caseRuss Cox2008-05-051-0/+1
|
* 9pfuse: accept - for stdin, try to hang up cleanlyRuss Cox2008-04-171-4/+20
|
* mergeRuss Cox2007-11-271-5/+14
|
* add -a anamersc2007-06-211-6/+10
|
* Unswap perm and omode in fsfcreate call (Michael Teichgräber)rsc2007-05-091-1/+1
|
* Better flag handling in fusecreate (Michael Teichgräber)rsc2007-05-091-0/+2
|
* propagate offset in reads and writes (Michael Teichgräber)rsc2007-05-041-2/+2
|
* break from readdir properly (Lou Kamenov)rsc2006-08-011-14/+16
|
* use better O_LARGEFILErsc2006-07-271-0/+4
|
* wait for mount to complete before exitingrsc2006-07-271-0/+5
|
* FreeBSD fixes (Lou Kamenov)rsc2006-07-261-2/+9
|
* remove debug printrsc2006-07-231-1/+0
|
* better errstrrsc2006-07-231-7/+3
|
* better open modersc2006-07-231-5/+10
|
* gnuismsrsc2006-07-231-1/+10
|
* 9pfusersc2006-07-231-0/+1169