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 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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?