Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.comp.software.firefox > #8250

Re: Can't find directory, but Everything says it's there

From Paul <nospam@needed.invalid>
Newsgroups alt.comp.software.firefox, alt.comp.os.windows-10
Subject Re: Can't find directory, but Everything says it's there
Date 2023-11-26 19:48 -0500
Organization A noiseless patient Spider
Message-ID <uk0p0h$3fehs$1@dont-email.me> (permalink)
References <rvg5mi5ktd4o3n3u1stj5hu6tgaodflp39@4ax.com> <ujv1r6$37889$1@dont-email.me> <k267mipjdt828a0kj9666atqtirru27nh4@4ax.com> <kshlhcFej1rU2@mid.individual.net> <kshm3uFcu6kU2@mid.individual.net>

Cross-posted to 2 groups.

Show all headers | View raw


On 11/26/2023 2:54 PM, Andy Burns wrote:
> Carlos E. R. wrote:
>>
>> At the OS filesystem driver level, a 32 bit OS has a problem reading huge sizes.
> 
> Even then, not really ... Win32 API uses two LONG integers for the high and low "halves" of a 64bit pointer for file seeking.
> 

There are some comments in here, regarding behaviors of older
and much older OSes.

C:\MinGW\include\stdio.h

FILE *  fopen64 (const char *, const char *);  /* filename, filemode */

# This stanza suggests Micky may be correct, for really old OSes.
# And less correct for modern OSes. Maybe WinXP had proper 64 bit offsets
# while it was a 32-bit OS. it suggests that MSVCRT (C runtime), did not
# always exist. And whatever came before, had a different stdio.h .

#ifdef __MSVCRT__
 /* ...an explicitly 64-bit file offset type, for MSVCRT.DLL users...
  */
# define __need___off64_t
#else
 /* ...or a 32-bit equivalent, for pre-MSVCRT.DLL users.
  */
# define __need___off32_t
#endif

/* This would be a private function. Offset would be a 64 bit operand */

int __mingw_fseek (FILE *, __off64_t, int);   /* stream, offset, whence = SEEK_SET, SEEK_CUR, or SEEK_END */

The reason fwrite() and fread() don't need length parameters of 64 bits
for their buffer operation, is a 32 bit OS, has a 2GB/2GB user/kernel split
or a 3GB/1GB user/kernel split. A 3GB length parameter for a 3GB buffer,
is easily carried in a 32-bit size_t.

Using PAE, you can define multiple processes, each
with a kernel/user split, to use all the RAM, but that does not change
the dynamics per-process. They still have limited address space,
limited buffer definitions. Physical devices themselves have a max_length,
which can be rather small (1MB maybe). Depending on how your call is
being chopped up behind your back, you can actually get a code back
from a device that the size is too large.

When you read or write, the F_POS is recorded and something other than
your program does the 64-bit math. Perhaps ftell() can tell you where
the pointer is right now. Seek commands push the pointer around. This
is why the private seek above, has an __off64_t, because when seeking,
you could be seeking 64-bit distances, and going back to writing
"chunks" handled by 32-bit size descriptions.

I had to figure some of this out, when writing my file compressor,
and that's when I needed 64-bit size capability, to get past
handling only trivial sized files.

It would be on a 64-bit OS, where you'd need an fwrite64().
As now you can have buffers the size of a dual socket Epyc.

   Paul

