* local.c (local_telldir): Warn and abort if telldir() is not
available. (local_seekdir): Warn and abort if seekdir() is not available.
Этот коммит содержится в:
родитель
a714cef98e
Коммит
d8ec86292f
@ -1,3 +1,9 @@
|
|||||||
|
2001-06-19 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
|
* local.c (local_telldir): Warn and abort if telldir() is not
|
||||||
|
available.
|
||||||
|
(local_seekdir): Warn and abort if seekdir() is not available.
|
||||||
|
|
||||||
2001-06-18 Pavel Roskin <proski@gnu.org>
|
2001-06-18 Pavel Roskin <proski@gnu.org>
|
||||||
|
|
||||||
* tcputil.c (sig_pipe): Use the same declaration with one int
|
* tcputil.c (sig_pipe): Use the same declaration with one int
|
||||||
|
11
vfs/local.c
11
vfs/local.c
@ -91,13 +91,24 @@ local_opendir (vfs *me, char *dirname)
|
|||||||
static int
|
static int
|
||||||
local_telldir (void *data)
|
local_telldir (void *data)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_TELLDIR
|
||||||
return telldir( *(DIR **) data );
|
return telldir( *(DIR **) data );
|
||||||
|
#else
|
||||||
|
#warning "Native telldir() not available, emulation not implemented"
|
||||||
|
abort();
|
||||||
|
return 0; /* for dumb compilers */
|
||||||
|
#endif /* !HAVE_TELLDIR */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
local_seekdir (void *data, int offset)
|
local_seekdir (void *data, int offset)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_SEEKDIR
|
||||||
seekdir( *(DIR **) data, offset );
|
seekdir( *(DIR **) data, offset );
|
||||||
|
#else
|
||||||
|
#warning "Native seekdir() not available, emulation not implemented"
|
||||||
|
abort();
|
||||||
|
#endif /* !HAVE_SEEKDIR */
|
||||||
}
|
}
|
||||||
|
|
||||||
static void *
|
static void *
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user