FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Stage 2 demonstration. More...
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <ctype.h>
#include <signal.h>
#include <libgen.h>
#include <regex.h>
#include <stdbool.h>
#include "libfossology.h"
Go to the source code of this file.
Macros | |
#define | MAXCMD 4096 |
#define | myBUFSIZ 2048 |
Functions | |
int | regexScan (char *regexStr, FILE *scanFilePtr, char *fileName) |
Regex scanner. More... | |
void | Usage (char *Name) |
Say how to run this program. More... | |
int | main (int argc, char *argv[]) |
Variables | |
char | SQL [256] |
For DB. More... | |
PGconn * | pgConn = NULL |
Database connection. More... | |
Stage 2 demonstration.
This is stage 2 and demonstrates the fundamental agent requirements:
Definition in file regexscan-Stage2.c.
int regexScan | ( | char * | regexStr, |
FILE * | scanFilePtr, | ||
char * | fileName | ||
) |
Regex scanner.
regexStr | String containing the regex |
scanFilePtr | Handle for file to scan |
fileName | String name of file to scan |
Definition at line 53 of file regexscan-Stage2.c.
void Usage | ( | char * | Name | ) |
Say how to run this program.
Print usage of bucket agent
Name | Absolute path of agent |
Many agents permit running from the command-line for testing. At minimum, you need "-i" to initialize the DB and exit.
Say how to run this program.
Name | - the name of the executable, usually it is mimetype |
Say how to run this program.
Name | Path to nomos binary |
Definition at line 119 of file regexscan-Stage2.c.
PGconn* pgConn = NULL |
Database connection.
DB connection.
Database connection.
Definition at line 44 of file regexscan-Stage2.c.
char SQL[256] |