#include <stdio.h>
#include "basext.h"
#include "sym.h"
#include "errcodes.h"
#include "report.h"
#include "lexer.h"
#include "expression.h"
#include "builder.h"
#include "memory.h"
#include "syntax.h"
#include "execute.h"
#include "myalloc.h"
#include "dynlolib.h"
#include "hookers.h"
Go to the source code of this file.
Defines | |
#define | SET(x) (*pHookers)->HOOK_##x = hook_##x |
Functions | |
int | hook_Init (pExecuteObject pEo, pHookFunctions *pHookers) |
int | hook_file_access (pExecuteObject pEo, char *pszFileName) |
FILE * | hook_fopen (pExecuteObject pEo, char *pszFileName, char *pszOpenMode) |
void | hook_fclose (pExecuteObject pEo, FILE *fp) |
long | hook_size (pExecuteObject pEo, char *pszFileName) |
long | hook_time_accessed (pExecuteObject pEo, char *pszFileName) |
long | hook_time_modified (pExecuteObject pEo, char *pszFileName) |
long | hook_time_created (pExecuteObject pEo, char *pszFileName) |
int | hook_isdir (pExecuteObject pEo, char *pszFileName) |
int | hook_isreg (pExecuteObject pEo, char *pszFileName) |
int | hook_exists (pExecuteObject pEo, char *pszFileName) |
int | hook_truncate (pExecuteObject pEo, FILE *fp, long lNewFileSize) |
int | hook_fgetc (pExecuteObject pEo, FILE *fp) |
int | hook_ferror (pExecuteObject pEo, FILE *fp) |
int | hook_fread (pExecuteObject pEo, char *buf, int size, int count, FILE *fp) |
void | hook_setmode (pExecuteObject pEo, FILE *fp, int mode) |
void | hook_binmode (pExecuteObject pEo, FILE *fp) |
void | hook_textmode (pExecuteObject pEo, FILE *fp) |
int | hook_fwrite (pExecuteObject pEo, char *buf, int size, int count, FILE *fp) |
int | hook_fputc (pExecuteObject pEo, int c, FILE *fp) |
int | hook_flock (pExecuteObject pEo, FILE *fp, int iLockType) |
int | hook_lock (pExecuteObject pEo, FILE *fp, int iLockType, long lStart, long lLength) |
int | hook_feof (pExecuteObject pEo, FILE *fp) |
int | hook_mkdir (pExecuteObject pEo, char *pszDirectoryName) |
int | hook_rmdir (pExecuteObject pEo, char *pszDirectoryName) |
int | hook_remove (pExecuteObject pEo, char *pszFileName) |
int | hook_deltree (pExecuteObject pEo, char *pszDirectoryName) |
int | hook_MakeDirectory (pExecuteObject pEo, char *pszDirectoryName) |
DIR * | hook_opendir (pExecuteObject pEo, char *pszDirectoryName, tDIR *pDirectory) |
dirent * | hook_readdir (pExecuteObject pEo, DIR *pDirectory) |
void | hook_closedir (pExecuteObject pEo, DIR *pDirectory) |
void | hook_sleep (pExecuteObject pEo, long lSeconds) |
int | hook_curdir (pExecuteObject pEo, char *Buffer, unsigned long cbBuffer) |
int | hook_chdir (pExecuteObject pEo, char *Buffer) |
int | hook_chown (pExecuteObject pEo, char *pszFileName, char *pszOwner) |
int | hook_SetCreateTime (pExecuteObject pEo, char *pszFileName, long lTime) |
int | hook_SetModifyTime (pExecuteObject pEo, char *pszFileName, long lTime) |
int | hook_SetAccessTime (pExecuteObject pEo, char *pszFileName, long lTime) |
int | hook_gethostname (pExecuteObject pEo, char *pszBuffer, long cbBuffer) |
int | hook_gethost (pExecuteObject pEo, char *pszBuffer, struct hostent *pHost) |
int | hook_tcpconnect (pExecuteObject pEo, SOCKET *sClient, char *pszRemoteSocket) |
int | hook_tcpsend (pExecuteObject pEo, SOCKET sClient, char *pszBuffer, long cbBuffer, int iFlags) |
int | hook_tcprecv (pExecuteObject pEo, SOCKET sClient, char *pszBuffer, long cbBuffer, int iFlags) |
int | hook_tcpclose (pExecuteObject pEo, SOCKET sClient) |
int | hook_killproc (pExecuteObject pEo, long pid) |
int | hook_getowner (pExecuteObject pEo, char *pszFileName, char *pszOwnerBuffer, long cbOwnerBuffer) |
char * | hook_fcrypt (pExecuteObject pEo, char *buf, char *salt, char *buff) |
long | hook_CreateProcess (pExecuteObject pEo, char *pszCommandLine) |
long | hook_CreateProcessEx (pExecuteObject pEo, char *pszCommandLine, long lTimeOut, unsigned long *plPid, unsigned long *plExitCode) |
int | hook_waitpid (pExecuteObject pEo, long pid, unsigned long *plExitCode) |
int | hook_CallScribaFunction (pExecuteObject pEo, unsigned long lStartNode, pFixSizeMemoryObject *pArgument, unsigned long NumberOfPassedArguments, pFixSizeMemoryObject *pFunctionResult) |
|
Referenced by hook_Init(). |
|
Definition at line 556 of file hookers.c. References file_binmode(). |
|
Definition at line 1048 of file hookers.c. References COMMAND_ERROR_MEMORY_LOW, i, iError, memory_DupVar(), memory_NewArray(), nItem, NULL, SaveErrorGoto, SaveErrorResume, SavefErrorGoto, SaveFunctionResultPointer, and SaveStepCounter. |
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 697 of file hookers.c. References file_deltree(). |
|
Definition at line 474 of file hookers.c. References file_exists(). |
|
Definition at line 367 of file hookers.c. References file_fclose(). |
|
|
|
Definition at line 642 of file hookers.c. References file_feof(). |
|
Definition at line 514 of file hookers.c. References file_ferror(). |
|
Definition at line 502 of file hookers.c. References file_fgetc(). |
|
|
|
Definition at line 612 of file hookers.c. References file_flock(). |
|
Definition at line 348 of file hookers.c. References file_fopen(), and NULL. |
|
Definition at line 598 of file hookers.c. References file_fputc(). |
|
Definition at line 526 of file hookers.c. References file_fread(). |
|
Definition at line 582 of file hookers.c. References file_fwrite(). |
|
|
|
|
|
|
|
Definition at line 233 of file hookers.c. References alloc_Alloc(), COMMAND_ERROR_MEMORY_LOW, COMMAND_ERROR_SUCCESS, NULL, SET, and size. Referenced by execute_InitStructure(), and main(). |
|
Definition at line 442 of file hookers.c. References file_isdir(). |
|
Definition at line 458 of file hookers.c. References file_isreg(). |
|
|
|
Definition at line 626 of file hookers.c. References file_lock(). |
|
Definition at line 713 of file hookers.c. References file_MakeDirectory(). |
|
Definition at line 655 of file hookers.c. References file_mkdir(). |
|
Definition at line 729 of file hookers.c. References file_opendir(). |
|
|
|
Definition at line 681 of file hookers.c. References file_remove(). |
|
Definition at line 668 of file hookers.c. References file_rmdir(). |
|
|
|
|
|
Definition at line 542 of file hookers.c. References file_setmode(). |
|
|
|
Definition at line 379 of file hookers.c. References file_size(). |
|
|
|
|
|
|
|
|
|
|
|
Definition at line 569 of file hookers.c. References file_textmode(). |
|
Definition at line 394 of file hookers.c. References file_time_accessed(). |
|
Definition at line 426 of file hookers.c. References file_time_created(). |
|
Definition at line 410 of file hookers.c. References file_time_modified(). |
|
Definition at line 489 of file hookers.c. References file_truncate(). |
|
|