FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Main for the nomos agent. More...
Go to the source code of this file.
Functions | |
void | arsNomos (cacheroot_t *cacheroot, bool ignoreFilesWithMimeType) |
Make entry in ars table for audit. More... | |
void | list_dir (const char *dir_name, int process_count, int *distribute_count, FILE **pFile) |
list all files and store file paths from the specified directory More... | |
void | read_file_grab_license (int file_number, FILE **pFile) |
read line by line, then call processFile to grab license line by line More... | |
void | myFork (int proc_num, FILE **pFile) |
the recursive create process and process grabbing licenses More... | |
int | main (int argc, char **argv) |
Variables | |
licText_t | licText [] |
struct globals | gl |
struct curScan | cur |
char | debugStr [myBUFSIZ] |
Debug string. | |
char | dbErrString [myBUFSIZ] |
DB error string. | |
size_t | hashEntries |
Hash entries. | |
int | schedulerMode = 0 |
int | Verbose = 0 |
Verbose level. More... | |
char | BuildVersion [] = "nomos build version: NULL.\n" |
Main for the nomos agent.
Nomos detects licenses and copyrights in a file. Depending on how it is invoked, it either stores it's findings in the FOSSology data base or reports them to standard out.
Definition in file nomos.c.
void arsNomos | ( | cacheroot_t * | cacheroot, |
bool | ignoreFilesWithMimeType | ||
) |
Make entry in ars table for audit.
At the call, first checks if there are any entries in the ars table for the given agent and upload. If so, skip it. Otherwise, collect all files under the upload and processes them. Nomos sends a heart beat at every file scan completion.
At the end, make an entry in the ars using fo_WriteARS().
cacheroot | Root for hash table |
ignoreFilesWithMimeType | to exclude files with particular mimetype |
void list_dir | ( | const char * | dir_name, |
int | process_count, | ||
int * | distribute_count, | ||
FILE ** | pFile | ||
) |
int main | ( | int | argc, |
char ** | argv | ||
) |
void myFork | ( | int | proc_num, |
FILE ** | pFile | ||
) |
void read_file_grab_license | ( | int | file_number, |
FILE ** | pFile | ||
) |