Pavel Roskin 99800b2f24 * direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C. 22 лет назад
..
extfs 748e028d05 * */Makefile.am: Replace mclibdir with pkgdatadir to use "share" 22 лет назад
samba e7cf7313f8 * samba/lib/debug.c (debug_count): Removed. 22 лет назад
.cvsignore c9c3e9538e *.sor added. 24 лет назад
COPYING.LGPL 2a8730b21c 26 лет назад
ChangeLog 99800b2f24 * direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C. 22 лет назад
Makefile.am f17e11bc9f * configure.in: Roll --enable-mcserv-install into ... 22 лет назад
README ea0410522b Ran file through ispell, this is result :-) 26 лет назад
README.fish 1fc74d5ab3 * README.fish: Spelling fixes. 24 лет назад
callback.h e6e9f038ed Fixed number of callbacks, added prototype of function to set 27 лет назад
container.c e828211662 Updated address of Free Software Foundation 24 лет назад
container.h eb6b3842ab Initial revision 27 лет назад
cpio.c bd4b18731e s/suplied/supplied/ 22 лет назад
direntry.c 99800b2f24 * direntry.c (vfs_s_retrieve_file): Allow interrupt by Ctrl-C. 22 лет назад
extfs.c da7e82d253 Global removal of RCS Id: flags. 22 лет назад
extfs.h 4b54385dc6 * extfs.h: Move private structures ... 23 лет назад
fish.c da7e82d253 Global removal of RCS Id: flags. 22 лет назад
fish.h 4706638b22 Big merge: fish now uses proper caching, small fixes almost 26 лет назад
ftpfs.c da7e82d253 Global removal of RCS Id: flags. 22 лет назад
ftpfs.h da7e82d253 Global removal of RCS Id: flags. 22 лет назад
local.c 966511399b Move fcntl.h inclusion to global.h. 22 лет назад
local.h e52a2125fa *** empty log message *** 26 лет назад
mcfs.c da7e82d253 Global removal of RCS Id: flags. 22 лет назад
mcfs.h 176dc1f70d static's added, do_reget hack removed 26 лет назад
mcserv.c 966511399b Move fcntl.h inclusion to global.h. 22 лет назад
names.c 77e155246d * names.c (finduname): Don't use HAVE_GETPWUID - it's never 23 лет назад
names.h eb6b3842ab Initial revision 27 лет назад
sfs.c da7e82d253 Global removal of RCS Id: flags. 22 лет назад
smbfs.c da7e82d253 Global removal of RCS Id: flags. 22 лет назад
smbfs.h 7f75f866af Declare smbfs_set_debugf(). 22 лет назад
tar.c 7978b33a9d * ftpfs.c: Replace bzero and bcopy with memset and memcpy. 22 лет назад
tar.h e828211662 Updated address of Free Software Foundation 24 лет назад
tcputil.c 50ac0519dd * tcputil.c [!WITH_MCFS]: Disable mcfs related code. 22 лет назад
tcputil.h 2acfb89cd4 * tcputil.h: Move use_netrc declaration ... 23 лет назад
undelfs.c da7e82d253 Global removal of RCS Id: flags. 22 лет назад
utilvfs.c 3c7cc35025 * ftpfs.c: Check for existance of arpa/inet.h when using it. 22 лет назад
utilvfs.h 680f3f7ed2 * cpio.c: Include <config.h> before everything else. 24 лет назад
vfs.c da7e82d253 Global removal of RCS Id: flags. 22 лет назад
vfs.h ec1b1f9614 Globally replace OS2_NT and _OS_NT with WIN32_NATIVE. 22 лет назад
xdirentry.h da7e82d253 Global removal of RCS Id: flags. 22 лет назад

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.