ioctl_fat(2)

ioctl_fat2

Manipulating the fat filesystem

Usage

#include <sys/ioctl.h>

int ioctl(int fd, unsigned long op, ...);

Library

Standard C library (libc, -lc)

Overview

The ioctl(2) system call can be used to read and write metadata of FAT filesystems that are not accessible using other system calls. The following op values are available.

Reading and setting file attributes

Reading the volume ID

Reading short filenames of a directory

Return value

On success, a nonnegative value is returned. On error, -1 is returned, and errno is set to indicate the error.

Errors

ENOTTY

The file descriptor fd does not refer to an object in a FAT filesystem.

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

Standards

Linux.

From man-pages 6.19-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.