2024-01-02 02:12:26 +08:00
|
|
|
|
# Copyright (C) 1991-2024 Free Software Foundation, Inc.
|
1995-02-18 09:27:10 +08:00
|
|
|
|
# This file is part of the GNU C Library.
|
|
|
|
|
|
|
|
|
|
# The GNU C Library is free software; you can redistribute it and/or
|
2001-07-06 12:58:11 +08:00
|
|
|
|
# modify it under the terms of the GNU Lesser General Public
|
|
|
|
|
# License as published by the Free Software Foundation; either
|
|
|
|
|
# version 2.1 of the License, or (at your option) any later version.
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
|
|
# 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
|
2001-07-06 12:58:11 +08:00
|
|
|
|
# Lesser General Public License for more details.
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
2001-07-06 12:58:11 +08:00
|
|
|
|
# You should have received a copy of the GNU Lesser General Public
|
2012-02-10 07:18:22 +08:00
|
|
|
|
# License along with the GNU C Library; if not, see
|
Prefer https to http for gnu.org and fsf.org URLs
Also, change sources.redhat.com to sourceware.org.
This patch was automatically generated by running the following shell
script, which uses GNU sed, and which avoids modifying files imported
from upstream:
sed -ri '
s,(http|ftp)(://(.*\.)?(gnu|fsf|sourceware)\.org($|[^.]|\.[^a-z])),https\2,g
s,(http|ftp)(://(.*\.)?)sources\.redhat\.com($|[^.]|\.[^a-z]),https\2sourceware.org\4,g
' \
$(find $(git ls-files) -prune -type f \
! -name '*.po' \
! -name 'ChangeLog*' \
! -path COPYING ! -path COPYING.LIB \
! -path manual/fdl-1.3.texi ! -path manual/lgpl-2.1.texi \
! -path manual/texinfo.tex ! -path scripts/config.guess \
! -path scripts/config.sub ! -path scripts/install-sh \
! -path scripts/mkinstalldirs ! -path scripts/move-if-change \
! -path INSTALL ! -path locale/programs/charmap-kw.h \
! -path po/libc.pot ! -path sysdeps/gnu/errlist.c \
! '(' -name configure \
-execdir test -f configure.ac -o -f configure.in ';' ')' \
! '(' -name preconfigure \
-execdir test -f preconfigure.ac ';' ')' \
-print)
and then by running 'make dist-prepare' to regenerate files built
from the altered files, and then executing the following to cleanup:
chmod a+x sysdeps/unix/sysv/linux/riscv/configure
# Omit irrelevant whitespace and comment-only changes,
# perhaps from a slightly-different Autoconf version.
git checkout -f \
sysdeps/csky/configure \
sysdeps/hppa/configure \
sysdeps/riscv/configure \
sysdeps/unix/sysv/linux/csky/configure
# Omit changes that caused a pre-commit check to fail like this:
# remote: *** error: sysdeps/powerpc/powerpc64/ppc-mcount.S: trailing lines
git checkout -f \
sysdeps/powerpc/powerpc64/ppc-mcount.S \
sysdeps/unix/sysv/linux/s390/s390-64/syscall.S
# Omit change that caused a pre-commit check to fail like this:
# remote: *** error: sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: last line does not end in newline
git checkout -f sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S
2019-09-07 13:40:42 +08:00
|
|
|
|
# <https://www.gnu.org/licenses/>.
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
|
|
subdir := hurd
|
|
|
|
|
|
|
|
|
|
include ../Makeconfig
|
|
|
|
|
|
2023-06-10 05:46:34 +08:00
|
|
|
|
headers = \
|
|
|
|
|
$(interface-headers) \
|
|
|
|
|
hurd.h \
|
|
|
|
|
hurd/fd.h \
|
|
|
|
|
hurd/id.h \
|
|
|
|
|
hurd/ioctl.h \
|
|
|
|
|
hurd/lookup.h \
|
|
|
|
|
hurd/port.h \
|
|
|
|
|
hurd/resource.h \
|
|
|
|
|
hurd/signal.h \
|
|
|
|
|
hurd/sigpreempt.h \
|
|
|
|
|
hurd/userlink.h \
|
|
|
|
|
# headers
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
2023-06-10 05:46:34 +08:00
|
|
|
|
inline-headers = \
|
|
|
|
|
hurd.h \
|
|
|
|
|
hurd/fd.h \
|
|
|
|
|
hurd/port.h \
|
|
|
|
|
hurd/signal.h \
|
|
|
|
|
hurd/userlink.h \
|
|
|
|
|
# inline-headers
|
1999-06-25 22:50:51 +08:00
|
|
|
|
|
1995-02-18 09:27:10 +08:00
|
|
|
|
# The RPC interfaces go in a separate library.
|
Thu Mar 16 00:04:41 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* locale/C-ctype.c: New correct data generated by drepper.
* Rules: Don't use $(libc.a).
Parsing of grouped numbers contributed by Ulrich Drepper.
* stdlib/strtol.c (__strtol_internal): Renamed from strtol. Take
new flag arg; if nonzero, parse locale-dependent thousands
grouping and interpret only the prefix that is correctly grouped.
(strtol): Define this to call _strtol_internal with zero for the flag.
Use a weak symbol for the definition.
* stdlib/strtod.c (strtod, __strtod_internal): Likewise.
Check for the exponent of the number overflowing the float format.
* stdlib/stdlib.h (__strtof, __strtold): Declarations removed.
(__strto{f,d,ld,l,ul,q,uq}_internal): Declare these functions.
[__OPTIMIZE__]: Define inline functions calling those.
* stdlib/grouping.h: New file, written by drepper.
* stdlib/Makefile (distribute): Add grouping.h.
* stdio/vfscanf.c: Grok %' modifier to numeric conversions. Call
__strtoX_internal with the grouping flag set iff the modifier is
present.
Wed Mar 15 00:40:54 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* sysdeps/generic/memchr.c: Fix typos: limit.h -> limits.h.
* mach/Machrules: Produce static deps for all object flavors.
[interface-library]: Remove all these variables and rules.
($(interface-library)-routines): Define this variable.
(extra-libs): Append $(interface-library) to this.
* mach/Makefile (interface-library): Omit .a suffix.
* hurd/Makefile: Likewise.
Tue Mar 14 23:40:31 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* stdio/internals.c (flushbuf): If !FLUSH_ONLY, don't skip out
early if no new data in buffer after priming.
* Makerules (object-suffixes, libtypes): Move all these variables
to Makeconfig.
* Makeconfig (object-suffixes, libtypes): Moved here from Makerules.
* Makerules (build-extra-lib): New canned sequence.
* sysdeps/mach/hurd/euidaccess.c: Include fcntl.h. Declare ERR;
fix uses of FILE and PORT. Remove bogus weak alias for `access'.
* sysdeps/mach/hurd/dirfd.c: Include hurd/fd.h and errno.h.
Add missing semicolon.
* sysdeps/mach/hurd/opendir.c: Include hurd/fd.h. Use a `struct
hurd_fd *' temp var, since DIRP->__fd is a `void *'.
* sysdeps/mach/hurd/readdir.c: Include hurd/fd.h.
* stdlib/wcstombs.c: #if 0 out code for non-ASCII chars until the
locale data format is implemented.
* sysdeps/mach/hurd/i386/trampoline.c (_hurd_setup_sighandler):
Pass &__sigreturn on the stack to the trampoline code, so it is
not position-dependent.
* stdio/printf_fp.c (NDEBUG): Define this to disable assert.
Don't include <stdarg.h>.
(__printf_fp): Last arg ARGS is now `const void **const';
dereference ARGS[0] instead of using va_arg.
* locale/setlocale.c: In LC_ALL case, initialize CATEGORY before
loop to install data.
* locale/loadlocale.c (_nl_category_num_items): Use _NL_ITEM_INDEX
to extract number from item code.
(_nl_load_locale): Close the descriptor when finished.
* malloc/realloc.c (_realloc_internal): Call _malloc_internal in
place of malloc.
* time/tzfile.c (__tzfile_default): Initialize RULE_STDOFF to zero.
1995-03-16 13:32:45 +08:00
|
|
|
|
interface-library := libhurduser
|
2023-06-10 05:46:34 +08:00
|
|
|
|
user-interfaces := \
|
|
|
|
|
hurd/auth \
|
|
|
|
|
hurd/crash \
|
|
|
|
|
hurd/exec \
|
|
|
|
|
hurd/exec_startup \
|
|
|
|
|
hurd/fs \
|
|
|
|
|
hurd/fsys \
|
|
|
|
|
hurd/ifsock \
|
|
|
|
|
hurd/interrupt \
|
|
|
|
|
hurd/io \
|
|
|
|
|
hurd/io_reply \
|
|
|
|
|
hurd/io_request \
|
|
|
|
|
hurd/login \
|
|
|
|
|
hurd/msg \
|
|
|
|
|
hurd/msg_reply \
|
|
|
|
|
hurd/msg_request \
|
|
|
|
|
hurd/password \
|
|
|
|
|
hurd/pci \
|
|
|
|
|
hurd/pfinet \
|
|
|
|
|
hurd/process \
|
|
|
|
|
hurd/process_request \
|
|
|
|
|
hurd/socket \
|
|
|
|
|
hurd/startup \
|
|
|
|
|
hurd/term \
|
|
|
|
|
hurd/tioctl \
|
|
|
|
|
# user-interfaces
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
2023-06-10 05:46:34 +08:00
|
|
|
|
server-interfaces := \
|
|
|
|
|
faultexc \
|
|
|
|
|
hurd/msg \
|
|
|
|
|
# server-interfaces
|
|
|
|
|
|
|
|
|
|
routines = \
|
|
|
|
|
$(dtable) \
|
|
|
|
|
$(inlines) \
|
|
|
|
|
$(sig) \
|
|
|
|
|
errno-loc \
|
|
|
|
|
fchroot \
|
|
|
|
|
fd-cleanup \
|
|
|
|
|
fopenport \
|
|
|
|
|
get-host \
|
|
|
|
|
geteuids \
|
|
|
|
|
getumask \
|
|
|
|
|
hurdauth \
|
|
|
|
|
hurdchdir \
|
|
|
|
|
hurdexec \
|
|
|
|
|
hurdfchdir \
|
|
|
|
|
hurdid \
|
|
|
|
|
hurdinit \
|
|
|
|
|
hurdlock \
|
|
|
|
|
hurdlookup \
|
|
|
|
|
hurdmsg \
|
|
|
|
|
hurdpid \
|
|
|
|
|
hurdports \
|
|
|
|
|
hurdprio \
|
|
|
|
|
hurdrlimit \
|
|
|
|
|
hurdselect \
|
|
|
|
|
hurdsock \
|
|
|
|
|
hurdstartup \
|
|
|
|
|
lookup-at \
|
|
|
|
|
lookup-retry \
|
|
|
|
|
msgportdemux \
|
|
|
|
|
path-lookup \
|
|
|
|
|
pid2task \
|
|
|
|
|
port-cleanup \
|
|
|
|
|
ports-get \
|
|
|
|
|
ports-set \
|
|
|
|
|
privports \
|
|
|
|
|
report-wait \
|
|
|
|
|
set-host \
|
|
|
|
|
setauth \
|
|
|
|
|
seteuids \
|
|
|
|
|
task2pid \
|
|
|
|
|
vpprintf \
|
|
|
|
|
xattr \
|
|
|
|
|
# routines
|
|
|
|
|
sig = \
|
|
|
|
|
catch-exc \
|
|
|
|
|
catch-signal \
|
|
|
|
|
exc2signal \
|
|
|
|
|
hurd-raise \
|
|
|
|
|
hurdfault \
|
|
|
|
|
hurdkill \
|
|
|
|
|
hurdsig \
|
|
|
|
|
intr-msg \
|
|
|
|
|
longjmp-ts \
|
|
|
|
|
preempt-sig \
|
|
|
|
|
siginfo \
|
|
|
|
|
sigunwind \
|
|
|
|
|
thread-cancel \
|
|
|
|
|
thread-self \
|
|
|
|
|
trampoline \
|
|
|
|
|
# sig
|
|
|
|
|
dtable = \
|
|
|
|
|
alloc-fd \
|
|
|
|
|
ctty-input \
|
|
|
|
|
ctty-output \
|
|
|
|
|
dtable \
|
|
|
|
|
fd-close \
|
|
|
|
|
fd-read \
|
|
|
|
|
fd-write \
|
|
|
|
|
getdport \
|
|
|
|
|
hurdioctl \
|
|
|
|
|
intern-fd \
|
|
|
|
|
new-fd \
|
|
|
|
|
openport \
|
|
|
|
|
port2fd \
|
|
|
|
|
# dtable
|
1999-06-25 22:50:51 +08:00
|
|
|
|
inlines = $(inline-headers:%.h=%-inlines)
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
|
|
# XXX this is a temporary hack; see hurdmalloc.h
|
|
|
|
|
routines += hurdmalloc
|
1998-12-04 21:47:40 +08:00
|
|
|
|
|
|
|
|
|
# Binary compatibility for libc.so.0.2[GLIBC_2.0].
|
2013-09-04 23:25:42 +08:00
|
|
|
|
ifeq ($(build-shared),yes)
|
1998-12-04 21:47:40 +08:00
|
|
|
|
routines += compat-20
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
shared-only-routines = compat-20
|
1999-06-25 22:50:51 +08:00
|
|
|
|
|
|
|
|
|
# For each of the $(inline-headers), generate a trivial source
|
|
|
|
|
# file that will #include it to define its inline functions as real functions.
|
|
|
|
|
$(inlines:%=$(objpfx)%.c): $(objpfx)%-inlines.c: %.h
|
|
|
|
|
(h="`echo $(subst /,_,$*) | tr '[a-z]' '[A-Z]'`"; \
|
|
|
|
|
echo "#define _$${h}_H_EXTERN_INLINE /* Define real function. */"; \
|
2018-04-03 07:40:26 +08:00
|
|
|
|
echo "#define _$${h}_H_HIDDEN_DEF /* Declare hidden definition. */"; \
|
1999-06-25 22:50:51 +08:00
|
|
|
|
echo '#include "$<"') > $@-new
|
|
|
|
|
mv -f $@-new $@
|
|
|
|
|
generated += $(inlines:=.c)
|
2017-08-28 04:26:49 +08:00
|
|
|
|
|
|
|
|
|
# Avoid ssp before TLS is initialized.
|
|
|
|
|
CFLAGS-hurdstartup.o = $(no-stack-protector)
|
|
|
|
|
CFLAGS-RPC_exec_startup_get_info.o = $(no-stack-protector)
|
2023-02-10 02:58:43 +08:00
|
|
|
|
|
|
|
|
|
# Make it simpler to unwind over INTR_MSG_TRAP
|
|
|
|
|
CFLAGS-intr-msg.o = -fno-omit-frame-pointer
|
2023-02-15 03:32:15 +08:00
|
|
|
|
CFLAGS-intr-msg.os = -fno-omit-frame-pointer
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
2018-03-04 09:11:46 +08:00
|
|
|
|
# Make generated headers compatible with all support standards
|
|
|
|
|
migheaderpipe := | sed -e 's/\<ino64_t\>/__ino64_t/' -e 's/\<loff_t\>/__loff_t/'
|
1995-02-18 09:27:10 +08:00
|
|
|
|
include ../mach/Machrules
|
2020-12-13 19:01:52 +08:00
|
|
|
|
libhurduser-routines += RPC_gsync_wait_intr
|
1995-02-18 09:27:10 +08:00
|
|
|
|
include ../Rules
|
|
|
|
|
|
|
|
|
|
# intr-rpc.defs defines the INTR_INTERFACE macro to make the generated RPC
|
1995-08-15 06:49:23 +08:00
|
|
|
|
# stubs import <hurd/signal.h> and #define __mach_msg to
|
|
|
|
|
# _hurd_intr_rpc_mach_msg.
|
1995-02-18 09:27:10 +08:00
|
|
|
|
user-MIGFLAGS += -imacros intr-rpc.defs
|
|
|
|
|
|
1996-05-13 00:38:08 +08:00
|
|
|
|
# The special exc server for sigthread faults uses a special prefix.
|
|
|
|
|
MIGFLAGS-faultexc = -prefix _hurdsig_fault_
|
1995-02-18 09:27:10 +08:00
|
|
|
|
|
|
|
|
|
# We need this static dependency to get faultexc.h generated the first time.
|
|
|
|
|
$(objpfx)hurdfault.o $(objpfx)hurdfault.d: \
|
1996-05-13 00:38:08 +08:00
|
|
|
|
$(objpfx)faultexc_server.h $(objpfx)faultexc_server.c
|