mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-06 20:58:33 +01:00
Update.
2002-07-25 Ulrich Drepper <drepper@redhat.com> * sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal. * sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead of __divdi3. * sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal. * sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise. * sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal alias for adjtimex syscall. * elf/dl-minimal.c: Define __assert_fail_internal. * assert/assert.c: Likewise. * include/assert.h: Define __assert_file macro if !SHARED and not NOT_IN_libc. * iconv/Makefile: Define NOT_IN_libc for objects in standalone programs. * locale/Makefile: Likewise. * nscd/Makefile: Likewise. * catgets/Makefile: Likewise. succesful seek call. Simplify error checking.
This commit is contained in:
parent
78ce5a3bbb
commit
51d46f733a
13 changed files with 69 additions and 8 deletions
24
ChangeLog
24
ChangeLog
|
@ -1,3 +1,25 @@
|
||||||
|
2002-07-25 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/wordsize-32/divdi3.c: Define __divdi3_internal.
|
||||||
|
* sysdeps/wordsize-32/lldiv.c: Make gcc use __divdi3_internal instead
|
||||||
|
of __divdi3.
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/adjtime.c: Use __adjtimex_internal.
|
||||||
|
* sysdeps/unix/sysv/linux/ntp_gettime.c: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/syscalls.list: Add __adjtimex_internal
|
||||||
|
alias for adjtimex syscall.
|
||||||
|
|
||||||
|
* elf/dl-minimal.c: Define __assert_fail_internal.
|
||||||
|
* assert/assert.c: Likewise.
|
||||||
|
* include/assert.h: Define __assert_file macro if !SHARED and not
|
||||||
|
NOT_IN_libc.
|
||||||
|
|
||||||
|
* iconv/Makefile: Define NOT_IN_libc for objects in standalone
|
||||||
|
programs.
|
||||||
|
* locale/Makefile: Likewise.
|
||||||
|
* nscd/Makefile: Likewise.
|
||||||
|
* catgets/Makefile: Likewise.
|
||||||
|
|
||||||
2002-07-24 Ulrich Drepper <drepper@redhat.com>
|
2002-07-24 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
|
* libio/fileops.c (_IO_file_seekoff_mmap): Do use fp->_offset to
|
||||||
|
@ -8,7 +30,7 @@
|
||||||
* libio/tst-freopen.c (main): Remove unused variable.
|
* libio/tst-freopen.c (main): Remove unused variable.
|
||||||
|
|
||||||
* libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
|
* libio/fileops.c (_IO_file_seekoff_mmap): Set fp->_offset after
|
||||||
succesful seek call. Simply error checking.
|
succesful seek call. Simplify error checking.
|
||||||
|
|
||||||
2002-07-25 Jakub Jelinek <jakub@redhat.com>
|
2002-07-25 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
|
|
@ -42,6 +42,7 @@ extern const char *__progname;
|
||||||
# include FATAL_PREPARE_INCLUDE
|
# include FATAL_PREPARE_INCLUDE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#undef __assert_fail
|
||||||
void
|
void
|
||||||
__assert_fail (const char *assertion, const char *file, unsigned int line,
|
__assert_fail (const char *assertion, const char *file, unsigned int line,
|
||||||
const char *function)
|
const char *function)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
# Copyright (C) 1996,1997,1998,1999,2000,2002 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
|
||||||
|
@ -45,6 +45,8 @@ $(objpfx)gencat: $(gencat-modules:%=$(objpfx)%.o)
|
||||||
catgets-CPPFLAGS := -DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%N:$(msgcatdir)/%l/%N:$(msgcatdir)/%l/LC_MESSAGES/%N:"' \
|
catgets-CPPFLAGS := -DNLSPATH='"$(msgcatdir)/%L/%N:$(msgcatdir)/%L/LC_MESSAGES/%N:$(msgcatdir)/%l/%N:$(msgcatdir)/%l/LC_MESSAGES/%N:"' \
|
||||||
-DHAVE_CONFIG_H
|
-DHAVE_CONFIG_H
|
||||||
|
|
||||||
|
CPPFLAGS-gencat = -DNOT_IN_libc
|
||||||
|
|
||||||
generated = de.msg test1.cat test1.h sample.SJIS.cat test-gencat.h
|
generated = de.msg test1.cat test1.h sample.SJIS.cat test-gencat.h
|
||||||
generated-dirs = de
|
generated-dirs = de
|
||||||
|
|
||||||
|
|
|
@ -209,6 +209,7 @@ Inconsistency detected by ld.so: %s: %u: %s%sAssertion `%s' failed!\n",
|
||||||
assertion);
|
assertion);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
INTDEF(__assert_fail)
|
||||||
|
|
||||||
void weak_function
|
void weak_function
|
||||||
__assert_perror_fail (int errnum,
|
__assert_perror_fail (int errnum,
|
||||||
|
|
|
@ -63,6 +63,11 @@ CFLAGS-gconv_cache.c += -DGCONV_DIR='"$(gconvdir)"'
|
||||||
CFLAGS-gconv_conf.c = -DGCONV_PATH='"$(gconvdir)"'
|
CFLAGS-gconv_conf.c = -DGCONV_PATH='"$(gconvdir)"'
|
||||||
CFLAGS-iconvconfig.c = -DGCONV_PATH='"$(gconvdir)"' -DGCONV_DIR='"$(gconvdir)"'
|
CFLAGS-iconvconfig.c = -DGCONV_PATH='"$(gconvdir)"' -DGCONV_DIR='"$(gconvdir)"'
|
||||||
|
|
||||||
|
CPPFLAGS-iconv_charmap = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-iconvconfig = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-strtab = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-charmap = -DNOT_IN_libc
|
||||||
|
|
||||||
include ../Rules
|
include ../Rules
|
||||||
|
|
||||||
$(inst_bindir)/iconv: $(objpfx)iconv_prog $(+force)
|
$(inst_bindir)/iconv: $(objpfx)iconv_prog $(+force)
|
||||||
|
|
|
@ -5,3 +5,6 @@ extern void __assert_fail_internal (__const char *__assertion,
|
||||||
unsigned int __line,
|
unsigned int __line,
|
||||||
__const char *__function)
|
__const char *__function)
|
||||||
__attribute__ ((__noreturn__)) attribute_hidden;
|
__attribute__ ((__noreturn__)) attribute_hidden;
|
||||||
|
#if defined SHARED && !defined NOT_IN_libc
|
||||||
|
# define __assert_fail __assert_fail_internal
|
||||||
|
#endif
|
||||||
|
|
|
@ -99,6 +99,17 @@ CFLAGS-charmap.c = -Wno-write-strings -Wno-char-subscripts
|
||||||
CFLAGS-locfile.c = -Wno-write-strings -Wno-char-subscripts
|
CFLAGS-locfile.c = -Wno-write-strings -Wno-char-subscripts
|
||||||
CFLAGS-charmap-dir.c = -Wno-write-strings
|
CFLAGS-charmap-dir.c = -Wno-write-strings
|
||||||
|
|
||||||
|
CPPFLAGS-localedef = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-ld-ctype = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-ld-time = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-ld-numeric = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-ld-monetary = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-ld-collate = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-ld-identification = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-charmap = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-locarchive = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-linereader = -DNOT_IN_libc
|
||||||
|
|
||||||
# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
|
# Depend on libc.so so a DT_NEEDED is generated in the shared objects.
|
||||||
# This ensures they will load libc.so for needed symbols if loaded by
|
# This ensures they will load libc.so for needed symbols if loaded by
|
||||||
# a statically-linked program that hasn't already loaded it.
|
# a statically-linked program that hasn't already loaded it.
|
||||||
|
|
|
@ -53,6 +53,9 @@ distribute := nscd.h nscd-client.h dbg_log.h \
|
||||||
|
|
||||||
include ../Rules
|
include ../Rules
|
||||||
|
|
||||||
|
CPPFLAGS-connections = -DNOT_IN_libc
|
||||||
|
CPPFLAGS-hstcache = -DNOT_IN_libc
|
||||||
|
|
||||||
$(objpfx)nscd: $(nscd-modules:%=$(objpfx)%.o)
|
$(objpfx)nscd: $(nscd-modules:%=$(objpfx)%.o)
|
||||||
$(objpfx)nscd_nischeck: $(objpfx)nscd_nischeck.o
|
$(objpfx)nscd_nischeck: $(objpfx)nscd_nischeck.o
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
|
/* Copyright (C) 1995, 1996, 1997, 1998, 2002 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
|
||||||
|
@ -42,7 +42,8 @@
|
||||||
|
|
||||||
#ifndef ADJTIMEX
|
#ifndef ADJTIMEX
|
||||||
#define NO_LOCAL_ADJTIME
|
#define NO_LOCAL_ADJTIME
|
||||||
#define ADJTIMEX(x) __adjtimex (x)
|
#define ADJTIMEX(x) INTUSE(__adjtimex) (x)
|
||||||
|
extern int INTUSE(__adjtimex) (struct timex *__ntx);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef LINKAGE
|
#ifndef LINKAGE
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1999, 2002 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,6 +22,10 @@
|
||||||
# define modes mode
|
# define modes mode
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
extern int INTUSE(__adjtimex) (struct timex *__ntx);
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
ntp_gettime (ntv)
|
ntp_gettime (ntv)
|
||||||
struct ntptimeval *ntv;
|
struct ntptimeval *ntv;
|
||||||
|
@ -30,7 +34,7 @@ ntp_gettime (ntv)
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
tntx.modes = 0;
|
tntx.modes = 0;
|
||||||
result = __adjtimex (&tntx);
|
result = INTUSE(__adjtimex) (&tntx);
|
||||||
ntv->time = tntx.time;
|
ntv->time = tntx.time;
|
||||||
ntv->maxerror = tntx.maxerror;
|
ntv->maxerror = tntx.maxerror;
|
||||||
ntv->esterror = tntx.esterror;
|
ntv->esterror = tntx.esterror;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# File name Caller Syscall name Args Strong name Weak names
|
# File name Caller Syscall name Args Strong name Weak names
|
||||||
|
|
||||||
adjtimex adjtime adjtimex i:p __adjtimex adjtimex ntp_adjtime
|
adjtimex adjtime adjtimex i:p __adjtimex adjtimex ntp_adjtime __adjtimex_internal
|
||||||
bdflush EXTRA bdflush i:ii bdflush
|
bdflush EXTRA bdflush i:ii bdflush
|
||||||
capget EXTRA capget i:pp capget
|
capget EXTRA capget i:pp capget
|
||||||
capset EXTRA capset i:pp capset
|
capset EXTRA capset i:pp capset
|
||||||
|
|
|
@ -294,6 +294,7 @@ __divdi3 (DWtype u, DWtype v)
|
||||||
w = -w;
|
w = -w;
|
||||||
return w;
|
return w;
|
||||||
}
|
}
|
||||||
|
INTDEF(__divdi3)
|
||||||
|
|
||||||
DWtype
|
DWtype
|
||||||
__moddi3 (DWtype u, DWtype v)
|
__moddi3 (DWtype u, DWtype v)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
|
/* Copyright (C) 1999, 2000, 2002 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,6 +21,13 @@
|
||||||
|
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
||||||
|
#ifdef SHARED
|
||||||
|
/* This is an ugly trick. We cause the C code generated for the code
|
||||||
|
in lldiv.c to use __divdi3_internal instead of __divdi3 by defining
|
||||||
|
an alias on the assembler level. */
|
||||||
|
asm ("__divdi3 = __divdi3_internal");
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <sysdeps/generic/lldiv.c>
|
#include <sysdeps/generic/lldiv.c>
|
||||||
|
|
||||||
#undef imaxdiv
|
#undef imaxdiv
|
||||||
|
|
Loading…
Add table
Reference in a new issue