Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/gen/directory.3
Show All 22 Lines | |||||
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||||
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||||
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" @(#)directory.3 8.1 (Berkeley) 6/4/93 | .\" @(#)directory.3 8.1 (Berkeley) 6/4/93 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd May 22, 2017 | .Dd April 30, 2019 | ||||
.Dt DIRECTORY 3 | .Dt DIRECTORY 3 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm opendir , | .Nm opendir , | ||||
.Nm fdopendir , | .Nm fdopendir , | ||||
.Nm readdir , | .Nm readdir , | ||||
.Nm readdir_r , | .Nm readdir_r , | ||||
.Nm telldir , | .Nm telldir , | ||||
▲ Show 20 Lines • Show All 219 Lines • ▼ Show 20 Lines | |||||
return (NOT_FOUND); | return (NOT_FOUND); | ||||
.Ed | .Ed | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr close 2 , | .Xr close 2 , | ||||
.Xr lseek 2 , | .Xr lseek 2 , | ||||
.Xr open 2 , | .Xr open 2 , | ||||
.Xr read 2 , | .Xr read 2 , | ||||
.Xr dir 5 | .Xr dir 5 | ||||
.Sh STANDARDS | |||||
The | |||||
.Fn closedir , | |||||
.Fn dirfd , | |||||
.Fn fdopendir , | |||||
.Fn opendir , | |||||
.Fn readdir , | |||||
.Fn readdir_r , | |||||
.Fn rewinddir , | |||||
.Fn seekdir | |||||
and | |||||
.Fn telldir | |||||
functions are expected to conform to | |||||
.St -p1003.1-2008 . | |||||
The | |||||
.Fn fdclosedir | |||||
function and the | |||||
.Fa d_off , | |||||
.Fa d_reclen | |||||
and | |||||
.Fa d_type | |||||
fields of | |||||
.Vt struct dirent | |||||
are non-standard, and should not be used in portable programs. | |||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
.Fn opendir , | .Fn opendir , | ||||
.Fn readdir , | .Fn readdir , | ||||
.Fn telldir , | .Fn telldir , | ||||
.Fn seekdir , | .Fn seekdir , | ||||
.Fn rewinddir , | .Fn rewinddir , | ||||
.Fn closedir , | .Fn closedir , | ||||
Show All 35 Lines |