Thu Apr 27 01:24:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>

* configure.in: Unless --without-fp, prepend */fpu before each
 	machine dir in $mach; don't prepend FPU dirs at end.  If
 	--with-elf, prepend MACHINE/elf directories at end; don't insert
 	them into $mach.

	* Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.

	* sysdeps/stub/clock.c: Added stub warning.
	* sysdeps/stub/dirfd.c: Likewise.
	* sysdeps/stub/exc2signal.c: Likewise.
	* sysdeps/stub/fdopen.c: Likewise.
	* sysdeps/stub/flock.c: Likewise.
	* sysdeps/stub/fpathconf.c: Likewise.
	* sysdeps/stub/ftruncate.c: Likewise.
	* sysdeps/stub/gtty.c: Likewise.
	* sysdeps/stub/isatty.c: Likewise.
	* sysdeps/stub/killpg.c: Likewise.
	* sysdeps/stub/madvise.c: Likewise.
	* sysdeps/stub/mkstemp.c: Likewise.
	* sysdeps/stub/mktemp.c: Likewise.
	* sysdeps/stub/mprotect.c: Likewise.
	* sysdeps/stub/msync.c: Likewise.
	* sysdeps/stub/pathconf.c: Likewise.
	* sysdeps/stub/poll.c: Likewise.
	* sysdeps/stub/raise.c: Likewise.
	* sysdeps/stub/readv.c: Likewise.
	* sysdeps/stub/setenv.c: Likewise.
	* sysdeps/stub/setlogin.c: Likewise.
	* sysdeps/stub/sigaltstack.c: Likewise.
	* sysdeps/stub/sigintr.c: Likewise.
	* sysdeps/stub/sigstack.c: Likewise.
	* sysdeps/stub/sleep.c: Likewise.
	* sysdeps/stub/sstk.c: Likewise.
	* sysdeps/stub/stime.c: Likewise.
	* sysdeps/stub/stty.c: Likewise.
	* sysdeps/stub/syscall.c: Likewise.
	* sysdeps/stub/sysconf.c: Likewise.
	* sysdeps/stub/truncate.c: Likewise.
	* sysdeps/stub/ualarm.c: Likewise.
	* sysdeps/stub/usleep.c: Likewise.
	* sysdeps/stub/utimes.c: Likewise.
	* sysdeps/stub/writev.c: Likewise.

	* sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.

Wed Apr 26 16:06:42 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.

