libexplain  1.4.D001
Functions
libexplain/buffer/dangerous.c File Reference
#include <libexplain/buffer/dangerous.h>

Go to the source code of this file.

Functions

void explain_buffer_dangerous_system_call (explain_string_buffer_t *sb, const char *syscall_name)
void explain_buffer_dangerous_system_call2 (explain_string_buffer_t *sb, const char *syscall_name, const char *suggested_alternative)

Function Documentation

void explain_buffer_dangerous_system_call ( explain_string_buffer_t sb,
const char *  syscall_name 
)

The explain_buffer_dangerous function may be used to print an reminder that the given system call is dangerous, and a more secure alternative should be used.

Parameters:
sbThe string buffer to print into.
syscall_nameThe name of the dangerous system call.

Definition at line 23 of file dangerous.c.

void explain_buffer_dangerous_system_call2 ( explain_string_buffer_t sb,
const char *  syscall_name,
const char *  suggested_alternative 
)

The explain_buffer_dangerous function may be used to print an reminder that the given system call is dangerous, and a more secure alternative should be used.

Parameters:
sbThe string buffer to print into.
syscall_nameThe name of the dangerous system call.
suggested_alternativeThe name of the less dangerous alternative system call.

Definition at line 47 of file dangerous.c.