Pavel Roskin 7d90636758 Reuse existing button names. 22 years ago
..
extfs 748e028d05 * */Makefile.am: Replace mclibdir with pkgdatadir to use "share" 22 years ago
samba 9740d2a810 (string_initial): Commented out. 22 years ago
.cvsignore c9c3e9538e *.sor added. 24 years ago
COPYING.LGPL 2a8730b21c 26 years ago
ChangeLog 7bb1b58274 * vfs.h: Remove tar_gzipped_memlimit. 22 years ago
Makefile.am b5e7441d98 * tcputil.c: Split mcfs-specific part to 22 years ago
README ea0410522b Ran file through ispell, this is result :-) 26 years ago
README.fish 1fc74d5ab3 * README.fish: Spelling fixes. 24 years ago
cpio.c bd4b18731e s/suplied/supplied/ 22 years ago
direntry.c 416008fc74 * direntry.c (vfs_s_resolve_symlink): Use g_snprintf() instead 22 years ago
extfs.c da7e82d253 Global removal of RCS Id: flags. 22 years ago
extfs.h 4b54385dc6 * extfs.h: Move private structures ... 23 years ago
fish.c 95ffa342bd * container.h: Remove, it's unused. 22 years ago
fish.h 4706638b22 Big merge: fish now uses proper caching, small fixes almost 26 years ago
ftpfs.c 604950704a * ftpfs.c (linear_abort): Add a timeout after which a reconnect 22 years ago
ftpfs.h da7e82d253 Global removal of RCS Id: flags. 22 years ago
local.c 966511399b Move fcntl.h inclusion to global.h. 22 years ago
local.h e52a2125fa *** empty log message *** 26 years ago
mcfs.c 7d90636758 Reuse existing button names. 22 years ago
mcfs.h 176dc1f70d static's added, do_reget hack removed 26 years ago
mcfsutil.c b5e7441d98 * tcputil.c: Split mcfs-specific part to 22 years ago
mcfsutil.h 70faf8a7c4 Comment change. 22 years ago
mcserv.c b5e7441d98 * tcputil.c: Split mcfs-specific part to 22 years ago
names.c 77e155246d * names.c (finduname): Don't use HAVE_GETPWUID - it's never 23 years ago
names.h eb6b3842ab Initial revision 27 years ago
sfs.c 3d4ea6e96d * sfs.c (vfmake): Use open_error_pipe() and close_error_pipe(). 22 years ago
smbfs.c f4a0b6e40b * smbfs.c (fake_share_stat): Make sure share exists by 22 years ago
smbfs.h 7f75f866af Declare smbfs_set_debugf(). 22 years ago
tar.c 7978b33a9d * ftpfs.c: Replace bzero and bcopy with memset and memcpy. 22 years ago
tar.h e828211662 Updated address of Free Software Foundation 24 years ago
tcputil.c b5e7441d98 * tcputil.c: Split mcfs-specific part to 22 years ago
tcputil.h b5e7441d98 * tcputil.c: Split mcfs-specific part to 22 years ago
undelfs.c da7e82d253 Global removal of RCS Id: flags. 22 years ago
utilvfs.c 924c985630 * utilvfs.c: Remove tests, since get_host_and_username() is 22 years ago
utilvfs.h 680f3f7ed2 * cpio.c: Include <config.h> before everything else. 24 years ago
vfs.c d3f0a2f61b Remove spaces around "Error" and "Warning" together with their translations. 22 years ago
vfs.h 7bb1b58274 * vfs.h: Remove tar_gzipped_memlimit. 22 years ago
xdirentry.h 07f3c2f7af * xdirentry.h: Comment out magic field everywhere. 22 years ago

README

Hi!

I'm midnight commander's vfs layer. Before you start hacking me,
please read this file. I'm integral part of midnight commander, but I
try to go out and live my life myself as a shared library, too. That
means that I should try to use as little functions from midnight as
possible (so I'm tiny, nice and people like me), that I should not
pollute name space by unnecessary symbols (so I do not crash fellow
programs) and that I should have a clean interface between myself and
midnight.

Because I'm rather close to midnight, try to:

* Keep updating ChangeLog file.

* Keep the indentation as the rest of the code. Following could help
you with your friend emacs:

(defun mc-c-mode ()
"C mode with adjusted defaults for use with the Midnight commander."
(interactive)
(c-mode)
(c-set-style "K&R")
(setq c-indent-level 4
c-continued-statement-offset 4
c-brace-offset 0
c-argdecl-indent 4
c-label-offset -4
c-brace-imaginary-offset 0
c-continued-brace-offset 0
c-tab-always-indent nil
c-basic-offset 4
tab-width 8
comment-column 60))

(setq auto-mode-alist (cons '(".*/mc/.*\\.[ch]$" . mc-c-mode)
auto-mode-alist))

And because I'm trying to live life on my own as libvfs.so, try to:

* Make sure all exported symbols are defined in vfs.h and begin with
'vfs_'.

* Do not make any references from midnight into modules like tar. It
would probably pollute name space and midnight would depend on concrete
configuration of libvfs. mc_setctl() and mc_ctl() are your
friends. (And mine too :-).

Pavel Machek
pavel@ucw.cz

PS: If you'd like to use my features in whole operating system, you
might want to link me to rpc.nfsd. On
http://atrey.karlin.mff.cuni.cz/~pavel/podfuk/podfuk.html you'll find
how to do it.

PPS: I have a friend, shared library called avfs, which is LD_PRELOAD
capable. You can reach her at http://www.inf.bme.hu/~mszeredi/avfs.