Server Wait On Clients System - API Documentation
v1.6.4
Server Wait On Clients System.
|
Header file for Server Wait on Clients client-side library. More...
#include <libmgec/mge-portability.h>
Go to the source code of this file.
Functions | |
int | swc_show_status (void) |
Display client's lock status. More... | |
int | swc_show_srv_block_status (void) |
Display status of server blocking. More... | |
int | swc_block (void) |
Set block flag on server to prevent this client from setting any more locks. More... | |
int | swc_unblock (void) |
Remove block flag on server to allow this client to set locks. More... | |
int | swc_set_lock (void) |
Set lock flag on server. More... | |
int | swc_rel_lock (void) |
Release lock flag on server. More... | |
int | swc_client_wait (char *cnumlocks) |
Wait until only a maximum of cnumlocks for this client remains. More... | |
int | swc_reset (void) |
Reset the client on the server to 0 locks and unblocked. More... | |
char * | libswocclient_get_pkg_version (void) |
Get the git-describe based package version. More... | |
char * | libswocclient_get_src_version (void) |
Get the source version. More... | |
void | libswocclient_print_pkg_version (void) |
Print the package version string to stdout. More... | |
void | libswocclient_print_src_version (void) |
Print the source version string to stdout. More... | |
Variables | |
BEGIN_C_DECLS char | locks_held [] |
Holds the number of locks currently held during swc_client_wait(). More... | |
Header file for Server Wait on Clients client-side library.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only
char* libswocclient_get_pkg_version | ( | void | ) |
Get the git-describe based package version.
char* libswocclient_get_src_version | ( | void | ) |
Get the source version.
void libswocclient_print_pkg_version | ( | void | ) |
Print the package version string to stdout.
void libswocclient_print_src_version | ( | void | ) |
Print the source version string to stdout.
int swc_block | ( | void | ) |
Set block flag on server to prevent this client from setting any more locks.
On error mge_errno will be set.
int swc_client_wait | ( | char * | cnumlocks | ) |
Wait until only a maximum of cnumlocks for this client remains.
If cnumlocks > 0 this realistically means that a previous command in this sequence would have been a lock request. On error mge_errno will be set.
cnumlocks | Wait until the number of locks is <= this value. This value must be 0 or 1. |
int swc_rel_lock | ( | void | ) |
Release lock flag on server.
On error mge_errno will be set.
int swc_reset | ( | void | ) |
Reset the client on the server to 0 locks and unblocked.
On error mge_errno will be set.
int swc_set_lock | ( | void | ) |
Set lock flag on server.
On error mge_errno will be set.
int swc_show_srv_block_status | ( | void | ) |
Display status of server blocking.
On error mge_errno will be set.
int swc_show_status | ( | void | ) |
Display client's lock status.
On error mge_errno will be set.
int swc_unblock | ( | void | ) |
Remove block flag on server to allow this client to set locks.
On error mge_errno will be set.
|
extern |
Holds the number of locks currently held during swc_client_wait().
This value can be accessed in a handler if a signal is received.
Holds the number of locks currently held during swc_client_wait().
This value can be accessed in a handler if a signal is received.