chkrootkit  0.55
About: chkrootkit is a shell script that checks system binaries for rootkit modification.
  Fossies Dox: chkrootkit-0.55.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

chkdirs.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include <errno.h>
Include dependency graph for chkdirs.c:

Go to the source code of this file.

Data Structures

struct  dirinfolist
 

Macros

#define NAME_MAX   PATH_MAX
 

Functions

void usage ()
 
char * make_pathname (char *path, char *dir, char **buffer)
 
int check_dir (char *dir, char *path, int linkcount, int norecurse)
 
int main (int argc, char **argv)
 

Macro Definition Documentation

◆ NAME_MAX

#define NAME_MAX   PATH_MAX

Definition at line 47 of file chkdirs.c.

Function Documentation

◆ check_dir()

int check_dir ( char *  dir,
char *  path,
int  linkcount,
int  norecurse 
)

Definition at line 97 of file chkdirs.c.

References dirinfolist::dil_lc, dirinfolist::dil_name, dirinfolist::dil_next, and make_pathname().

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 246 of file chkdirs.c.

References check_dir(), and usage().

◆ make_pathname()

char* make_pathname ( char *  path,
char *  dir,
char **  buffer 
)

Definition at line 63 of file chkdirs.c.

Referenced by check_dir().

◆ usage()

void usage ( )

Definition at line 57 of file chkdirs.c.

Referenced by main().