Pavel Roskin 99800b2f24 * direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C. 22 years ago
..
extfs 748e028d05 * */Makefile.am: Replace mclibdir with pkgdatadir to use "share" 22 years ago
samba e7cf7313f8 * samba/lib/debug.c (debug_count): Removed. 22 years ago
.cvsignore c9c3e9538e *.sor added. 24 years ago
COPYING.LGPL 2a8730b21c 26 years ago
ChangeLog 99800b2f24 * direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C. 22 years ago
Makefile.am f17e11bc9f * configure.in: Roll --enable-mcserv-install into ... 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
callback.h e6e9f038ed Fixed number of callbacks, added prototype of function to set 27 years ago
container.c e828211662 Updated address of Free Software Foundation 24 years ago
container.h eb6b3842ab Initial revision 27 years ago
cpio.c bd4b18731e s/suplied/supplied/ 22 years ago
direntry.c 99800b2f24 * direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C. 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 da7e82d253 Global removal of RCS Id: flags. 22 years ago
fish.h 4706638b22 Big merge: fish now uses proper caching, small fixes almost 26 years ago
ftpfs.c da7e82d253 Global removal of RCS Id: flags. 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 da7e82d253 Global removal of RCS Id: flags. 22 years ago
mcfs.h 176dc1f70d static's added, do_reget hack removed 26 years ago
mcserv.c 966511399b Move fcntl.h inclusion to global.h. 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 da7e82d253 Global removal of RCS Id: flags. 22 years ago
smbfs.c da7e82d253 Global removal of RCS Id: flags. 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 50ac0519dd * tcputil.c [!WITH_MCFS]: Disable mcfs related code. 22 years ago
tcputil.h 2acfb89cd4 * tcputil.h: Move use_netrc declaration ... 23 years ago
undelfs.c da7e82d253 Global removal of RCS Id: flags. 22 years ago
utilvfs.c 3c7cc35025 * ftpfs.c: Check for existance of arpa/inet.h when using it. 22 years ago
utilvfs.h 680f3f7ed2 * cpio.c: Include <config.h> before everything else. 24 years ago
vfs.c da7e82d253 Global removal of RCS Id: flags. 22 years ago
vfs.h ec1b1f9614 Globally replace OS2_NT and _OS_NT with WIN32_NATIVE. 22 years ago
xdirentry.h da7e82d253 Global removal of RCS Id: flags. 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.