.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993, David Metcalfe .\" Copyright, the authors of the Linux man-pages project .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH closedir 3 "8 Febrero 2026" "Linux man\-pages 6.18" .SH NOMBRE closedir \- cierra un directorio .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP,\ \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP \fB#include \fP .P \fBint closedir(DIR *\fP\fIdirp\fP\fB);\fP .fi .SH DESCRIPCIÓN The \fBclosedir\fP() function closes the directory stream associated with \fIdirp\fP. A successful call to \fBclosedir\fP() also closes the underlying file descriptor associated with \fIdirp\fP. The directory stream descriptor \fIdirp\fP is not available after this call. .SH "VALOR DEVUELTO" The \fBclosedir\fP() function returns 0 on success. On error, \-1 is returned, and \fIerrno\fP is set to indicate the error. .SH ERRORES .TP \fBEBADF\fP Descriptor de flujo de directorio inválido \fIdirp\fP. .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBclosedir\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .SH ESTÁNDARES POSIX.1\-2008. .SH HISTORIAL POSIX.1\-2001, SVr4, 4.3BSD. .SH "VÉASE TAMBIÉN" \fBclose\fP(2), \fBopendir\fP(3), \fBreaddir\fP(3), \fBrewinddir\fP(3), \fBscandir\fP(3), \fBseekdir\fP(3), \fBtelldir\fP(3) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Sebastian Desimone y Rafael Rios . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .