---
name: "brlapi_misc"
section: "3"
platform: "linux"
package: "libbrlapi-dev"
version: "6.7-3.1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/brlapi_misc"
---

# brlapi\_misc(3)

Miscellaneous functions

## NAME

brlapi\_misc - Miscellaneous functions

## SYNOPSIS

### Functions

int **BRLAPI\_STDCALL** **brlapi\_pause** (int timeout\_ms)\
 int **BRLAPI\_STDCALL** **brlapi\_\_pause** (**brlapi\_handle\_t** \*handle, int timeout\_ms)\
 int **BRLAPI\_STDCALL** **brlapi\_sync** (void)\
 int **BRLAPI\_STDCALL** **brlapi\_\_sync** (**brlapi\_handle\_t** \*handle)\

## Detailed Description

## Function Documentation

### int BRLAPI\_STDCALL brlapi\_\_pause (brlapi\_handle\_t \* handle, int timeout\_ms)

### int BRLAPI\_STDCALL brlapi\_\_sync (brlapi\_handle\_t \* handle)

### int BRLAPI\_STDCALL brlapi\_pause (int timeout\_ms)

Waits until an event is received from the BrlAPI server

**Parameters**

*timeout\_ms* specifies an optional timeout which can be zero for polling, or -1 for infinite wait

**Returns**

0 on timeout, -1 on error, or on interruption by a signal or a parameter change notification, in which case brlapi\_errno will be BRLAPI\_ERROR\_LIBCERR and errno will be EINTR.

### int BRLAPI\_STDCALL brlapi\_sync (void)

Synchronize against any pending exception, and returns it. This allows to synchronously catch exception raised by brlapi\_write calls. This works by temporarily replacing the current exception handler by its own handler.

**Returns**

0 if no exception was pending, -1 if an exception was caught.

## Author

Generated automatically by Doxygen for BrlAPI from the source code.
