Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
2002-07-24  Ulrich Drepper  <drepper@redhat.com>

	* libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
	compute current position.

	* stdio-common/tst-fseek.c (main): Improve error messages.

	* libio/tst-freopen.c (main): Remove unused variable.

	* libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
	succesful seek call.  Simply error checking.

2002-07-25  Jakub Jelinek  <jakub@redhat.com>

	* config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
	* sysdeps/ia64/fpu/libm_support.h: Likewise.
  • Loading branch information
Ulrich Drepper committed Jul 25, 2002
1 parent 66bff40 commit 78ce5a3
Show file tree
Hide file tree
Showing 10 changed files with 107 additions and 95 deletions.
17 changes: 17 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
2002-07-24 Ulrich Drepper <drepper@redhat.com>

* libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
compute current position.

* stdio-common/tst-fseek.c (main): Improve error messages.

* libio/tst-freopen.c (main): Remove unused variable.

* libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
succesful seek call. Simply error checking.

2002-07-25 Jakub Jelinek <jakub@redhat.com>

* config.h.in: Use __ASSEMBLER__ test macro not ASSEMBLER.
* sysdeps/ia64/fpu/libm_support.h: Likewise.

2002-07-19 Roland McGrath <roland@frob.com>

* hurd/hurdsig.c (_hurdsig_getenv): Always return null if
Expand Down
2 changes: 1 addition & 1 deletion config.h.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#if !defined ASSEMBLER && !defined _ISOMAC && !defined __OPTIMIZE__
#if !defined __ASSEMBLER__ && !defined _ISOMAC && !defined __OPTIMIZE__
# error "glibc cannot be compiled without optimization"
#endif

Expand Down
3 changes: 1 addition & 2 deletions libio/fileops.c
Original file line number Diff line number Diff line change
Expand Up @@ -932,8 +932,7 @@ _IO_file_seekoff_mmap (fp, offset, dir, mode)
using a pushback buffer, but in the usual case has the same value as
(fp->_IO_read_ptr - fp->_IO_buf_base). */
if (mode == 0)
return ((fp->_IO_buf_end - fp->_IO_buf_base)
- (fp->_IO_read_end - fp->_IO_read_ptr));
return fp->_offset - (fp->_IO_read_end - fp->_IO_read_ptr);

switch (dir)
{
Expand Down
4 changes: 2 additions & 2 deletions libio/tst-freopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
#include <string.h>
#include <unistd.h>

int main (void)
int
main (void)
{
char name[] = "/tmp/tst-freopen.XXXXXX";
char buf[4096];
const char * const test = "Let's test freopen.\n";
char temp[strlen (test) + 1];
int fd = mkstemp (name);
Expand Down
6 changes: 6 additions & 0 deletions linuxthreads/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2002-07-25 Jakub Jelinek <jakub@redhat.com>

* sysdeps/i386/tls.h: Use __ASSEMBLER__ test macro not ASSEMBLER.
* sysdeps/i386/pt-machine.h: Likewise.
* sysdeps/i386/useldt.h: Likewise.

2002-07-22 Ulrich Drepper <drepper@redhat.com>

* pthread.c (__pthread_initialize_minimal): If !SHARED and TLS
Expand Down
4 changes: 2 additions & 2 deletions linuxthreads/sysdeps/i386/pt-machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#ifndef _PT_MACHINE_H
#define _PT_MACHINE_H 1

#ifndef ASSEMBLER
#ifndef __ASSEMBLER__
#ifndef PT_EI
# define PT_EI extern inline
#endif
Expand Down Expand Up @@ -103,6 +103,6 @@ compare_and_swap_is_available (void)
Otherwise, it's a 486 or above and it has cmpxchg. */
return changed != 0;
}
#endif /* ASSEMBLER */
#endif /* __ASSEMBLER__ */

#endif /* pt-machine.h */
4 changes: 2 additions & 2 deletions linuxthreads/sysdeps/i386/tls.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

# include <pt-machine.h>

#ifndef ASSEMBLER
#ifndef __ASSEMBLER__
# include <stddef.h>

/* Type for the dtv. */
Expand All @@ -49,7 +49,7 @@ typedef struct
/* Signal that TLS support is available. */
# define USE_TLS 1

# ifndef ASSEMBLER
# ifndef __ASSEMBLER__
/* Get system call information. */
# include <sysdep.h>

Expand Down
2 changes: 1 addition & 1 deletion linuxthreads/sysdeps/i386/useldt.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */

#ifndef ASSEMBLER
#ifndef __ASSEMBLER__
#include <stddef.h> /* For offsetof. */
#include <stdlib.h> /* For abort(). */

Expand Down
Loading

0 comments on commit 78ce5a3

Please sign in to comment.