lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LYNX-DEV Re: Lynx/386 and problem with compressed files..


From: Foteos Macrides
Subject: Re: LYNX-DEV Re: Lynx/386 and problem with compressed files..
Date: Wed, 14 May 1997 19:55:32 -0500 (EST)

Klaus Weide <address@hidden> wrote:
>On Wed, 14 May 1997, Foteos Macrides wrote:
>> Wayne Buttles <address@hidden> wrote:
>
>> >I am not entirely sure what to do here.  When a compressed file file is
>> >encountered (gzip, compress...), lynx makes a temp file with two
>> >extentions like Lxxxxxxx.txt.gz and then expects the resulting file to be
>> >Lxxxxxxx.txt.  I am not sure how to modify this for the 386 port which
>> >can't handle it.  Anyone have any thoughts?
>> 
>>      Look at the for-VMS code, which already deals with that.  VMS
>> does not support multiple dot filenames (as in the devel code archive
>> names 8-), and thus substitutes dashes or underscores, and gunzip for
>> VMS in turn handles those as intended, to yield Lxxxxxx.txt on
>> uncompression.
>
>Yeah, that sounds better than what I just wrote.
>
>There may be problems because of 8-character filename limit, which VMS
>doesn't have.

        On multi-user systems, the so-called xxxxxxxx's include a process
unique number returned by getpid(), to dististguish the files of different
simultaneous users, plus a counter, to distigush each user's temporary
file set:

        /*
         *      Create name
         */
            sprintf(namebuffer, "%sL%d%uTMP.html", lynx_temp_space,
                                                   getpid(), counter++);
        }

The ".html" is then replaced (by the calling function) with one suitable
for the MIME type of the file's content (know to the calling function),
or left the default .html for the print, download, etc., menus.

        The .html could be .htm for WIN/DOS, and since those are single
user systems, the getpid() number is not needed, just the counter, so
the names can be shorter.

        Plus on Unix the pid plus counter numbers may be too predicatable,
for some systems, so...

                                Fote

=========================================================================
 Foteos Macrides            Worcester Foundation for Biomedical Research
 address@hidden         222 Maple Avenue, Shrewsbury, MA 01545
=========================================================================
;
; To UNSUBSCRIBE:  Send a mail message to address@hidden
;                  with "unsubscribe lynx-dev" (without the
;                  quotation marks) on a line by itself.
;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]