Tue Apr 25 17:17:19 1995  Roland McGrath  <roland@churchy.gnu.ai.mit.edu>

	* posix/glob.c (glob): If GLOB_MARK set, stat names to find
 	directories and append slashes to them in final pass before
 	sorting.
	(glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
	slash; never append it here.
This commit is contained in:
Roland McGrath 1995-04-27 05:47:52 +00:00
parent 03c5716f9b
commit 10ceac89f9
40 changed files with 213 additions and 43 deletions

View File

@ -1,3 +1,62 @@
Thu Apr 27 01:24:09 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* configure.in: Unless --without-fp, prepend */fpu before each
machine dir in $mach; don't prepend FPU dirs at end. If
--with-elf, prepend MACHINE/elf directories at end; don't insert
them into $mach.
* Makerules (dist): Filter out *.[cSs] from $(distribute) in deps.
* sysdeps/stub/clock.c: Added stub warning.
* sysdeps/stub/dirfd.c: Likewise.
* sysdeps/stub/exc2signal.c: Likewise.
* sysdeps/stub/fdopen.c: Likewise.
* sysdeps/stub/flock.c: Likewise.
* sysdeps/stub/fpathconf.c: Likewise.
* sysdeps/stub/ftruncate.c: Likewise.
* sysdeps/stub/gtty.c: Likewise.
* sysdeps/stub/isatty.c: Likewise.
* sysdeps/stub/killpg.c: Likewise.
* sysdeps/stub/madvise.c: Likewise.
* sysdeps/stub/mkstemp.c: Likewise.
* sysdeps/stub/mktemp.c: Likewise.
* sysdeps/stub/mprotect.c: Likewise.
* sysdeps/stub/msync.c: Likewise.
* sysdeps/stub/pathconf.c: Likewise.
* sysdeps/stub/poll.c: Likewise.
* sysdeps/stub/raise.c: Likewise.
* sysdeps/stub/readv.c: Likewise.
* sysdeps/stub/setenv.c: Likewise.
* sysdeps/stub/setlogin.c: Likewise.
* sysdeps/stub/sigaltstack.c: Likewise.
* sysdeps/stub/sigintr.c: Likewise.
* sysdeps/stub/sigstack.c: Likewise.
* sysdeps/stub/sleep.c: Likewise.
* sysdeps/stub/sstk.c: Likewise.
* sysdeps/stub/stime.c: Likewise.
* sysdeps/stub/stty.c: Likewise.
* sysdeps/stub/syscall.c: Likewise.
* sysdeps/stub/sysconf.c: Likewise.
* sysdeps/stub/truncate.c: Likewise.
* sysdeps/stub/ualarm.c: Likewise.
* sysdeps/stub/usleep.c: Likewise.
* sysdeps/stub/utimes.c: Likewise.
* sysdeps/stub/writev.c: Likewise.
* sysdeps/stub/libc_fatal.c: Remove __NORETURN keyword.
Wed Apr 26 16:06:42 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* locale/loadlocale.c (_nl_free_locale): Do nothing if DATA is null.
Tue Apr 25 17:17:19 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* posix/glob.c (glob): If GLOB_MARK set, stat names to find
directories and append slashes to them in final pass before
sorting.
(glob_in_dir): If GLOB_MARK set, just allocate the extra char for the
slash; never append it here.
Sat Apr 22 14:48:03 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* mach/Machrules [interface-library]

View File

@ -610,7 +610,9 @@ $(common-objpfx)stub-$(subdir): $(+depfiles)
dist: distinfo $(..)Make-dist
$(MAKE) -f $< -f $(word 2,$^) $(Make-dist-args)
dist: $(distribute)
# Avoid depending on source files found in sysdeps dirs,
# because the references affect implicit rule selection.
dist: $(filter-out %.c %.S %.s,$(distribute))
# We used to simply export all these variables, but that frequently made the
# environment get too large. Instead, we write all the information into

View File

@ -147,9 +147,9 @@ mach=
tail=$machine
while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do
set $m
# If using ELF, look for an `elf' subdirectory of each machine directory.
if test "$elf" = yes; then
mach="$mach /$1/elf"
# Prepend the machine's FPU directory unless --without-fp.
if test "$with_fp" = yes; then
mach="$mach /$1/fpu"
fi
mach="$mach /$1"
tail="$2"
@ -187,21 +187,25 @@ fi
# We have now validated the configuration.
# Remove the leading slashes.
sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
# Prepend the machine's FPU directory unless --without-fp.
if test "$with_fp" = yes; then
fpu_dirs=
# If using ELF, look for an `elf' subdirectory of each machine directory.
# We prepend these rather than inserting them whereever the machine appears
# because things specified by the machine's ELF ABI should override
# OS-specific things, and should always be the same for any OS on the
# machine (otherwise what's the point of an ABI?).
if test "$elf" = yes; then
elf_dirs=
for m in $mach; do
if test -d $sysdep_dir$m/fpu; then
fpu_dirs="$fpu_dirs $m/fpu"
if test -d $sysdep_dir$m/elf; then
elf_dirs="$elf_dirs $m/elf"
fi
done
sysnames="`echo $fpu_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
sysnames="`echo $elf_dirs | sed -e 's,^/,,' -e 's, /,,g'` $sysnames"
fi
# Remove the leading slashes.
sysnames="`echo $sysnames | sed -e 's@^/@@' -e 's@ /@ @g'`"
# Expand the list of system names into a full list of directories
# from each element's parent name and Implies file (if present).

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -28,3 +28,5 @@ DEFUN_VOID(clock)
errno = ENOSYS;
return (clock_t) -1;
}
stub_warning (clock)

View File

