Browse files

Remove build files, make shoddy build fixes for Linux

  • Loading branch information...
1 parent 1c58d98 commit 428b022adaf0934cb68926f1d75e5dd8e85dfcf0 @paulcbetts committed Oct 4, 2008
Showing with 16 additions and 14,316 deletions.
  1. +0 −7,436 aclocal.m4
  2. +4 −0 config.h.in
  3. +0 −6,871 ltmain.sh
  4. +0 −2 src/stats.c
  5. +8 −7 src/vcachefs.c
  6. +4 −0 src/vcachefs.h
View
7,436 aclocal.m4
0 additions, 7,436 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
4 config.h.in
@@ -30,6 +30,10 @@
/* Define to 1 if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
+/* Define to the sub-directory in which libtool stores uninstalled libraries.
+ */
+#undef LT_OBJDIR
+
/* Name of package */
#undef PACKAGE
View
6,871 ltmain.sh
0 additions, 6,871 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
2 src/stats.c
@@ -21,7 +21,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <fuse.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -35,7 +34,6 @@
#include <unistd.h>
#include <glib.h>
-#include <event.h>
#include "stats.h"
#include "config.h"
View
15 src/vcachefs.c
@@ -21,26 +21,27 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
-#include <fuse.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/types.h>
+#include <sys/time.h>
#include <sys/uio.h>
+#include <sys/stat.h>
#include <sys/statvfs.h>
#include <dirent.h>
#include <unistd.h>
+#include <fuse.h>
#include <glib.h>
-#include <event.h>
#include "vcachefs.h"
#include "stats.h"
/* Globals */
-struct event_base* ev_base = NULL;
+//struct event_base* ev_base = NULL;
GIOChannel* stats_file = NULL;
@@ -114,7 +115,7 @@ static int copy_file_and_return_destfd(const char* source_root, const char* dest
g_debug("Copying '%s' to '%s'", src_path, dest_path);
src_fd = open(src_path, O_RDONLY);
- dest_fd = open(dest_path, O_RDWR | O_CREAT | O_EXCL);
+ dest_fd = open(dest_path, O_RDWR | O_CREAT | O_EXCL, S_IRWXU | S_IRGRP | S_IROTH);
if (src_fd <= 0 || dest_fd <= 0)
goto out;
@@ -471,7 +472,7 @@ static int vcachefs_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
struct vcachefs_mount* mount_obj = get_current_mountinfo();
DIR* dir = NULL;
struct dirent* dentry;
- char path_buf[NAME_MAX];
+ char path_buf[512];
if(path == NULL || strlen(path) == 0)
return -ENOENT;
@@ -515,7 +516,7 @@ static int vcachefs_readdir(const char *path, void *buf, fuse_fill_dir_t filler,
int stat_ret;
/* Stat the file */
- snprintf(path_buf, NAME_MAX, "%s/%s", full_path, dentry->d_name);
+ snprintf(path_buf, 512, "%s/%s", full_path, dentry->d_name);
stat_ret = stat(path_buf, &stbuf);
if ((ret = filler(buf, dentry->d_name, (stat_ret>=0 ? &stbuf : NULL), 0)))
@@ -564,7 +565,7 @@ int main(int argc, char *argv[])
}
/* Initialize libevent */
- ev_base = event_init();
+ //ev_base = event_init();
return fuse_main(argc, argv, &vcachefs_oper, NULL);
}
View
4 src/vcachefs.h
@@ -26,6 +26,10 @@
#include <glib.h>
+#ifndef uint
+#define uint unsigned int
+#endif
+
/* This object is the per-mount data we carry around with us throughout the
* life of the app until we release it */
struct vcachefs_mount {

0 comments on commit 428b022

Please sign in to comment.