[svn r836] - Cleanup of svn (deleted old versions of gms as they are on repository)
3 #include <libgnomevfs/gnome-vfs.h>
7 assert_message(gboolean valid, const gchar * message)
16 main(int argc, char **argv)
18 GnomeVFSResult result;
19 GnomeVFSFileSize read;
21 GnomeVFSHandle *handle = NULL;
28 g_debug("Oppening: %s", argv[1]);
30 result = gnome_vfs_open(&handle, argv[1], GNOME_VFS_OPEN_READ);
31 assert_message(result == GNOME_VFS_OK,
32 gnome_vfs_result_to_string(result));
34 g_debug("handle %p", handle);
36 while (result == GNOME_VFS_OK) {
37 memset(buff, '\0', sizeof(buff));
38 result = gnome_vfs_read(handle, buff, sizeof(buff), &read);
39 g_debug("read %" G_GINT64_FORMAT, read);
42 assert_message(result == GNOME_VFS_ERROR_EOF,
43 gnome_vfs_result_to_string(result));
45 result = gnome_vfs_close(handle);
46 assert_message(result == GNOME_VFS_OK,
47 gnome_vfs_result_to_string(result));