@ -28,3 +28,5 @@ dirfd (dirp)
errno = ENOSYS;
return -1;
}
stub_warning (dirfd)

36
sysdeps/stub/elfreloc.h Normal file
View File

@ -0,0 +1,36 @@
/* Machine-dependent ELF dynamic relocation inline functions. Stub version.
Copyright (C) 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public License as
published by the Free Software Foundation; either version 2 of the
License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with the GNU C Library; see the file COPYING.LIB. If
not, write to the Free Software Foundation, Inc., 675 Mass Ave,
Cambridge, MA 02139, USA. */
/* Perform the relocation specified by RELOC and SYM (which is fully resolved).
LOADADDR is the load address of the object; INFO is an array indexed
by DT_* of the .dynamic section info. */
static inline void
elf_machine_rel (Elf32_Addr loadaddr, const Elf32_Word *info,
const Elf32_Rel *reloc, Elf32_Sym *sym)
{
abort ();
}
static inline void
elf_machine_rela (Elf32_Addr loadaddr, const Elf32_Word *info,
const Elf32_Rela *reloc)
{
abort ();
}

View File

@ -1,5 +1,5 @@
/* Translate Mach exception codes into signal numbers. Stub version.
Copyright (C) 1991, 1992, 1994 Free Software Foundation, Inc.
Copyright (C) 1991, 1992, 1994, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -19,6 +19,9 @@ Cambridge, MA 02139, USA. */
#include <hurd.h>
/* This file must be modified with machine-dependent details. */
#error "need to write sysdeps/mach/hurd/MACHINE/exc2signal.c"
/* Translate the Mach exception codes, as received in an `exception_raise' RPC,
into a signal number and signal subcode. */

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -27,3 +27,5 @@ DEFUN(fdopen, (fd, mode), int fd AND CONST char *mode)
errno = ENOSYS;
return NULL;
}
stub_warning (fdopen)

View File

@ -31,3 +31,5 @@ DEFUN(__flock, (fd, operation),
}
weak_alias (__flock, flock)
stub_warning (flock)

View File

@ -55,3 +55,5 @@ DEFUN(__fpathconf, (fd, name), int fd AND int name)
}
weak_alias (__fpathconf, fpathconf)
stub_warning (fpathconf)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -28,3 +28,5 @@ DEFUN(ftruncate, (fd, length),
errno = ENOSYS;
return -1;
}
stub_warning (ftruncate)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1992, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -35,3 +35,5 @@ DEFUN(gtty, (fd, params),
errno = ENOSYS;
return -1;
}
stub_warning (gtty)

View File

