delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/12/19/18:39:44

From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10212192341.AA17005@clio.rice.edu>
Subject: seek'ing a solution
To: djgpp-workers AT delorie DOT com (DJGPP developers)
Date: Thu, 19 Dec 2002 17:41:46 -0600 (CST)
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com

we have lseek and llseek, which are identical except the fs_ext call to
lseek or llseek, and if they return long or long long.  It seems the
sane thing to do would be to make a common piece of code (for example,
have lseek call llseek..).  Both are called in each image.

We also have filelen and lfilelen which are very similar, and are both
called in each image.  Each of these 2 modules does a seek 3 times.

And we have _isexec which does a seek 3 times ...

So in all we have 11 places in libc which do seeks.

I'm thinking of a _seek() primative which wraps the core interrupt
call (sets registers, call dpmi_int, errno handling, return).  
Thoughts?

- Raw text -


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