#include "config.h"#include <sys/types.h>#include <sys/stat.h>#include <time.h>#include <sys/resource.h>#include <netinet/in.h>#include <stdlib.h>#include <errno.h>#include <ctype.h>#include <sys/param.h>#include <netdb.h>#include <unistd.h>#include <signal.h>#include "md5.h"#include "Base64.h"#include "Stmt.h"#include "Scope.h"#include "Net.h"#include "NetVar.h"#include "File.h"#include "Func.h"#include "Frame.h"#include "Var.h"#include "Login.h"#include "Sessions.h"#include "RE.h"#include "Serializer.h"#include "RemoteSerializer.h"#include "Event.h"#include "Traverse.h"#include "bro.bif.func_def"#include "bro.bif.func_init"#include "common-rw.bif.func_init"#include "finger-rw.bif.func_init"#include "ftp-rw.bif.func_init"#include "http-rw.bif.func_init"#include "ident-rw.bif.func_init"#include "smtp-rw.bif.func_init"Include dependency graph for Func.cc:

Go to the source code of this file.
Functions | |
| RETSIGTYPE | sig_handler (int signo) |
| IMPLEMENT_SERIAL (BroFunc, SER_BRO_FUNC) | |
| IMPLEMENT_SERIAL (BuiltinFunc, SER_BUILTIN_FUNC) | |
| void | builtin_run_time (const char *msg, BroObj *arg) |
| void | init_builtin_funcs () |
Variables | |
| const Expr * | calling_expr = 0 |
|
||||||||||||
|
Definition at line 454 of file Func.cc. References calling_expr, run_time(), and BroObj::RunTime(). Referenced by get_src_pkt_writer(), and get_trace_rewriter().
00455 {
00456 if ( calling_expr )
00457 calling_expr->RunTime(msg, arg);
00458 else
00459 run_time(msg, arg);
00460 }
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
Definition at line 464 of file Func.cc. References BroType::AsRecordType(), BroType::AsTableType(), and internal_type(). Referenced by yywrap().
00465 {
00466 ftp_port = internal_type("ftp_port")->AsRecordType();
00467 bro_resources = internal_type("bro_resources")->AsRecordType();
00468 matcher_stats = internal_type("matcher_stats")->AsRecordType();
00469 var_sizes = internal_type("var_sizes")->AsTableType();
00470
00471 #include "bro.bif.func_init"
00472
00473 #include "common-rw.bif.func_init"
00474 #include "finger-rw.bif.func_init"
00475 #include "ftp-rw.bif.func_init"
00476 #include "http-rw.bif.func_init"
00477 #include "ident-rw.bif.func_init"
00478 #include "smtp-rw.bif.func_init"
00479 }
|
|
|
Definition at line 74 of file sig.c. References CC_REFRESH, ed_redisplay(), el_resize(), editline::el_signal, re_refresh(), sel, sighdl, signal, term__flush(), tty_cookedmode(), and tty_rawmode(). Referenced by main(), and sig_set().
00075 {
00076 int i;
00077 sigset_t nset, oset;
00078
00079 (void) sigemptyset(&nset);
00080 (void) sigaddset(&nset, signo);
00081 (void) sigprocmask(SIG_BLOCK, &nset, &oset);
00082
00083 switch (signo) {
00084 case SIGCONT:
00085 tty_rawmode(sel);
00086 if (ed_redisplay(sel, 0) == CC_REFRESH)
00087 re_refresh(sel);
00088 term__flush();
00089 break;
00090
00091 case SIGWINCH:
00092 el_resize(sel);
00093 break;
00094
00095 default:
00096 tty_cookedmode(sel);
00097 break;
00098 }
00099
00100 for (i = 0; sighdl[i] != -1; i++)
00101 if (signo == sighdl[i])
00102 break;
00103
00104 (void) signal(signo, sel->el_signal[i]);
00105 (void) sigprocmask(SIG_SETMASK, &oset, NULL);
00106 (void) kill(0, signo);
00107 }
|
|
|
Definition at line 69 of file Func.cc. Referenced by builtin_run_time(), and CallExpr::Eval(). |
1.3.5