Network Block Device
@PACKAGE_VERSION@
|
#include <config.h>
#include <cliserv.h>
#include <stdio.h>
#include <syslog.h>
#include <sys/types.h>
#include <sys/socket.h>
Go to the source code of this file.
Functions | |
void | setmysockopt (int sock) |
void | err_nonfatal (const char *s) |
void | err (const char *s) |
void | logging (const char *name) |
u64 | ntohll (u64 a) |
Variables | |
const u64 | cliserv_magic = 0x00420281861253LL |
const u64 | opts_magic = 0x49484156454F5054LL |
const u64 | rep_magic = 0x3e889045565a9LL |
void err | ( | const char * | s | ) |
Definition at line 56 of file cliserv.c.
References err_nonfatal().
Referenced by ask_list(), construct_path(), copyonwrite_prepare(), daemonize(), disconnect(), dousers(), finish_sock(), handle_export_name(), handle_list(), handle_oldstyle_connection(), main(), mainloop(), mkdir_path(), myseek(), negotiate(), open_treefile(), opennet(), parse_cfile(), readit(), send_export_info(), serveloop(), set_timeout(), setsizes(), setup_servers(), setupexport(), and writeit().
void err_nonfatal | ( | const char * | s | ) |
Definition at line 30 of file cliserv.c.
Referenced by err(), handle_list(), negotiate(), opennet(), openunix(), and socket_accept().
void logging | ( | const char * | name | ) |
u64 ntohll | ( | u64 | a | ) |
Definition at line 74 of file cliserv.c.
Referenced by ask_list(), logging(), main(), mainloop(), and negotiate().
void setmysockopt | ( | int | sock | ) |
Definition at line 12 of file cliserv.c.
References INFO.
Referenced by opennet(), and serveconnection().
const u64 cliserv_magic = 0x00420281861253LL |
Definition at line 8 of file cliserv.c.
Referenced by negotiate().
const u64 opts_magic = 0x49484156454F5054LL |
Definition at line 9 of file cliserv.c.
Referenced by ask_list(), and negotiate().
const u64 rep_magic = 0x3e889045565a9LL |
Definition at line 10 of file cliserv.c.
Referenced by ask_list().