ieee1284_claim(3)

ieee1284_claim3

Claim access to the port

Usage

#include <ieee1284.h>

int ieee1284_claim(struct parport *port);

Overview

With the exception of ieee1284_get_deviceid(3), ieee1284_claim must be called on an open port before any other libieee1284 function for accessing a device on it.

Return value

E1284_OK

Success. Note that, unless the F1284_EXCL flag was specified to start with, the port should be released within a “reasonable” amount of time.

E1284_NOMEM

There is not enough memory.

E1284_INVALIDPORT

The port parameter is invalid (for instance, it might not have been opened yet).

E1284_SYS

There was a problem at the operating system level. The global variable errno has been set appropriately.

Releases

12 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1–4.0
  2. 5.0–13
  3. Arch

Author

Tim Waugh <[email protected]>

Author.

From libieee1284 0.2.11-19 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.