mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
* dirent/dirent.h (telldir): Change return type to long int. * sysdeps/generic/telldir.c: Likewise. * sysdeps/mach/hurd/telldir.c: Likewise. * sysdeps/unix/telldir.c: Likewise. * sysdeps/unix/bsd/telldir.c: Likewise. Fix locking problem.
This commit is contained in:
@ -1,5 +1,11 @@
|
|||||||
1999-08-17 Ulrich Drepper <drepper@cygnus.com>
|
1999-08-17 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* dirent/dirent.h (telldir): Change return type to long int.
|
||||||
|
* sysdeps/generic/telldir.c: Likewise.
|
||||||
|
* sysdeps/mach/hurd/telldir.c: Likewise.
|
||||||
|
* sysdeps/unix/telldir.c: Likewise.
|
||||||
|
* sysdeps/unix/bsd/telldir.c: Likewise. Fix locking problem.
|
||||||
|
|
||||||
* locale/weight.h: Set errno if an invalid character is found.
|
* locale/weight.h: Set errno if an invalid character is found.
|
||||||
|
|
||||||
1999-08-17 Andreas Jaeger <aj@arthur.rhein-neckar.de>
|
1999-08-17 Andreas Jaeger <aj@arthur.rhein-neckar.de>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991,92,93,94,95,96,97,98 Free Software Foundation, Inc.
|
/* Copyright (C) 1991,92,93,94,95,96,97,98,99 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -174,7 +174,7 @@ extern void rewinddir __P ((DIR *__dirp));
|
|||||||
extern void seekdir __P ((DIR *__dirp, __off_t __pos));
|
extern void seekdir __P ((DIR *__dirp, __off_t __pos));
|
||||||
|
|
||||||
/* Return the current position of DIRP. */
|
/* Return the current position of DIRP. */
|
||||||
extern __off_t telldir __P ((DIR *__dirp));
|
extern long int telldir __P ((DIR *__dirp));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined __USE_BSD || defined __USE_MISC
|
#if defined __USE_BSD || defined __USE_MISC
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1991, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -22,18 +22,18 @@
|
|||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|
||||||
/* Return the current position of DIRP. */
|
/* Return the current position of DIRP. */
|
||||||
off_t
|
long int
|
||||||
telldir (dirp)
|
telldir (dirp)
|
||||||
DIR *dirp;
|
DIR *dirp;
|
||||||
{
|
{
|
||||||
if (dirp == NULL)
|
if (dirp == NULL)
|
||||||
{
|
{
|
||||||
__set_errno (EINVAL);
|
__set_errno (EINVAL);
|
||||||
return -1;
|
return -1l;
|
||||||
}
|
}
|
||||||
|
|
||||||
__set_errno (ENOSYS);
|
__set_errno (ENOSYS);
|
||||||
return (off_t) -1;
|
return -1l;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1993, 1994, 1995, 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1993, 1994, 1995, 1997, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
/* Return the current position of DIRP. */
|
/* Return the current position of DIRP. */
|
||||||
/* XXX should be __telldir ? */
|
/* XXX should be __telldir ? */
|
||||||
off_t
|
long int
|
||||||
telldir (dirp)
|
telldir (dirp)
|
||||||
DIR *dirp;
|
DIR *dirp;
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1994, 1995, 1996, 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1994, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -39,18 +39,18 @@ __libc_lock_define_initialized(static, lock) /* Locks above data. */
|
|||||||
|
|
||||||
|
|
||||||
/* Return the current position of DIRP. */
|
/* Return the current position of DIRP. */
|
||||||
off_t
|
long int
|
||||||
telldir (dirp)
|
telldir (dirp)
|
||||||
DIR *dirp;
|
DIR *dirp;
|
||||||
{
|
{
|
||||||
struct record *new;
|
struct record *new;
|
||||||
off_t pos;
|
off_t pos;
|
||||||
|
|
||||||
__libc_lock_lock (lock);
|
|
||||||
|
|
||||||
new = malloc (sizeof *new);
|
new = malloc (sizeof *new);
|
||||||
if (new == NULL)
|
if (new == NULL)
|
||||||
return (off_t) -1;
|
return -1l;
|
||||||
|
|
||||||
|
__libc_lock_lock (lock);
|
||||||
|
|
||||||
new->pos = dirp->filepos;
|
new->pos = dirp->filepos;
|
||||||
new->offset = dirp->offset;
|
new->offset = dirp->offset;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
|
/* Copyright (C) 1991, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -21,7 +21,7 @@
|
|||||||
#include <dirstream.h>
|
#include <dirstream.h>
|
||||||
|
|
||||||
/* Return the current position of DIRP. */
|
/* Return the current position of DIRP. */
|
||||||
off_t
|
long int
|
||||||
telldir (DIR *dirp)
|
telldir (DIR *dirp)
|
||||||
{
|
{
|
||||||
return dirp->filepos;
|
return dirp->filepos;
|
||||||
|
Reference in New Issue
Block a user