# include <sys/wait.h>
#endif
+#include <string.h>
#include <glib.h>
fileset_add_file(const char *dirname, const char *fname, gboolean current)
{
int fh, result;
- struct _stat buf;
+ struct stat buf;
char *path;
fileset_entry *entry = NULL;
path = g_strdup_printf("%s%s", dirname, fname);
- fh = open( path, _O_RDONLY );
+ fh = open( path, O_RDONLY );
if(fh != -1) {
/* Get statistics */
- result = _fstat( fh, &buf );
+ result = fstat( fh, &buf );
/* Show statistics if they are valid */
if( result == 0 ) {
set.entries = g_list_append(set.entries, entry);
}
- _close(fh);
+ close(fh);
}
g_free(path);