|
Server Wait On Clients System - API Documentation v1.8.3
Server Wait On Clients System.
|
Functions to process server lock flag options. More...
#include <limits.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <syslog.h>#include <unistd.h>#include <libmgec/libmgec.h>#include <libmgec/mge-errno.h>#include <libmgec/mge-message.h>#include <swoc/libswoccommon.h>#include <swoc/libswocserver.h>
Macros | |
| #define | _Bool signed char |
| #define | bool _Bool |
| #define | false 0 |
| #define | true 1 |
| #define | __bool_true_false_are_defined 1 |
Functions | |
| int | sws_show_status (void) |
| Display clients with active locks to stdout. | |
| int | sws_show_block_status (void) |
| Display status of server blocking. | |
| int | sws_srv_block (void) |
| Request server blocking. | |
| int | sws_srv_unblock (void) |
| Request removal of server blocking. | |
| int | sws_show_cli_blocklist (void) |
| Display list of blocked clients to stdout. | |
| int | sws_server_wait (void) |
| Wait until no client locks remain. | |
| int | sws_release (const char *lockname) |
| Remove a lock. | |
| int | sws_cli_block (const char *blockname) |
| Set a client to blocked. | |
| int | sws_cli_unblock (const char *blockname) |
| Unblock a client block. | |
| int | sws_end_daemon (void) |
| Terminate the daemon. | |
| int | sws_reload_config (void) |
| Request the daemon to reload the config file. | |
Variables | |
| char | locks_held [12] = "0" |
| Holds the number of clients currently holding locks during sws_server_wait(). | |
Functions to process server lock flag options.
Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only
| #define __bool_true_false_are_defined 1 |
| #define _Bool signed char |
| #define bool _Bool |
| #define false 0 |
| #define true 1 |
| int sws_cli_block | ( | const char * | blockname | ) |
Set a client to blocked.
On error mge_errno is set.
| blockname | Client to block. |
| int sws_cli_unblock | ( | const 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 | ( | const 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.
| char locks_held[12] = "0" |
Holds the number of clients currently holding locks during sws_server_wait().
Holds the number of locks currently held during swc_client_wait().
This value can be accessed in a handler if a signal is received.