ts_open_restricted(3)

ts_open_restricted3

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

Usage

#include <tslib.h>

int (*ts_open_restricted)(const char *path, int flags, void *user_data);

Overview

ts_open_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_open_restricted pointer, it will be called by ts_open() instead of the open() system call directly.

It should open the input device at path with flags while user_data is currently unused.

Return value

the touchscreen input device' file descriptor

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.