From 7be75a123bb82b53db57b135c6f62f10988e4147 Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Thu, 5 Jan 2006 06:21:49 +0000 Subject: [PATCH] glib/glib.symbols don't macroized g_access, g_chdir, and g_unlink either, 2006-01-04 Manish Singh * glib/glib.symbols * glib/gstdio.h: don't macroized g_access, g_chdir, and g_unlink either, since they have the same issue as g_rmdir. (Related to bug #325249) --- ChangeLog | 7 +++++++ ChangeLog.pre-2-10 | 7 +++++++ ChangeLog.pre-2-12 | 7 +++++++ glib/glib.symbols | 6 +++--- glib/gstdio.h | 16 ++++++++++------ 5 files changed, 34 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 46b5b37..95c8231 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2006-01-04 Manish Singh + + * glib/glib.symbols + * glib/gstdio.h: don't macroized g_access, g_chdir, and g_unlink + either, since they have the same issue as g_rmdir. (Related to + bug #325249) + Wed Jan 4 13:33:25 2006 Tim Janik * glib/gslice.c (magazine_cache_pop_magazine): don't reverse chunk diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 46b5b37..95c8231 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +2006-01-04 Manish Singh + + * glib/glib.symbols + * glib/gstdio.h: don't macroized g_access, g_chdir, and g_unlink + either, since they have the same issue as g_rmdir. (Related to + bug #325249) + Wed Jan 4 13:33:25 2006 Tim Janik * glib/gslice.c (magazine_cache_pop_magazine): don't reverse chunk diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 46b5b37..95c8231 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,10 @@ +2006-01-04 Manish Singh + + * glib/glib.symbols + * glib/gstdio.h: don't macroized g_access, g_chdir, and g_unlink + either, since they have the same issue as g_rmdir. (Related to + bug #325249) + Wed Jan 4 13:33:25 2006 Tim Janik * glib/gslice.c (magazine_cache_pop_magazine): don't reverse chunk diff --git a/glib/glib.symbols b/glib/glib.symbols index a778c67..2aa638a 100644 --- a/glib/glib.symbols +++ b/glib/glib.symbols @@ -921,20 +921,20 @@ g_spawn_sync_utf8 #if IN_FILE(__G_STDIO_C__) #if !defined(G_OS_UNIX) || defined(G_STDIO_NO_WRAP_ON_UNIX) /* gstdio wrappers */ -g_access g_chmod g_open g_creat g_rename g_mkdir -g_chdir g_stat g_lstat -g_unlink g_remove g_fopen g_freopen #endif +g_access +g_chdir +g_unlink g_rmdir #endif #endif diff --git a/glib/gstdio.h b/glib/gstdio.h index 8dbe4af..dd9e82a 100644 --- a/glib/gstdio.h +++ b/glib/gstdio.h @@ -31,25 +31,29 @@ G_BEGIN_DECLS /* Just pass on to the system functions, so there's no potential for data * format mismatches, especially with large file interfaces. - * rmdir() can't be handled in this way, since it is not defined in - * a portable system header that we could include here. + * A few functions can't be handled in this way, since they are not defined + * in a portable system header that we could include here. */ -#define g_access access #define g_chmod chmod #define g_open open #define g_creat creat #define g_rename rename #define g_mkdir mkdir -#define g_chdir chdir #define g_stat stat #define g_lstat lstat -#define g_unlink unlink #define g_remove remove #define g_fopen fopen #define g_freopen freopen -int g_rmdir (const gchar *filename); +int g_access (const gchar *filename, + int mode); + +int g_chdir (const gchar *path); + +int g_unlink (const gchar *filename); + +int g_rmdir (const gchar *filename); #else /* ! G_OS_UNIX */ -- 2.7.4