Back to alt.comp.software.firefox | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-25 23:05 -0500
  Re: Can't find directory, but Everything says it's there Ralph Fox <-rf-nz-@-.invalid> - 2023-11-26 19:32 +1300
    Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-26 14:05 -0500
  Re: Can't find directory, but Everything says it's there Dave <news@triffid.co.uk> - 2023-11-26 08:02 +0000
    Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-26 14:01 -0500
      Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-26 21:08 -0500
  Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-26 04:06 -0500
    Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-26 14:20 -0500
      Re: Can't find directory, but Everything says it's there "Carlos E. R." <robin_listas@es.invalid> - 2023-11-26 20:44 +0100
        Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-26 19:54 +0000
          Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-26 19:48 -0500
            Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-26 20:56 -0500
              Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-11-27 02:06 -0600
            Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-27 09:34 +0000
      Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-26 19:46 +0000
        Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-26 16:13 -0500
          Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-26 21:27 +0000
            Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-26 17:11 -0500
              Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-27 09:00 +0000
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-27 15:13 -0500
      Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-11-26 16:07 -0600
        Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-26 20:34 -0500
          Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-26 21:03 -0500
        Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-26 20:58 -0500
  Re: Can't find directory, but Everything says it's there knuttle <keith_nuttle@yahoo.com> - 2023-11-26 08:16 -0500
    Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-26 14:09 -0500
      Re: Can't find directory, but Everything says it's there knuttle <keith_nuttle@yahoo.com> - 2023-11-26 15:47 -0500
        Re: Can't find directory, but Everything says it's there knuttle <keith_nuttle@yahoo.com> - 2023-11-26 15:56 -0500
          Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-26 16:15 -0500
  Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-27 15:18 -0500
    Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-27 20:28 +0000
      Re: Can't find directory, but Everything says it's there AllanH <nospam@unokix.invalid> - 2023-11-27 15:16 -0600
        Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-27 21:49 +0000
          Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-27 21:51 +0000
          Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-27 22:02 +0000
            Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-27 23:21 -0500
        Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-27 16:51 -0500
        Re: Can't find directory, but Everything says it's there "Carlos E. R." <robin_listas@es.invalid> - 2023-11-27 22:55 +0100
          Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-27 17:47 -0500
            Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-27 17:57 -0500
              Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-27 20:40 -0500
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-28 19:44 -0500
                Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-11-28 23:18 -0600
                Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-29 03:29 -0500
                Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-29 04:52 -0500
                Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-29 04:48 -0500
                Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-29 13:22 +0000
                Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-11-29 11:45 -0600
                Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-29 18:34 +0000
                Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-11-29 20:51 -0600
                Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-30 03:53 +0000
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-29 13:27 -0500
                Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-11-29 12:47 -0600
                Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-29 16:42 -0500
                Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-11-29 20:44 -0600
                Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-29 22:40 -0500
                Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-11-29 23:03 -0600
                Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-12-01 22:41 -0600
                Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-12-02 09:29 +0000
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-12-02 12:17 -0500
                Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-12-02 14:49 -0600
                Re: Can't find directory, but Everything says it's there "Carlos E. R." <robin_listas@es.invalid> - 2023-12-02 11:36 +0100
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-12-02 12:24 -0500
                Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-12-02 13:52 -0500
                Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-12-02 19:11 +0000
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-12-02 14:54 -0500
                Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-12-02 20:35 -0500
                Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-30 04:10 +0000
                Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-30 04:17 +0000
                Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-30 04:32 -0500
                Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-11-29 22:59 -0600
                Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-29 08:03 +0000
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-29 13:34 -0500
                Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-29 18:40 +0000
                Re: Can't find directory, but Everything says it's there Char Jackson <none@none.invalid> - 2023-11-29 20:52 -0600
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-12-02 12:13 -0500
                Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-12-02 14:01 -0500
                Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-12-02 19:08 +0000
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-12-02 14:59 -0500
              Re: Can't find directory, but Everything says it's there AllanH <nospam@unokix.invalid> - 2023-11-28 01:54 -0600
                Re: Can't find directory, but Everything says it's there AllanH <nospam@unokix.invalid> - 2023-11-28 02:12 -0600
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-28 10:15 -0500
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-12-01 10:53 -0500
            Re: Can't find directory, but Everything says it's there "Carlos E. R." <robin_listas@es.invalid> - 2023-11-28 14:49 +0100
              Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-28 10:22 -0500
                Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-28 16:26 +0000
                Re: Can't find directory, but Everything says it's there Frank Slootweg <this@ddress.is.invalid> - 2023-11-28 16:45 +0000
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-28 19:35 -0500
                Re: Can't find directory, but Everything says it's there Frank Miller <miller@posteo.ee> - 2023-11-29 01:51 +0100
                Re: Can't find directory, but Everything says it's there candycanearter07 <no@thanks.net> - 2023-11-29 10:11 -0600
                Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-29 13:04 -0500
        Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-27 17:46 -0500
          Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-27 23:23 -0500
          Re: Can't find directory, but Everything says it's there Andy Burns <usenet@andyburns.uk> - 2023-11-28 07:48 +0000
            Re: Can't find directory, but Everything says it's there Paul <nospam@needed.invalid> - 2023-11-28 13:53 -0500
              Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-29 13:06 -0500
        Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-27 23:20 -0500
          Re: Can't find directory, but Everything says it's there The Real Bev <bashley101@gmail.com> - 2023-11-27 21:10 -0800
            Re: Can't find directory, but Everything says it's there The Real Bev <bashley101@gmail.com> - 2023-11-27 22:05 -0800
              Re: Can't find directory, but Everything says it's there micky <NONONOmisc07@fmguy.com> - 2023-11-28 10:12 -0500
                Re: Can't find directory, but Everything says it's there candycanearter07 <no@thanks.net> - 2023-11-28 12:10 -0600
            Re: Can't find directory, but Everything says it's there "Carlos E. R." <robin_listas@es.invalid> - 2023-11-28 12:07 +0100
              Re: Can't find directory, but Everything says it's there The Real Bev <bashley101@gmail.com> - 2023-11-28 07:58 -0800
                Re: Can't find directory, but Everything says it's there "Carlos E. R." <robin_listas@es.invalid> - 2023-11-28 17:53 +0100
                Re: Can't find directory, but Everything says it's there The Real Bev <bashley101@gmail.com> - 2023-11-28 12:39 -0800
                Re: Can't find directory, but Everything says it's there "Carlos E. R." <robin_listas@es.invalid> - 2023-12-02 11:27 +0100

csiph-web