[853] in Pthreads mailing list archive

home help back first fref pref prev next nref lref last post

Removed bug from rewinddir() in pthreads on NetBSD/i386

daemon@ATHENA.MIT.EDU (Joachim Kuebart)
Thu Oct 14 12:19:51 1999

From: Joachim Kuebart <kuebart@mathematik.uni-ulm.de>
Date: Wed, 13 Oct 1999 04:30:34 +0200
To: pthreads@MIT.EDU
Message-Id: <19991013043034.A16363@yacht.domestic.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii

Hi,

the following patch makes the rewinddir() function in directory.c
work on NetBSD-current/i386 as of Oct 2, 1999. The prototype seems to
be required because off_t != int.

The patch is based on this version of directory.c:

		@(#)closedir.c	5.9 (Berkeley) 2/23/91


--- gen/directory.c.orig	Wed Oct 13 04:12:35 1999
+++ gen/directory.c	Wed Oct 13 04:12:07 1999
@@ -60,6 +60,8 @@
 #include <fcntl.h>
 #include <string.h>
 
+extern off_t machdep_sys_lseek(int, off_t, int);
+
 /*
  * close a directory.
  */

cu Jo

home help back first fref pref prev next nref lref last post