[w3m-dev 03431] save file by background process

* file.c (loadGeneralFile): use _doFileCopy()
	(_doFileCopy): renamed from doFileCopy()
			lock
			fork & save
	(doFileSave): lock
			fork & save
* fm.h (DownloadList): added
	(FirstDL): added
	(LastDL): added
* form.c (struct internal_action): add download
* funcname.tab (DOWNLOAD_LIST): added
* html.h (URLFile): add url
* main.c (dump_extra): add add_download_list
	(main): add_download_list, ldDL()
	(_quitfm): added
	(quitfm): rewrite with _quitfm()
	(qquitfm): ditto
	(w3m_exit): stopDownload()
	(addDownloadList): added
	(checkDownloadList): added
	(convert_size3): added
	(DownloadListBuffer): added
	(download_action): added
	(stopDownload): added
	(ldDL): added
* proto.h (ldDL): added
	(convert_size): added
	(convert_size2): added
	(doFileCopy): deleted
	(_doFileCopy): added
	(addDownloadList): added
	(stopDownload): added
	(checkDownloadList): added
	(download_action): added
* url.c (openURL): save url in uf
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
This commit is contained in:
Fumitoshi UKAI
2002-11-15 15:19:43 +00:00
parent ccd60ac7b7
commit 62fc785e24
9 changed files with 392 additions and 31 deletions

3
html.h
View File

@@ -1,4 +1,4 @@
/* $Id: html.h,v 1.9 2002/10/10 16:59:33 ukai Exp $ */
/* $Id: html.h,v 1.10 2002/11/15 15:19:45 ukai Exp $ */
#ifndef _HTML_H
#define _HTML_H
#ifdef USE_SSL
@@ -72,6 +72,7 @@ typedef struct {
#ifdef USE_SSL
char *ssl_certificate;
#endif
char *url;
} URLFile;
#define CMP_NOCOMPRESS 0