SmartFolder  1.0
SmartFolder is a way to search files on your system and group the results. The program will interpret search queries and create a folder with symbolic links to all the found matches.
SysFile.h File Reference

Header file that contains the definitions for the writing of files about our folder execution. More...

#include "Syscall.h"
#include <string.h>
#include "Logger.h"
Include dependency graph for SysFile.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SYSFILE_PATH   "/tmp/"
 

Functions

int createSysFile (int pid, char *smartFolder)
 
int getPID (const char *folderName)
 
char * getFolderPath (int pid)
 

Detailed Description

Header file that contains the definitions for the writing of files about our folder execution.

Authors
Maxime Lovino, Thomas Ibanez
Date
January 25, 2017
Version
1.0

Macro Definition Documentation

#define SYSFILE_PATH   "/tmp/"

Path in which our files will go

Function Documentation

int createSysFile ( int  pid,
char *  smartFolder 
)

Function that creates the necessary files for the SmartFolder

Parameters
pidThe pid of the background process of the folder
smartFolderThe path of the folder
Returns
0 on success, 1 otherwise
char* getFolderPath ( int  pid)

Function to retrieve the full path of a SmartFolder

Parameters
pidThe PID of the process running the folder
Returns
The full path of the SmartFolder, NULL if not found
int getPID ( const char *  folderName)

Function to retrieve the PID of a running folder

Parameters
folderNameThe name of the SmartFolder
Returns
The PID of the process running that Folder, -1 if not found