Debian Codegraph @

upstream/debian-unstable/man2/ioctl_fat.2

raw
1 .\" Copyright, the authors of the Linux man-pages project
2 .\"
3 .\" SPDX-License-Identifier: Linux-man-pages-copyleft
4 .\"
5 .TH ioctl_fat 2 2025-05-17 "Linux man-pages 6.18"
6 .SH NAME
7 ioctl_fat \- manipulating the FAT filesystem
8 .SH LIBRARY
9 Standard C library
10 .RI ( libc ,\~ \-lc )
11 .SH SYNOPSIS
12 .nf
13 .B #include <sys/ioctl.h>
14 .P
15 .BI "int ioctl(int " fd ", unsigned long " op ", ...);"
16 .fi
17 .SH DESCRIPTION
18 The
19 .BR ioctl (2)
20 system call can be used to read and write metadata of FAT filesystems that
21 are not accessible using other system calls.
22 The following
23 .I op
24 values are available.
25 .SS Reading and setting file attributes
26 .TP
27 .BR FAT_IOCTL_GET_ATTRIBUTES (2const)
28 .TQ
29 .BR FAT_IOCTL_SET_ATTRIBUTES (2const)
30 .SS Reading the volume ID
31 .TP
32 .BR FAT_IOCTL_GET_VOLUME_ID (2const)
33 .SS Reading short filenames of a directory
34 .TP
35 .BR VFAT_IOCTL_READDIR_BOTH (2const)
36 .TQ
37 .BR VFAT_IOCTL_READDIR_SHORT (2const)
38 .SH RETURN VALUE
39 On success,
40 a nonnegative value is returned.
41 On error, \-1 is returned, and
42 .I errno
43 is set to indicate the error.
44 .SH ERRORS
45 .TP
46 .B ENOTTY
47 The file descriptor
48 .I fd
49 does not refer to an object in a FAT filesystem.
50 .SH STANDARDS
51 Linux.
52 .SH SEE ALSO
53 .BR ioctl (2)