Server Wait On Clients System - API Documentation
v1.6.4
Server Wait On Clients System.
|
Header file for Server Wait on Clients server-side library. More...
#include <libmgec/mge-portability.h>
Go to the source code of this file.
Functions | |
int | sws_show_status (void) |
Display clients with active locks to stdout. More... | |
int | sws_show_block_status (void) |
Display status of server blocking. More... | |
int | sws_srv_block (void) |
Request server blocking. More... | |
int | sws_srv_unblock (void) |
Request removal of server blocking. More... | |
int | sws_show_cli_blocklist (void) |
Display list of blocked clients to stdout. More... | |
int | sws_server_wait (void) |
Wait until no client locks remain. More... | |
int | sws_release (char *lockname) |
Remove a lock. More... | |
int | sws_cli_block (char *blockname) |
Set a client to blocked. More... | |
int | sws_cli_unblock (char *blockname) |
Unblock a client block. More... | |
int | sws_end_daemon (void) |
Terminate the daemon. More... | |
int | sws_reload_config (void) |
Request the daemon to reload the config file. More... | |
char * | libswocserver_get_pkg_version (void) |
Get the git-describe based package version. More... | |
char * | libswocserver_get_src_version (void) |
Get the source version. More... | |
void | libswocserver_print_pkg_version (void) |
Print the package version string to stdout. More... | |
void | libswocserver_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 server-side library.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only
char* libswocserver_get_pkg_version | ( | void | ) |
Get the git-describe based package version.
char* libswocserver_get_src_version | ( | void | ) |
Get the source version.
void libswocserver_print_pkg_version | ( | void | ) |
Print the package version string to stdout.
void libswocserver_print_src_version | ( | void | ) |
Print the source version string to stdout.
int sws_cli_block | ( | char * | blockname | ) |
Set a client to blocked.
On error mge_errno is set.
blockname | Client to block. |
int sws_cli_unblock | ( | char * | blockname | ) |
Unblock a client block.
On error mge_errno is set.
blockname | Client to unblock. |
int sws_end_daemon | ( | void | ) |
Terminate the daemon.
Send a message to the daemon asking it to terminate. On error mge_errno is set.
int sws_release | ( | char * | lockname | ) |
Remove a lock.
On error mge_errno is set.
lockname | Client whose lock is to be removed. |
int sws_reload_config | ( | void | ) |
Request the daemon to reload the config file.
Send a message to the daemon asking it to reload it's configuration file. On error mge_errno is set.
int sws_server_wait | ( | void | ) |
Wait until no client locks remain.
On error mge_errno is set.
int sws_show_block_status | ( | void | ) |
Display status of server blocking.
On error mge_errno is set.
int sws_show_cli_blocklist | ( | void | ) |
Display list of blocked clients to stdout.
On error mge_errno is set.
int sws_show_status | ( | void | ) |
Display clients with active locks to stdout.
On error mge_errno is set.
int sws_srv_block | ( | void | ) |
Request server blocking.
On error mge_errno is set.
int sws_srv_unblock | ( | void | ) |
Request removal of server blocking.
On error mge_errno is 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.