Products
and Services Support
and Docs Training Partner Programs About Red
Hat
  download storecart
red hat logo
redhat.comredhat network

Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3)

Manpage of CLOSEDIR

CLOSEDIR

Section: Linux Programmer's Manual (3)
Updated: 11 June 2025
Index  

NAME

closedir - close a directory  

SYNOPSIS

#include <sys/types.h>
#include <dirent.h>
int closedir(DIR *dir);
 

DESCRIPTION

The closedir() function closes the directory stream associated with dir. The directory stream descriptor dir is not available after this call.  

RETURN VALUE

The closedir() function returns 0 on success or -1 on failure.  

ERRORS

EBADF
Invalid directory stream descriptor dir.
 

CONFORMING TO

SVID 3, POSIX, BSD 4.3  

SEE ALSO


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
CONFORMING TO
SEE ALSO

This document was created by using the manual pages.
Time: 11:58:02 GMT, March 24, 2025

 

 


 
© 2001 Red Hat, Inc. All rights reserved.
About Red Hat  :  Legal statement  :  Privacy statement  :  Y2K statement  :  Contact Red Hat