diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 11:19:16 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-05 12:07:37 +0000 |
commit | b485aab7e71c1625cfc27e0f92c9509f42378458 (patch) | |
tree | ae9abe108601079d1679194de237c9a435ae5b55 /web/server/h2o/libh2o/deps/libyrmcds/text_mode.c | |
parent | Adding upstream version 1.44.3. (diff) | |
download | netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.tar.xz netdata-b485aab7e71c1625cfc27e0f92c9509f42378458.zip |
Adding upstream version 1.45.3+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'web/server/h2o/libh2o/deps/libyrmcds/text_mode.c')
-rw-r--r-- | web/server/h2o/libh2o/deps/libyrmcds/text_mode.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/web/server/h2o/libh2o/deps/libyrmcds/text_mode.c b/web/server/h2o/libh2o/deps/libyrmcds/text_mode.c deleted file mode 100644 index 77f950863..000000000 --- a/web/server/h2o/libh2o/deps/libyrmcds/text_mode.c +++ /dev/null @@ -1,32 +0,0 @@ -// (C) 2016 Cybozu. - -#include "yrmcds.h" - -#include <errno.h> - -yrmcds_error yrmcds_text_mode(yrmcds* c) { - if( c == NULL ) - return YRMCDS_BAD_ARGUMENT; - -#ifndef LIBYRMCDS_NO_INTERNAL_LOCK - int e = pthread_mutex_lock(&c->lock); - if( e != 0 ) { - errno = e; - return YRMCDS_SYSTEM_ERROR; - } -#endif // ! LIBYRMCDS_NO_INTERNAL_LOCK - - yrmcds_error ret = YRMCDS_OK; - if( c->serial != 0 ) { - ret = YRMCDS_IN_BINARY; - goto OUT; - } - - c->text_mode = 1; - - OUT: -#ifndef LIBYRMCDS_NO_INTERNAL_LOCK - pthread_mutex_unlock(&c->lock); -#endif - return ret; -} |