@ -29,3 +29,5 @@ DEFUN(__isatty, (fd), int fd)
}
weak_alias (__isatty, isatty)
stub_warning (isatty)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991, 1993 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1993, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -30,3 +30,5 @@ DEFUN(killpg, (pgrp, sig), __pid_t pgrp AND int sig)
errno = ENOSYS;
return -1;
}
stub_warning (killpg)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1993 Free Software Foundation, Inc.
/* Copyright (C) 1993, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -20,7 +20,6 @@ Cambridge, MA 02139, USA. */
#include <stdio.h>
/* Abort with an error message. */
__NORETURN
void
DEFUN(__libc_fatal, (message), CONST char *message)
{

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1994 Free Software Foundation, Inc.
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -29,3 +29,5 @@ madvise (caddr_t addr, size_t len, int advice)
errno = ENOSYS;
return -1;
}
stub_warning (madvise)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1992 Free Software Foundation, Inc.
/* Copyright (C) 1992, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -36,3 +36,5 @@ DEFUN(mkstemp, (template), char *template)
errno = ENOSYS;
return -1;
}
stub_warning (mkstemp)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -35,3 +35,5 @@ DEFUN(mktemp, (template), char *template)
errno = ENOSYS;
return NULL;
}
stub_warning (mktemp)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1994 Free Software Foundation, Inc.
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -31,3 +31,4 @@ mprotect (caddr_t addr, size_t len, int prot)
return -1;
}
stub_warning (mprotect)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1994 Free Software Foundation, Inc.
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -30,3 +30,5 @@ msync (caddr_t addr, size_t len)
errno = ENOSYS;
return -1;
}
stub_warning (msync)

View File

@ -35,3 +35,5 @@ DEFUN(__pathconf, (path, name), CONST char *path AND int name)
}
weak_alias (__pathconf, pathconf)
stub_warning (pathconf)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1994 Free Software Foundation, Inc.
/* Copyright (C) 1994, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -34,3 +34,5 @@ poll (fds, nfds, timeout)
errno = ENOSYS;
return -1;
}
stub_warning (poll)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -27,3 +27,5 @@ DEFUN(raise, (sig), int sig)
errno = ENOSYS;
return -1;
}
stub_warning (raise)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -33,3 +33,5 @@ DEFUN(readv, (fd, vector, count),
errno = ENOSYS;
return -1;
}
stub_warning (readv)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1992 Free Software Foundation, Inc.
/* Copyright (C) 1992, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -27,3 +27,5 @@ DEFUN(setenv, (name, value, replace),
errno = ENOSYS;
return -1;
}
stub_warning (setenv)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -27,3 +27,5 @@ DEFUN(setlogin, (name), CONST char *name)
errno = ENOSYS;
return -1;
}
stub_warning (setlogin)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1992 Free Software Foundation, Inc.
/* Copyright (C) 1992, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -29,3 +29,5 @@ DEFUN(sigaltstack, (ss, oss),
errno = ENOSYS;
return -1;
}
stub_warning (sigaltstack)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1992 Free Software Foundation, Inc.
/* Copyright (C) 1992, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -30,3 +30,5 @@ DEFUN(siginterrupt, (sig, interrupt),
errno = ENOSYS;
return -1;
}
stub_warning (siginterrupt)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -29,3 +29,5 @@ DEFUN(sigstack, (ss, oss),
errno = ENOSYS;
return -1;
}
stub_warning (sigstack)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1992, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -35,3 +35,5 @@ DEFUN(sleep, (seconds), unsigned int seconds)
errno = ENOSYS;
return seconds;
}
stub_warning (sleep)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -27,3 +27,5 @@ DEFUN(sstk, (increment), int increment)
errno = ENOSYS;
return (PTR) -1;
}
stub_warning (sstk)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1992 Free Software Foundation, Inc.
/* Copyright (C) 1992, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -35,3 +35,5 @@ DEFUN(stime, (when), CONST time_t *when)
errno = ENOSYS;
return -1;
}
stub_warning (stime)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991, 1992 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1992, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -35,3 +35,5 @@ DEFUN(stty, (fd, params),
errno = ENOSYS;
return -1;
}
stub_warning (stty)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1993, 1994 Free Software Foundation, Inc.
/* Copyright (C) 1993, 1994, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -29,3 +29,5 @@ DEFUN(syscall, (callno), int callno DOTS)
errno = ENOSYS;
return -1;
}
stub_warning (syscall)

View File

@ -67,3 +67,5 @@ DEFUN(__sysconf, (name), int name)
}
weak_alias (__sysconf, sysconf)
stub_warning (sysconf)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -28,3 +28,5 @@ DEFUN(truncate, (path, length),
errno = ENOSYS;
return -1;
}
stub_warning (truncate)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -31,3 +31,5 @@ DEFUN(ualarm, (value, interval),
errno = ENOSYS;
return -1;
}
stub_warning (ualarm)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -26,3 +26,5 @@ DEFUN(usleep, (useconds), unsigned int useconds)
errno = ENOSYS;
return -1;
}
stub_warning (usleep)

View File

@ -38,3 +38,5 @@ DEFUN(__utimes, (file, tvp),
}
weak_alias (__utimes, utimes)
stub_warning (utimes)

View File

@ -1,4 +1,4 @@
/* Copyright (C) 1991 Free Software Foundation, Inc.
/* Copyright (C) 1991, 1995 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@ -33,3 +33,5 @@ DEFUN(writev, (fd, vector, count),
errno = ENOSYS;
return -1;
}
stub_warning (writev)