ts_close_restricted(3)

ts_close_restricted3

Use a custom function for closing the touchscreen's input device file

Usage

#include <tslib.h>

void (*ts_close_restricted)(int fd, void *user_data);

Overview

ts_close_restricted() is useful if libts should not be run as root. If such a function is implemented by the user and assigned to the ts_close_restricted pointer, it will be called by ts_close() instead of the close() system call directly.

It should obviously close the device with file descriptor fd while user_data is currently unused.

Releases

Unchanged in 5 releases since Debian 10 (Buster).

  1. 10–Arch

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