mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-27 03:41:23 +08:00
6e953631df
Fri Aug 30 01:26:44 1996 Ulrich Drepper <drepper@cygnus.com> * sysdeps/unix/sysv/linux/i386/Dist: Add close.S. * sysdeps/unix/sysv/linux/m68k/Dist: Likewise. * sysdeps/unix/sysv/linux/alpha/Dist: Likewise. * version.c: Add comment about where to report bugs to. * catgets/gencat.c (usage): Likewise. * db/makedb.c (usage): Likewise. * locale/programs/locale.c (usage): Likewise. * locale/programs/localedef.c (usage): Likewise. * manual/socket.texi: A little bit better wording. Thu Aug 29 18:03:06 1996 Ulrich Drepper <drepper@cygnus.com> * Makerules: Make sure directory exists before generating stamp file. (BUILD_CFLAGS): Always refer to using $(..). * manual/Makefile: Make sure directory exists before generating stamp file. (make-target-directory): Add macro definition. * sysdeps/generic/Makefile: Make sure directory exists before generating stamp file. * Makefile (distribute): Add autolock.sh. Reported by Fila Kolodny. Tue Aug 27 10:06:22 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> When compiling in separate directory put objects into subdirectories matching the source layout. * Makeconfig (objpfx) [ifdef objdir]: Append $(subdir). When looking for configparms try in $(common-objpfx). Use $(common-objpfx)SUBDIR to find objects from other subdirectory builds. * Makerules: Add $(objpfx) to vpath list. (make-dummy-dep): Use $(common-objpfx) to avoid creating dummy.d more than once. All uses in dependency lists changed. (+make-deps): Make target directory. (sed-remove-objpfx): Substitute $(common-objpfx). (do-ar, build-extra-lib, $(common-objpfx)stub-$(subdir)): Use $(objpfx) instead of $(objdir) for cd command. (O%-lib): Always find libc relative to $(..). (subdir-stamps): Collect stamp files from subdirs. (common-mostlyclean): Remove stub file in $(common-objpfx). * MakeTAGS ($P/siglist.pot): Find siglist.c in stdio-common. * Rules (dep-dummy-lib): Use $(common-objpfx) to avoid creating to more than once. ($(objpfx)dummy.c, $(objpfx)empty.c): Change target name to use $(common-objfpx). All uses in dependency lists changed. (generated): Prepend $(..) to names. * bare/Makefile ($(objpfx)lib$(config-vendor).a): Remove $(objpfx) from $@. * nss/Makefile ($(objpfx)libnss_dns.so, $(objpfx)libnss_db.so): Use $(common-objpfx) instead of $(..) in dependencies. * sysdeps/mach/Makefile (mach-objpfx): Unconditionally use $(common-objpfx) instead of $(..) and (objpfx). * sysdeps/mach/hurd/Makefile (hurd-objpfx): Likewise. (rpath-link): Likewise. (rpcuserlibs): Likewise. * sysdeps/unix/Makefile [$(subdir) = stdio-common]: Check for errlist.c in $(objpfx), not $(common-objpfx). ($(common-objpfx)s-proto.d): Special rule not covered by pattern rule. * sysdeps/unix/make-syscalls.sh: Make syscall rules depending on s-proto.d in $(common-objpfx), not $(objpfx). Thu Aug 29 17:45:49 1996 Ulrich Drepper <drepper@cygnus.com> * nss/nsswitch.c (nss_dlerror_run): Free returned error string. Thu Aug 29 15:53:33 1996 Ulrich Drepper <drepper@cygnus.com> * sysdeps/libm-ieee754/e_acoshl.c: New file. `long double' implementation. * sysdeps/libm-ieee754/e_atanhl.c: Likewise. * sysdeps/libm-ieee754/e_remainderl.c: Likewise. * sysdeps/libm-ieee754/e_scalbl.c: Likewise. * sysdeps/libm-ieee754/s_asinhl.c: Likewise. * sysdeps/libm-ieee754/s_cosl.c: Likewise. * sysdeps/libm-ieee754/s_sinl.c: Likewise. * sysdeps/libm-ieee754/s_tanhl.c: Likewise. * sysdeps/libm-ieee754/s_tanl.c: Likewise. * stdio-common/printf_fp.c (__printf_fp): Use default value '.' if
78 lines
2.3 KiB
Bash
78 lines
2.3 KiB
Bash
#! /bin/sh
|
|
|
|
# Usage: make-syscalls.sh ../sysdeps unix/common
|
|
# Expects $sysdirs in environment.
|
|
|
|
sysbase=$1; shift
|
|
thisdir=$1; shift
|
|
|
|
# Get the list of system calls for this directory.
|
|
calls=`sed 's/#.*$//
|
|
/^[ ]*$/d' $sysbase/$thisdir/syscalls.list`
|
|
|
|
# Check each sysdep dir with higher priority than this one,
|
|
# and remove from $calls all the functions found in other dirs.
|
|
for dir in $sysdirs; do
|
|
|
|
# Punt when we reach the directory defining these syscalls.
|
|
test $dir = $thisdir && break
|
|
|
|
# Remove each syscall that is implemented by a file in $dir.
|
|
# If a syscall specified a "caller", then only compile that syscall
|
|
# if the caller function is also implemented in this directory.
|
|
calls=`echo "$calls" | while read file caller rest; do
|
|
test -f $sysbase/$dir/$file.c && continue
|
|
test -f $sysbase/$dir/$file.S && continue
|
|
test -f $sysbase/$dir/$file.s && continue
|
|
if test x$caller != x-; then
|
|
test -f $sysbase/$dir/$caller.c && continue
|
|
test -f $sysbase/$dir/$caller.S && continue
|
|
test -f $sysbase/$dir/$caller.s && continue
|
|
fi
|
|
echo $file $caller $rest
|
|
done`
|
|
|
|
done
|
|
|
|
# Any calls left?
|
|
test -n "$calls" || exit 0
|
|
|
|
files=
|
|
|
|
# Emit rules to compile the syscalls remaining in $calls.
|
|
echo "$calls" | while read file caller syscall nargs strong weak; do
|
|
|
|
# Figure out if $syscall is defined with a number in syscall.h.
|
|
$asm_CPP - << EOF | grep "^@@@ .*$syscall" >/dev/null && continue
|
|
#include <sysdep.h>
|
|
@@@ SYS_ify ($syscall)
|
|
EOF
|
|
|
|
# Make sure only the first syscall rule is used, if multiple dirs
|
|
# define the same syscall.
|
|
echo "ifeq (,\$(filter $file,\$(unix-syscalls)))"
|
|
|
|
# Accumulate the list of syscall files for this directory.
|
|
echo "unix-syscalls += $file"
|
|
test x$caller = x- || echo "unix-extra-syscalls += $file"
|
|
|
|
# Emit a compilation rule for this syscall.
|
|
echo "\
|
|
\$(foreach o,\$(object-suffixes),\$(objpfx)$file\$o): \$(common-objpfx)s-proto.d
|
|
(echo '#include <sysdep.h>'; \\
|
|
echo 'PSEUDO ($strong, $syscall, $nargs)'; \\
|
|
echo ' ret'; \\
|
|
echo 'PSEUDO_END($strong)'; \\"
|
|
|
|
# Append any weak aliases defined for this syscall function.
|
|
for name in $weak; do
|
|
echo " echo 'weak_alias ($strong, $name)'; \\"
|
|
done
|
|
|
|
# And finally, pipe this all into the compiler.
|
|
echo ' ) | $(COMPILE.S) -x assembler-with-cpp -o $@ -'
|
|
|
|
echo endif
|
|
|
|
done
|