Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libc/sys/getdirentries.2
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. | ||||
.\" | .\" | ||||
.\" @(#)getdirentries.2 8.2 (Berkeley) 5/3/95 | .\" @(#)getdirentries.2 8.2 (Berkeley) 5/3/95 | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd Nov 14, 2018 | .Dd March 30, 2020 | ||||
.Dt GETDIRENTRIES 2 | .Dt GETDIRENTRIES 2 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm getdirentries , | .Nm getdirentries , | ||||
.Nm getdents | .Nm getdents | ||||
.Nd "get directory entries in a file system independent format" | .Nd "get directory entries in a file system independent format" | ||||
.Sh LIBRARY | .Sh LIBRARY | ||||
.Lb libc | .Lb libc | ||||
▲ Show 20 Lines • Show All 144 Lines • ▼ Show 20 Lines | |||||
is not a directory, or | is not a directory, or | ||||
.Fa nbytes | .Fa nbytes | ||||
is too small for returning a directory entry or block of entries, | is too small for returning a directory entry or block of entries, | ||||
or the current position pointer is invalid. | or the current position pointer is invalid. | ||||
.It Bq Er EIO | .It Bq Er EIO | ||||
An | An | ||||
.Tn I/O | .Tn I/O | ||||
error occurred while reading from or writing to the file system. | error occurred while reading from or writing to the file system. | ||||
.It Bq Er EINTEGRITY | |||||
Corrupted data was detected while reading from the file system. | |||||
.El | .El | ||||
.Sh SEE ALSO | .Sh SEE ALSO | ||||
.Xr lseek 2 , | .Xr lseek 2 , | ||||
.Xr open 2 | .Xr open 2 | ||||
.Sh HISTORY | .Sh HISTORY | ||||
The | The | ||||
.Fn getdirentries | .Fn getdirentries | ||||
system call first appeared in | system call first appeared in | ||||
.Bx 4.4 . | .Bx 4.4 . | ||||
The | The | ||||
.Fn getdents | .Fn getdents | ||||
system call first appeared in | system call first appeared in | ||||
.Fx 3.0 . | .Fx 3.0 . |