www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1997/10/13/09:19:19

Date: Mon, 13 Oct 1997 15:18:39 +0200
Message-Id: <199710131318.PAA06198@tyr.diku.dk>
From: Morten Welinder <terra AT diku DOT dk>
To: eliz AT is DOT elta DOT co DOT il
CC: dj AT delorie DOT com, djgpp-workers AT delorie DOT com
In-reply-to: <Pine.SUN.3.91.971012143341.8447b-100000@is> (message from Eli
Zaretskii on Sun, 12 Oct 1997 14:36:35 +0200 (IST))
Subject: Re: Should off_t become unsigned?

Mixing signed and unsigned in C is generally asking for trouble.
I don't think that risk is justified for accessing large files
on a FAT drive -- after all, the access of such a file would be
painfully slow anyway due to the way the FAT is laid out.

Solaris has

     offset_t llseek(int fildes, offset_t offset, int whence);

and Linux has/had the raw syscall

       int _llseek(unsigned int fd,  unsigned  long  offset_high,
       unsigned  long  offset_low,  loff_t * result, unsigned int
       whence);

(i.e., the same as Solaris, give or take a wrapper.)


Morten

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019