* util.c (get_current_wd): Remove. It's obsoleted by
g_get_current_dir() from glib.
Этот коммит содержится в:
родитель
613dc4d1ca
Коммит
c19dfa9175
@ -1,5 +1,8 @@
|
||||
2001-07-17 Pavel Roskin <proski@gnu.org>
|
||||
|
||||
* util.c (get_current_wd): Remove. It's obsoleted by
|
||||
g_get_current_dir() from glib.
|
||||
|
||||
* ext.c (exec_extension): Add the `rm' command to the end of
|
||||
temporary scripts so that they erase themselves.
|
||||
|
||||
|
23
src/util.c
23
src/util.c
@ -897,29 +897,6 @@ char *strip_ctrl_codes (char *s)
|
||||
|
||||
#endif /* VFS_STANDALONE */
|
||||
|
||||
/*
|
||||
* Ok, on systems running glibc, getcwd does not use popen pwd on
|
||||
* Linux at least
|
||||
*/
|
||||
#ifdef __GLIBC__
|
||||
# ifdef linux
|
||||
# undef HAVE_GETWD
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/* getwd is better than getcwd, the later uses a popen ("pwd"); */
|
||||
char *get_current_wd (char *buffer, int size)
|
||||
{
|
||||
char *p;
|
||||
|
||||
#ifdef HAVE_GETWD
|
||||
p = (char *) getwd (buffer);
|
||||
#else
|
||||
p = getcwd (buffer, size);
|
||||
#endif
|
||||
return p;
|
||||
}
|
||||
|
||||
#define CHECK(x) if (x == -1) return 0;
|
||||
|
||||
static long
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user