+Sun Nov 4 20:45:21 2001 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in (CFLAGS): Add check for dirent.h
+
+ * glib/glib.h glib/Makefile.am: Add gdir.
+
+ * glib/gdir.c (g_dir_close): Couple of small tweaks
+ now that it is actually compiling...
+
Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
* glib/gdir.[ch]: Indentation fixes, some rewriting of docs to
* glib/gdir.[ch] (g_dir_close): Remove the boolean
return value. What would you do if closing failed?
What would the user do if you printed a warning
- message "closing directory %d failed"?
+ message "closing directory %s failed"?
2001-11-04 Hans Breuer <hans@breuer.org>
+Sun Nov 4 20:45:21 2001 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in (CFLAGS): Add check for dirent.h
+
+ * glib/glib.h glib/Makefile.am: Add gdir.
+
+ * glib/gdir.c (g_dir_close): Couple of small tweaks
+ now that it is actually compiling...
+
Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
* glib/gdir.[ch]: Indentation fixes, some rewriting of docs to
* glib/gdir.[ch] (g_dir_close): Remove the boolean
return value. What would you do if closing failed?
What would the user do if you printed a warning
- message "closing directory %d failed"?
+ message "closing directory %s failed"?
2001-11-04 Hans Breuer <hans@breuer.org>
+Sun Nov 4 20:45:21 2001 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in (CFLAGS): Add check for dirent.h
+
+ * glib/glib.h glib/Makefile.am: Add gdir.
+
+ * glib/gdir.c (g_dir_close): Couple of small tweaks
+ now that it is actually compiling...
+
Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
* glib/gdir.[ch]: Indentation fixes, some rewriting of docs to
* glib/gdir.[ch] (g_dir_close): Remove the boolean
return value. What would you do if closing failed?
What would the user do if you printed a warning
- message "closing directory %d failed"?
+ message "closing directory %s failed"?
2001-11-04 Hans Breuer <hans@breuer.org>
+Sun Nov 4 20:45:21 2001 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in (CFLAGS): Add check for dirent.h
+
+ * glib/glib.h glib/Makefile.am: Add gdir.
+
+ * glib/gdir.c (g_dir_close): Couple of small tweaks
+ now that it is actually compiling...
+
Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
* glib/gdir.[ch]: Indentation fixes, some rewriting of docs to
* glib/gdir.[ch] (g_dir_close): Remove the boolean
return value. What would you do if closing failed?
What would the user do if you printed a warning
- message "closing directory %d failed"?
+ message "closing directory %s failed"?
2001-11-04 Hans Breuer <hans@breuer.org>
+Sun Nov 4 20:45:21 2001 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in (CFLAGS): Add check for dirent.h
+
+ * glib/glib.h glib/Makefile.am: Add gdir.
+
+ * glib/gdir.c (g_dir_close): Couple of small tweaks
+ now that it is actually compiling...
+
Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
* glib/gdir.[ch]: Indentation fixes, some rewriting of docs to
* glib/gdir.[ch] (g_dir_close): Remove the boolean
return value. What would you do if closing failed?
What would the user do if you printed a warning
- message "closing directory %d failed"?
+ message "closing directory %s failed"?
2001-11-04 Hans Breuer <hans@breuer.org>
+Sun Nov 4 20:45:21 2001 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in (CFLAGS): Add check for dirent.h
+
+ * glib/glib.h glib/Makefile.am: Add gdir.
+
+ * glib/gdir.c (g_dir_close): Couple of small tweaks
+ now that it is actually compiling...
+
Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
* glib/gdir.[ch]: Indentation fixes, some rewriting of docs to
* glib/gdir.[ch] (g_dir_close): Remove the boolean
return value. What would you do if closing failed?
What would the user do if you printed a warning
- message "closing directory %d failed"?
+ message "closing directory %s failed"?
2001-11-04 Hans Breuer <hans@breuer.org>
+Sun Nov 4 20:45:21 2001 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in (CFLAGS): Add check for dirent.h
+
+ * glib/glib.h glib/Makefile.am: Add gdir.
+
+ * glib/gdir.c (g_dir_close): Couple of small tweaks
+ now that it is actually compiling...
+
Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
* glib/gdir.[ch]: Indentation fixes, some rewriting of docs to
* glib/gdir.[ch] (g_dir_close): Remove the boolean
return value. What would you do if closing failed?
What would the user do if you printed a warning
- message "closing directory %d failed"?
+ message "closing directory %s failed"?
2001-11-04 Hans Breuer <hans@breuer.org>
+Sun Nov 4 20:45:21 2001 Owen Taylor <otaylor@redhat.com>
+
+ * configure.in (CFLAGS): Add check for dirent.h
+
+ * glib/glib.h glib/Makefile.am: Add gdir.
+
+ * glib/gdir.c (g_dir_close): Couple of small tweaks
+ now that it is actually compiling...
+
Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
* glib/gdir.[ch]: Indentation fixes, some rewriting of docs to
* glib/gdir.[ch] (g_dir_close): Remove the boolean
return value. What would you do if closing failed?
What would the user do if you printed a warning
- message "closing directory %d failed"?
+ message "closing directory %s failed"?
2001-11-04 Hans Breuer <hans@breuer.org>
AC_C_BIGENDIAN
# check for header files
-AC_CHECK_HEADERS([float.h limits.h pwd.h sys/param.h sys/poll.h sys/select.h])
+AC_CHECK_HEADERS([dirent.h float.h limits.h pwd.h sys/param.h sys/poll.h sys/select.h])
AC_CHECK_HEADERS([sys/time.h sys/times.h unistd.h values.h stdint.h sched.h])
# Checks for libcharset
gconvert.c \
gdataset.c \
gdate.c \
+ gdir.c \
gerror.c \
gfileutils.c \
ghash.c \
gconvert.h \
gdataset.h \
gdate.h \
+ gdir.h \
gerror.h \
gfileutils.h \
ghash.h \
#include "config.h"
+#include <errno.h>
#include <string.h> /* strerror, strcmp */
+
#ifdef HAVE_DIRENT_H
#include <dirent.h>
#endif
void
g_dir_close (GDir *dir)
{
- int ret = 0;
-
- g_return_val_if_fail (dir != NULL, FALSE);
+ g_return_if_fail (dir != NULL);
closedir (dir->dir);
g_free (dir);
#include <glib/gconvert.h>
#include <glib/gdataset.h>
#include <glib/gdate.h>
+#include <glib/gdir.h>
#include <glib/gerror.h>
#include <glib/gfileutils.h>
#include <glib/ghash.h>