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"
Go to the source code of this file.
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
#define SYSFILE_PATH "/tmp/" |
Path in which our files will go
int createSysFile |
( |
int |
pid, |
|
|
char * |
smartFolder |
|
) |
| |
Function that creates the necessary files for the SmartFolder
- Parameters
-
pid | The pid of the background process of the folder |
smartFolder | The path of the folder |
- Returns
- 0 on success, 1 otherwise
char* getFolderPath |
( |
int |
pid | ) |
|
Function to retrieve the full path of a SmartFolder
- Parameters
-
pid | The 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
-
folderName | The name of the SmartFolder |
- Returns
- The PID of the process running that Folder, -1 if not found