Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jul 1997 13:30:02 -0700 (PDT)
From:      Bill Fenner <fenner@parc.xerox.com>
To:        freebsd-bugs
Subject:   Re: kern/3384: telldir-seekdir can cause livelock
Message-ID:  <199707052030.NAA19062@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/3384; it has been noted by GNATS.

From: Bill Fenner <fenner@parc.xerox.com>
To: freebsd-gnats-submit@freebsd.org
Cc:  Subject: Re: kern/3384: telldir-seekdir can cause livelock
Date: Sat, 5 Jul 1997 13:05:24 PDT

 Actually, the relevant portion of the seekdir man page is probably
 
 			 It is safe to use a previous telldir() val-
      ue immediately after a call to opendir() and before any calls to
      readdir().
 
 which is what the test program does, so either the man page or the
 implementation is wrong.
 
 The readdir() man page doesn't happen to mention that the storage that
 readdir() returns will be freed when you call closedir(); this is not
 the case on other systems so should perhaps be documented (especially
 since it's the cause of one of the bugs in the test program).
 
   Bill



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707052030.NAA19062>