mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-14 14:27:14 +01:00
Add check for dirent.h
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...
This commit is contained in:
parent
ae86dd0c4b
commit
ff6174aedd
11
ChangeLog
11
ChangeLog
@ -1,3 +1,12 @@
|
|||||||
|
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>
|
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]: Indentation fixes, some rewriting of docs to
|
||||||
@ -6,7 +15,7 @@ Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
|
|||||||
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
||||||
return value. What would you do if closing failed?
|
return value. What would you do if closing failed?
|
||||||
What would the user do if you printed a warning
|
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>
|
2001-11-04 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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>
|
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]: Indentation fixes, some rewriting of docs to
|
||||||
@ -6,7 +15,7 @@ Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
|
|||||||
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
||||||
return value. What would you do if closing failed?
|
return value. What would you do if closing failed?
|
||||||
What would the user do if you printed a warning
|
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>
|
2001-11-04 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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>
|
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]: Indentation fixes, some rewriting of docs to
|
||||||
@ -6,7 +15,7 @@ Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
|
|||||||
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
||||||
return value. What would you do if closing failed?
|
return value. What would you do if closing failed?
|
||||||
What would the user do if you printed a warning
|
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>
|
2001-11-04 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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>
|
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]: Indentation fixes, some rewriting of docs to
|
||||||
@ -6,7 +15,7 @@ Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
|
|||||||
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
||||||
return value. What would you do if closing failed?
|
return value. What would you do if closing failed?
|
||||||
What would the user do if you printed a warning
|
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>
|
2001-11-04 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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>
|
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]: Indentation fixes, some rewriting of docs to
|
||||||
@ -6,7 +15,7 @@ Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
|
|||||||
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
||||||
return value. What would you do if closing failed?
|
return value. What would you do if closing failed?
|
||||||
What would the user do if you printed a warning
|
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>
|
2001-11-04 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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>
|
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]: Indentation fixes, some rewriting of docs to
|
||||||
@ -6,7 +15,7 @@ Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
|
|||||||
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
||||||
return value. What would you do if closing failed?
|
return value. What would you do if closing failed?
|
||||||
What would the user do if you printed a warning
|
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>
|
2001-11-04 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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>
|
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]: Indentation fixes, some rewriting of docs to
|
||||||
@ -6,7 +15,7 @@ Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
|
|||||||
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
||||||
return value. What would you do if closing failed?
|
return value. What would you do if closing failed?
|
||||||
What would the user do if you printed a warning
|
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>
|
2001-11-04 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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>
|
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]: Indentation fixes, some rewriting of docs to
|
||||||
@ -6,7 +15,7 @@ Sun Nov 4 20:29:31 2001 Owen Taylor <otaylor@redhat.com>
|
|||||||
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
* glib/gdir.[ch] (g_dir_close): Remove the boolean
|
||||||
return value. What would you do if closing failed?
|
return value. What would you do if closing failed?
|
||||||
What would the user do if you printed a warning
|
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>
|
2001-11-04 Hans Breuer <hans@breuer.org>
|
||||||
|
|
||||||
|
@ -513,7 +513,7 @@ AC_MSG_RESULT($g_have_gnuc_varargs)
|
|||||||
AC_C_BIGENDIAN
|
AC_C_BIGENDIAN
|
||||||
|
|
||||||
# check for header files
|
# 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])
|
AC_CHECK_HEADERS([sys/time.h sys/times.h unistd.h values.h stdint.h sched.h])
|
||||||
|
|
||||||
# Checks for libcharset
|
# Checks for libcharset
|
||||||
|
@ -41,6 +41,7 @@ libglib_1_3_la_SOURCES = \
|
|||||||
gconvert.c \
|
gconvert.c \
|
||||||
gdataset.c \
|
gdataset.c \
|
||||||
gdate.c \
|
gdate.c \
|
||||||
|
gdir.c \
|
||||||
gerror.c \
|
gerror.c \
|
||||||
gfileutils.c \
|
gfileutils.c \
|
||||||
ghash.c \
|
ghash.c \
|
||||||
@ -102,6 +103,7 @@ glibsubinclude_HEADERS = \
|
|||||||
gconvert.h \
|
gconvert.h \
|
||||||
gdataset.h \
|
gdataset.h \
|
||||||
gdate.h \
|
gdate.h \
|
||||||
|
gdir.h \
|
||||||
gerror.h \
|
gerror.h \
|
||||||
gfileutils.h \
|
gfileutils.h \
|
||||||
ghash.h \
|
ghash.h \
|
||||||
|
@ -23,7 +23,9 @@
|
|||||||
|
|
||||||
#include "config.h"
|
#include "config.h"
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <string.h> /* strerror, strcmp */
|
#include <string.h> /* strerror, strcmp */
|
||||||
|
|
||||||
#ifdef HAVE_DIRENT_H
|
#ifdef HAVE_DIRENT_H
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
#endif
|
#endif
|
||||||
@ -128,9 +130,7 @@ g_dir_rewind (GDir *dir)
|
|||||||
void
|
void
|
||||||
g_dir_close (GDir *dir)
|
g_dir_close (GDir *dir)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
g_return_if_fail (dir != NULL);
|
||||||
|
|
||||||
g_return_val_if_fail (dir != NULL, FALSE);
|
|
||||||
|
|
||||||
closedir (dir->dir);
|
closedir (dir->dir);
|
||||||
g_free (dir);
|
g_free (dir);
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
#include <glib/gconvert.h>
|
#include <glib/gconvert.h>
|
||||||
#include <glib/gdataset.h>
|
#include <glib/gdataset.h>
|
||||||
#include <glib/gdate.h>
|
#include <glib/gdate.h>
|
||||||
|
#include <glib/gdir.h>
|
||||||
#include <glib/gerror.h>
|
#include <glib/gerror.h>
|
||||||
#include <glib/gfileutils.h>
|
#include <glib/gfileutils.h>
|
||||||
#include <glib/ghash.h>
|
#include <glib/ghash.h>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user