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.
Syscall.h
Go to the documentation of this file.
1 
10 #ifndef _SYSCALL_H_
11 #define _SYSCALL_H_
12 
13 #include <unistd.h>
14 #include <sys/stat.h>
15 #include <dirent.h>
16 #include <sys/types.h>
17 #include <stdlib.h>
18 #include <libgen.h>
19 #include <stdio.h>
20 #include <pwd.h>
21 #include <grp.h>
22 #include "Logger.h"
23 
28 int sfork();
29 
36 int ssymlink(char* target, char* linkPath);
37 
43 char* sbasename(char* fullPath);
44 
50 int smkdir(char* path);
51 
57 FILE* stouch(char* file);
58 
64 int saccess(char* path);
65 
71 int sunlink(char* file);
72 
78 int srmdir(char* path);
79 
85 int sgetpwuid(const char* userName);
86 
92 int sgetgrgid(const char* groupName);
93 
100 int slstat(const char* name, struct stat* statbuf);
101 
107 DIR* sopendir(const char* name);
108 
114 int schdir(const char* name);
115 
121 int sclosedir(DIR* dp);
122 
128 struct dirent* sreaddir(DIR* dir);
129 
135 int sS_ISLNK(mode_t m);
136 
142 int sS_ISDIR(mode_t m);
143 
149 int sS_ISREG(mode_t m);
150 
157 char* srealpath(const char* p, char* buf);
158 
159 #endif /* end of include guard: _SYSCALL_H_ */
int slstat(const char *name, struct stat *statbuf)
Definition: Syscall.c:69
int sgetpwuid(const char *userName)
Definition: Syscall.c:61
int sS_ISDIR(mode_t m)
Definition: Syscall.c:94
int sfork()
Definition: Syscall.c:12
struct dirent * sreaddir(DIR *dir)
Definition: Syscall.c:86
DIR * sopendir(const char *name)
Definition: Syscall.c:73
int sgetgrgid(const char *groupName)
Definition: Syscall.c:65
int sS_ISLNK(mode_t m)
Definition: Syscall.c:90
int sclosedir(DIR *dp)
Definition: Syscall.c:82
char * srealpath(const char *p, char *buf)
Definition: Syscall.c:102
FILE * stouch(char *file)
Definition: Syscall.c:39
int ssymlink(char *target, char *linkPath)
Definition: Syscall.c:21
int saccess(char *path)
Definition: Syscall.c:48
char * sbasename(char *fullPath)
Definition: Syscall.c:25
int sS_ISREG(mode_t m)
Definition: Syscall.c:98
int smkdir(char *path)
Definition: Syscall.c:34
Header file that contains the definitions for logging to the console.
int schdir(const char *name)
Definition: Syscall.c:78
int srmdir(char *path)
Definition: Syscall.c:56
int sunlink(char *file)
Definition: Syscall.c:52