mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-09 23:00:07 +00:00
Update.
1998-07-08 22:18 Ulrich Drepper <drepper@cygnus.com> * elf/Versions: Add _dl_mcount_wrapper_check. * elf/dlfcn.h (DL_CALL_FCT): Don't test _dl_profile_map, simply use _dl_mcount_wrapper_check. * iconv/skeleton.c: Use DL_CALL_FCT, not _CALL_DL_FCT. * elf/dl-reloc.c (_dl_relocate_object): Don't declare using internal_function. * elf/ldsodefs.h: Likewise. * io/fcntl.h: Define SEEK_SET, SEEK_CUR, and SEEK_END. * libio/stdio.h: Make sure va_list is defined for X/Open. Define P_tmpdir for X/Open. * posix/regex.h: Fix typo. * posix/unistd.h: Define intptr_t if not already happened. Add pthread_atfork prototype. * sysdeps/generic/bits/types.h: Define __intptr_t. * sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/bits/types.h: Likewise. * sysdeps/unix/sysv/linux/bits/mips/types.h: Likewise. * sysdeps/unix/sysv/linux/bits/sparc/sparc64/types.h: Likewise. * sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise. * sysdeps/wordsize-32/stdint.h: Don't define intptr_t if already done. * sysdeps/wordsize-64/stdint.h: Likewise. * posix/bits/posix1_lim.h: Define _POSIX_CLOCKRES_MIN. * signal/Makefile (headers): Add bits/sigthread.h. * signal/signal.h: Include bits/sigthread.h. * sysdeps/generic/bits/sigthread.h: New file. * stdlib/stdlib.h: Declare rand_r use __USE_POSIX. * sysdeps/generic/bits/confname.h: Define _PC_FILESIZEBITS. * sysdeps/posix/pathconf.c: Handle _PC_FILESIZEBITS. * sysdeps/unix/sysv/linux/alpha/fpathconf.c: New file. * sysdeps/unix/sysv/linux/alpha/pathconf.c: New file. * sysdeps/generic/bits/dlfcn.h: Define RTLD_LOCAL. * elf/rtld.c: Remove preloading and loadpath variables in SUID programs. * sysdeps/generic/dl-sysdep.c: Define unsetenv. * sysdeps/unix/sysv/linux/i386/dl-librecon.h: Define other envvar names. * sysdeps/unix/sysv/linux/bits/errno.h: Define ECANCELED. * sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_RSYNC and O_DSYNC. Remove O_READ and O_WRITE definition. * sysdeps/unix/sysv/linux/bits/resource.h: Define RLIM_SAVED_MAX and RLIM_SAVED_CUR. * sysdeps/unix/sysv/linux/fstatvfs.h: Handle UFS filesystem. 1998-07-06 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * Makerules ($(common-objpfx)sysd-versions): Expect awk script in scripts directory. Pass move-if-change to awk. (common-generated): Add $(version-maps) and sysd-versions. * versions.awk: Moved to... * scripts/versions.awk: ... here. Use move-if-change to void touching unchanged files. Print "version-maps = ..." instead of "all-version-maps = ..." and without $(common-objpfx). Explain expected variable names. * Makefile (distribute): Updated. 1998-07-06 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> * misc/getttyent.c (getttyent): Don't return with locked stream. * misc/mntent_r.c (__getmntent_r): Likewise. 1998-07-07 18:24 Ulrich Drepper <drepper@cygnus.com> * libio/fileops.c (_IO_do_write): Don't shrink wwrite buffer to zero if stream is line buffered. (_io_file_overflow): Likewise. * libio/libio.h (_IO_putc_unlocked): Make sure that for line-buffered streams writing '\n' flushes the string.
This commit is contained in:
parent
a3d6fb9b42
commit
4bae556733
85
ChangeLog
85
ChangeLog
@ -1,3 +1,88 @@
|
|||||||
|
1998-07-08 22:18 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* elf/Versions: Add _dl_mcount_wrapper_check.
|
||||||
|
* elf/dlfcn.h (DL_CALL_FCT): Don't test _dl_profile_map, simply use
|
||||||
|
_dl_mcount_wrapper_check.
|
||||||
|
* iconv/skeleton.c: Use DL_CALL_FCT, not _CALL_DL_FCT.
|
||||||
|
|
||||||
|
* elf/dl-reloc.c (_dl_relocate_object): Don't declare using
|
||||||
|
internal_function.
|
||||||
|
* elf/ldsodefs.h: Likewise.
|
||||||
|
|
||||||
|
* io/fcntl.h: Define SEEK_SET, SEEK_CUR, and SEEK_END.
|
||||||
|
|
||||||
|
* libio/stdio.h: Make sure va_list is defined for X/Open.
|
||||||
|
Define P_tmpdir for X/Open.
|
||||||
|
|
||||||
|
* posix/regex.h: Fix typo.
|
||||||
|
|
||||||
|
* posix/unistd.h: Define intptr_t if not already happened.
|
||||||
|
Add pthread_atfork prototype.
|
||||||
|
* sysdeps/generic/bits/types.h: Define __intptr_t.
|
||||||
|
* sysdeps/unix/sysv/linux/alpha/bits/types.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/bits/types.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/bits/mips/types.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/linux/bits/sparc/sparc64/types.h: Likewise.
|
||||||
|
* sysdeps/unix/sysv/sysv4/solaris2/bits/types.h: Likewise.
|
||||||
|
* sysdeps/wordsize-32/stdint.h: Don't define intptr_t if already done.
|
||||||
|
* sysdeps/wordsize-64/stdint.h: Likewise.
|
||||||
|
|
||||||
|
* posix/bits/posix1_lim.h: Define _POSIX_CLOCKRES_MIN.
|
||||||
|
|
||||||
|
* signal/Makefile (headers): Add bits/sigthread.h.
|
||||||
|
* signal/signal.h: Include bits/sigthread.h.
|
||||||
|
* sysdeps/generic/bits/sigthread.h: New file.
|
||||||
|
|
||||||
|
* stdlib/stdlib.h: Declare rand_r use __USE_POSIX.
|
||||||
|
|
||||||
|
* sysdeps/generic/bits/confname.h: Define _PC_FILESIZEBITS.
|
||||||
|
* sysdeps/posix/pathconf.c: Handle _PC_FILESIZEBITS.
|
||||||
|
* sysdeps/unix/sysv/linux/alpha/fpathconf.c: New file.
|
||||||
|
* sysdeps/unix/sysv/linux/alpha/pathconf.c: New file.
|
||||||
|
|
||||||
|
* sysdeps/generic/bits/dlfcn.h: Define RTLD_LOCAL.
|
||||||
|
|
||||||
|
* elf/rtld.c: Remove preloading and loadpath variables in SUID
|
||||||
|
programs.
|
||||||
|
* sysdeps/generic/dl-sysdep.c: Define unsetenv.
|
||||||
|
* sysdeps/unix/sysv/linux/i386/dl-librecon.h: Define other envvar
|
||||||
|
names.
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/bits/errno.h: Define ECANCELED.
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/bits/fcntl.h: Define O_RSYNC and O_DSYNC.
|
||||||
|
Remove O_READ and O_WRITE definition.
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/bits/resource.h: Define RLIM_SAVED_MAX
|
||||||
|
and RLIM_SAVED_CUR.
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/fstatvfs.h: Handle UFS filesystem.
|
||||||
|
|
||||||
|
1998-07-06 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
||||||
|
|
||||||
|
* Makerules ($(common-objpfx)sysd-versions): Expect awk script in
|
||||||
|
scripts directory. Pass move-if-change to awk.
|
||||||
|
(common-generated): Add $(version-maps) and sysd-versions.
|
||||||
|
* versions.awk: Moved to...
|
||||||
|
* scripts/versions.awk: ... here. Use move-if-change to void
|
||||||
|
touching unchanged files. Print "version-maps = ..." instead of
|
||||||
|
"all-version-maps = ..." and without $(common-objpfx). Explain
|
||||||
|
expected variable names.
|
||||||
|
* Makefile (distribute): Updated.
|
||||||
|
|
||||||
|
1998-07-06 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
|
||||||
|
|
||||||
|
* misc/getttyent.c (getttyent): Don't return with locked stream.
|
||||||
|
* misc/mntent_r.c (__getmntent_r): Likewise.
|
||||||
|
|
||||||
|
1998-07-07 18:24 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* libio/fileops.c (_IO_do_write): Don't shrink wwrite buffer to zero
|
||||||
|
if stream is line buffered.
|
||||||
|
(_io_file_overflow): Likewise.
|
||||||
|
* libio/libio.h (_IO_putc_unlocked): Make sure that for line-buffered
|
||||||
|
streams writing '\n' flushes the string.
|
||||||
|
|
||||||
1998-07-07 17:28 Ulrich Drepper <drepper@cygnus.com>
|
1998-07-07 17:28 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* elf/dl-profstub.c (_dl_profile_map): Only declare variable here.
|
* elf/dl-profstub.c (_dl_profile_map): Only declare variable here.
|
||||||
|
4
Makefile
4
Makefile
@ -246,11 +246,11 @@ distribute := README README.libm INSTALL FAQ FAQ.in NOTES NEWS BUGS \
|
|||||||
Makefile.in sysdep.h set-hooks.h libc-symbols.h \
|
Makefile.in sysdep.h set-hooks.h libc-symbols.h \
|
||||||
version.h shlib-versions rpm/Makefile rpm/template \
|
version.h shlib-versions rpm/Makefile rpm/template \
|
||||||
rpm/rpmrc glibcbug.in abi-tags stub-tag.h \
|
rpm/rpmrc glibcbug.in abi-tags stub-tag.h \
|
||||||
test-skeleton.c include/des.h Versions.def versions.awk \
|
test-skeleton.c include/des.h Versions.def \
|
||||||
$(addprefix scripts/, \
|
$(addprefix scripts/, \
|
||||||
rellns-sh config.sub config.guess \
|
rellns-sh config.sub config.guess \
|
||||||
mkinstalldirs move-if-change install-sh \
|
mkinstalldirs move-if-change install-sh \
|
||||||
test-installation.pl gen-FAQ.pl)
|
test-installation.pl gen-FAQ.pl versions.awk)
|
||||||
|
|
||||||
distribute := $(strip $(distribute))
|
distribute := $(strip $(distribute))
|
||||||
generated := $(generated) stubs.h
|
generated := $(generated) stubs.h
|
||||||
|
@ -279,13 +279,18 @@ endif
|
|||||||
# Generate version maps.
|
# Generate version maps.
|
||||||
ifeq ($(versioning),yes)
|
ifeq ($(versioning),yes)
|
||||||
-include $(common-objpfx)sysd-versions
|
-include $(common-objpfx)sysd-versions
|
||||||
$(common-objpfx)sysd-versions: $(..)Versions.def $(..)versions.awk \
|
$(addprefix $(common-objpfx),$(version-maps)): $(common-objpfx)sysd-versions
|
||||||
|
generated += $(versin-maps)
|
||||||
|
|
||||||
|
ifndef avoid-generated
|
||||||
|
$(common-objpfx)sysd-versions: $(..)Versions.def $(..)scripts/versions.awk \
|
||||||
$(wildcard $(all-subdirs:%=$(..)%/Versions)) \
|
$(wildcard $(all-subdirs:%=$(..)%/Versions)) \
|
||||||
$(wildcard $(+sysdep_dirs:%=%/Versions))
|
$(wildcard $(+sysdep_dirs:%=%/Versions))
|
||||||
$(AWK) -v buildroot=$(common-objpfx) -v defsfile=$< \
|
$(AWK) -v buildroot=$(common-objpfx) -v defsfile=$< \
|
||||||
|
-v move_if_change='$(move-if-change)' \
|
||||||
-f $(filter-out $<,$^) > $@T
|
-f $(filter-out $<,$^) > $@T
|
||||||
mv -f $@T $@
|
mv -f $@T $@
|
||||||
$(all-version-maps): $(common-objpfx)sysd-versions
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef compile-command.S
|
ifndef compile-command.S
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* `sysconf', `pathconf', and `confstr' NAME values. Generic version.
|
/* `sysconf', `pathconf', and `confstr' NAME values. Generic version.
|
||||||
Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
|
Copyright (C) 1993, 1995, 1996, 1997, 1998 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
|
||||||
@ -48,8 +48,10 @@ enum
|
|||||||
#define _PC_ASYNC_IO _PC_ASYNC_IO
|
#define _PC_ASYNC_IO _PC_ASYNC_IO
|
||||||
_PC_PRIO_IO,
|
_PC_PRIO_IO,
|
||||||
#define _PC_PRIO_IO _PC_PRIO_IO
|
#define _PC_PRIO_IO _PC_PRIO_IO
|
||||||
_PC_SOCK_MAXBUF
|
_PC_SOCK_MAXBUF,
|
||||||
#define _PC_SOCK_MAXBUF _PC_SOCK_MAXBUF
|
#define _PC_SOCK_MAXBUF _PC_SOCK_MAXBUF
|
||||||
|
_PC_FILESIZEBITS
|
||||||
|
#define _PC_FILESIZEBITS _PC_FILESIZEBITS
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Values for the argument to `sysconf'. */
|
/* Values for the argument to `sysconf'. */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* System dependand definitions for run-time dynamic loading.
|
/* System dependand definitions for run-time dynamic loading.
|
||||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
Copyright (C) 1996, 1997, 1998 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
|
||||||
@ -30,3 +30,8 @@
|
|||||||
the symbols of the loaded object and its dependencies are made
|
the symbols of the loaded object and its dependencies are made
|
||||||
visible as if the object were linked directly into the program. */
|
visible as if the object were linked directly into the program. */
|
||||||
#define RTLD_GLOBAL 0x100
|
#define RTLD_GLOBAL 0x100
|
||||||
|
|
||||||
|
/* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
|
||||||
|
The implementation does this by default and so we can define the
|
||||||
|
value to zero. */
|
||||||
|
#define RTLD_LOCAL 0
|
||||||
|
24
bits/sigthread.h
Normal file
24
bits/sigthread.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/* Signal handling function for threaded programs.
|
||||||
|
Copyright (C) 1998 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., 59 Temple Place - Suite 330,
|
||||||
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#ifndef _SIGNAL_H
|
||||||
|
# error "Never include this file directly. Use <signal.h> instead"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* There are none available in this configuration. */
|
@ -115,4 +115,7 @@ typedef __u_quad_t __fsfilcnt64_t;
|
|||||||
typedef int __t_scalar_t;
|
typedef int __t_scalar_t;
|
||||||
typedef unsigned int __t_uscalar_t;
|
typedef unsigned int __t_uscalar_t;
|
||||||
|
|
||||||
|
/* This definition makes this file kind of architecture dependent. */
|
||||||
|
typedef long int __intptr_t;
|
||||||
|
|
||||||
#endif /* bits/types.h */
|
#endif /* bits/types.h */
|
||||||
|
@ -21,7 +21,7 @@ libc {
|
|||||||
_dl_profile; _dl_profile_map; _dl_profile_output; _dl_start_profile;
|
_dl_profile; _dl_profile_map; _dl_profile_output; _dl_start_profile;
|
||||||
|
|
||||||
# functions used in other libraries
|
# functions used in other libraries
|
||||||
_dl_mcount; _dl_mcount_wrapper;
|
_dl_mcount; _dl_mcount_wrapper; _dl_mcount_wrapper_check;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +27,6 @@
|
|||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
internal_function
|
|
||||||
_dl_relocate_object (struct link_map *l, struct link_map *scope[], int lazy,
|
_dl_relocate_object (struct link_map *l, struct link_map *scope[], int lazy,
|
||||||
int consider_profiling)
|
int consider_profiling)
|
||||||
{
|
{
|
||||||
|
@ -82,13 +82,9 @@ extern int dladdr __P ((const void *__address, Dl_info *__info));
|
|||||||
foo = DL_CALL_FCT (fctp, (arg1, arg2));
|
foo = DL_CALL_FCT (fctp, (arg1, arg2));
|
||||||
*/
|
*/
|
||||||
# if __GNUC__ >= 2
|
# if __GNUC__ >= 2
|
||||||
/* Do not ever use this variable directly, it is internal! */
|
|
||||||
extern struct link_map *_dl_profile_map;
|
|
||||||
|
|
||||||
# define DL_CALL_FCT(fctp, args) \
|
# define DL_CALL_FCT(fctp, args) \
|
||||||
(__extension__ ({ if (_dl_profile_map != NULL) \
|
(__extension__ ({ _dl_mcount_wrapper_check (fctp); \
|
||||||
_dl_mcount_wrapper_check (fctp); \
|
(*fctp) args; }))
|
||||||
(*fctp) args; })
|
|
||||||
# else
|
# else
|
||||||
/* This feature is not available without GCC. */
|
/* This feature is not available without GCC. */
|
||||||
# define DL_CALL_FCT(fctp, args) (*fctp) args
|
# define DL_CALL_FCT(fctp, args) (*fctp) args
|
||||||
|
@ -365,8 +365,7 @@ extern struct link_map *_dl_new_object (char *realname, const char *libname,
|
|||||||
If LAZY is nonzero, don't relocate its PLT. */
|
If LAZY is nonzero, don't relocate its PLT. */
|
||||||
extern void _dl_relocate_object (struct link_map *map,
|
extern void _dl_relocate_object (struct link_map *map,
|
||||||
struct link_map *scope[],
|
struct link_map *scope[],
|
||||||
int lazy, int consider_profiling)
|
int lazy, int consider_profiling);
|
||||||
internal_function;
|
|
||||||
|
|
||||||
/* Check the version dependencies of all objects available through
|
/* Check the version dependencies of all objects available through
|
||||||
MAP. If VERBOSE print some more diagnostics. */
|
MAP. If VERBOSE print some more diagnostics. */
|
||||||
|
23
elf/rtld.c
23
elf/rtld.c
@ -1193,6 +1193,29 @@ process_envvars (enum mode *modep, int *lazyp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Extra security for SUID binaries. Remove all dangerous environment
|
||||||
|
variables. */
|
||||||
|
if (__libc_enable_secure)
|
||||||
|
{
|
||||||
|
static const char *unsecure_envvars[] =
|
||||||
|
{
|
||||||
|
#ifdef EXTRA_UNSECURE_ENVVARS
|
||||||
|
EXTRA_UNSECURE_ENVVARS
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
size_t cnt;
|
||||||
|
|
||||||
|
if (preloadlist != NULL)
|
||||||
|
unsetenv ("LD_PRELOAD");
|
||||||
|
if (library_path != NULL)
|
||||||
|
unsetenv ("LD_LIBRARY_PATH");
|
||||||
|
|
||||||
|
for (cnt = 0;
|
||||||
|
cnt < sizeof (unsecure_envvars) / sizeof (unsecure_envvars[0]);
|
||||||
|
++cnt)
|
||||||
|
unsetenv (unsecure_envvars[cnt]);
|
||||||
|
}
|
||||||
|
|
||||||
/* If we have to run the dynamic linker in debugging mode and the
|
/* If we have to run the dynamic linker in debugging mode and the
|
||||||
LD_DEBUG_OUTPUT environment variable is given, we write the debug
|
LD_DEBUG_OUTPUT environment variable is given, we write the debug
|
||||||
messages to this file. */
|
messages to this file. */
|
||||||
|
@ -77,6 +77,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
#include <dlfcn.h>
|
||||||
#include <gconv.h>
|
#include <gconv.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#define __need_size_t
|
#define __need_size_t
|
||||||
@ -219,8 +220,8 @@ FUNCTION_NAME (struct gconv_step *step, struct gconv_step_data *data,
|
|||||||
if (status == GCONV_OK)
|
if (status == GCONV_OK)
|
||||||
#endif
|
#endif
|
||||||
/* Give the modules below the same chance. */
|
/* Give the modules below the same chance. */
|
||||||
status = _CALL_DL_FCT (fct, (next_step, next_data, NULL, NULL,
|
status = DL_CALL_FCT (fct, (next_step, next_data, NULL, NULL,
|
||||||
written, 1));
|
written, 1));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -286,8 +287,8 @@ FUNCTION_NAME (struct gconv_step *step, struct gconv_step_data *data,
|
|||||||
const char *outerr = data->outbuf;
|
const char *outerr = data->outbuf;
|
||||||
int result;
|
int result;
|
||||||
|
|
||||||
result = _CALL_DL_FCT (fct, (next_step, next_data, &outerr,
|
result = DL_CALL_FCT (fct, (next_step, next_data, &outerr,
|
||||||
outbuf, written, 0));
|
outbuf, written, 0));
|
||||||
|
|
||||||
if (result != GCONV_EMPTY_INPUT)
|
if (result != GCONV_EMPTY_INPUT)
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 92, 94, 95, 96, 97 Free Software Foundation, Inc.
|
/* Copyright (C) 1991, 92, 94, 95, 96, 97, 98 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
|
||||||
@ -48,6 +48,13 @@ __BEGIN_DECLS
|
|||||||
# endif
|
# endif
|
||||||
#endif /* Use misc. */
|
#endif /* Use misc. */
|
||||||
|
|
||||||
|
/* XPG wants the following symbols. */
|
||||||
|
#ifdef __USE_XOPEN /* <stdio.h> has the same definitions. */
|
||||||
|
# define SEEK_SET 0 /* Seek from beginning of file. */
|
||||||
|
# define SEEK_CUR 1 /* Seek from current position. */
|
||||||
|
# define SEEK_END 2 /* Seek from end of file. */
|
||||||
|
#endif /* XPG */
|
||||||
|
|
||||||
/* Do the file control operation described by CMD on FD.
|
/* Do the file control operation described by CMD on FD.
|
||||||
The remaining arguments are interpreted depending on CMD. */
|
The remaining arguments are interpreted depending on CMD. */
|
||||||
extern int __fcntl __P ((int __fd, int __cmd, ...));
|
extern int __fcntl __P ((int __fd, int __cmd, ...));
|
||||||
|
@ -316,7 +316,7 @@ _IO_do_write (fp, data, to_do)
|
|||||||
fp->_cur_column = _IO_adjust_column (fp->_cur_column - 1, data, to_do) + 1;
|
fp->_cur_column = _IO_adjust_column (fp->_cur_column - 1, data, to_do) + 1;
|
||||||
_IO_setg (fp, fp->_IO_buf_base, fp->_IO_buf_base, fp->_IO_buf_base);
|
_IO_setg (fp, fp->_IO_buf_base, fp->_IO_buf_base, fp->_IO_buf_base);
|
||||||
fp->_IO_write_base = fp->_IO_write_ptr = fp->_IO_buf_base;
|
fp->_IO_write_base = fp->_IO_write_ptr = fp->_IO_buf_base;
|
||||||
fp->_IO_write_end = ((fp->_flags & (_IO_LINE_BUF+_IO_UNBUFFERED))
|
fp->_IO_write_end = ((fp->_flags & (_IO_UNBUFFERED))
|
||||||
? fp->_IO_buf_base : fp->_IO_buf_end);
|
? fp->_IO_buf_base : fp->_IO_buf_end);
|
||||||
return count != to_do ? EOF : 0;
|
return count != to_do ? EOF : 0;
|
||||||
}
|
}
|
||||||
@ -410,7 +410,7 @@ _IO_file_overflow (f, ch)
|
|||||||
f->_IO_write_end = f->_IO_buf_end;
|
f->_IO_write_end = f->_IO_buf_end;
|
||||||
f->_IO_read_base = f->_IO_read_ptr = f->_IO_read_end;
|
f->_IO_read_base = f->_IO_read_ptr = f->_IO_read_end;
|
||||||
|
|
||||||
if (f->_flags & (_IO_LINE_BUF+_IO_UNBUFFERED))
|
if (f->_flags & (_IO_UNBUFFERED))
|
||||||
f->_IO_write_end = f->_IO_write_ptr;
|
f->_IO_write_end = f->_IO_write_ptr;
|
||||||
f->_flags |= _IO_CURRENTLY_PUTTING;
|
f->_flags |= _IO_CURRENTLY_PUTTING;
|
||||||
}
|
}
|
||||||
|
@ -287,10 +287,23 @@ extern int __overflow __P ((_IO_FILE *, int));
|
|||||||
&& __underflow (_fp) == EOF ? EOF \
|
&& __underflow (_fp) == EOF ? EOF \
|
||||||
: *(unsigned char *) (_fp)->_IO_read_ptr)
|
: *(unsigned char *) (_fp)->_IO_read_ptr)
|
||||||
|
|
||||||
#define _IO_putc_unlocked(_ch, _fp) \
|
#ifdef __GNUC__
|
||||||
|
# define _IO_putc_unlocked(_ch, _fp) \
|
||||||
|
(__extension__ \
|
||||||
|
({ unsigned char _chl = (_ch); \
|
||||||
|
(((_fp)->_IO_write_ptr >= (_fp)->_IO_write_end \
|
||||||
|
|| (_chl == '\n' && ((_fp)->_flags & _IO_LINE_BUF))) \
|
||||||
|
? __overflow (_fp, (unsigned char) _chl) \
|
||||||
|
: (unsigned char) (*(_fp)->_IO_write_ptr++ = _chl)); }))
|
||||||
|
#else
|
||||||
|
# define _IO_putc_unlocked(_ch, _fp) \
|
||||||
(((_fp)->_IO_write_ptr >= (_fp)->_IO_write_end) \
|
(((_fp)->_IO_write_ptr >= (_fp)->_IO_write_end) \
|
||||||
? __overflow (_fp, (unsigned char) (_ch)) \
|
? __overflow (_fp, (unsigned char) (_ch)) \
|
||||||
: (unsigned char) (*(_fp)->_IO_write_ptr++ = (_ch)))
|
: ((unsigned char) (*(_fp)->_IO_write_ptr = (_ch)) == '\n' \
|
||||||
|
&& ((_fp)->_flags & _IO_LINE_BUF) \
|
||||||
|
? __overflow (_fp, (unsigned char) *(_fp)->_IO_write_ptr) \
|
||||||
|
: (unsigned char) (*(_fp)->_IO_write_ptr++)))
|
||||||
|
#endif
|
||||||
|
|
||||||
#define _IO_feof_unlocked(__fp) (((__fp)->_flags & _IO_EOF_SEEN) != 0)
|
#define _IO_feof_unlocked(__fp) (((__fp)->_flags & _IO_EOF_SEEN) != 0)
|
||||||
#define _IO_ferror_unlocked(__fp) (((__fp)->_flags & _IO_ERR_SEEN) != 0)
|
#define _IO_ferror_unlocked(__fp) (((__fp)->_flags & _IO_ERR_SEEN) != 0)
|
||||||
|
@ -32,7 +32,9 @@ __BEGIN_DECLS
|
|||||||
# define __need_NULL
|
# define __need_NULL
|
||||||
# include <stddef.h>
|
# include <stddef.h>
|
||||||
|
|
||||||
# define __need___va_list
|
# ifndef __USE_XOPEN
|
||||||
|
# define __need___va_list
|
||||||
|
# endif
|
||||||
# include <stdarg.h>
|
# include <stdarg.h>
|
||||||
|
|
||||||
# include <bits/types.h>
|
# include <bits/types.h>
|
||||||
@ -111,7 +113,7 @@ extern void __libc_fatal __P ((__const char *__message))
|
|||||||
#define SEEK_END 2 /* Seek from end of file. */
|
#define SEEK_END 2 /* Seek from end of file. */
|
||||||
|
|
||||||
|
|
||||||
#ifdef __USE_SVID
|
#if defined __USE_SVID || defined __USE_XOPEN
|
||||||
/* Default path prefix for `tempnam' and `tmpnam'. */
|
/* Default path prefix for `tempnam' and `tmpnam'. */
|
||||||
# define P_tmpdir "/tmp"
|
# define P_tmpdir "/tmp"
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
1998-07-08 22:26 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
|
* Versions: Add pthread_mutexattr_gettype, pthread_mutexattr_settype.
|
||||||
|
* mutex.c: Define weak alias pthread_mutexattr_gettype and
|
||||||
|
pthread_mutexattr_settype.
|
||||||
|
* sysdeps/pthread/pthread.h: Declare these functions.
|
||||||
|
Move pthread_sigmask and pthread_kill declaration in separate header.
|
||||||
|
* sysdeps/unix/sysv/linux/bits/sigthread.h: New file.
|
||||||
|
|
||||||
1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
|
1998-07-07 15:20 Ulrich Drepper <drepper@cygnus.com>
|
||||||
|
|
||||||
* Makefile: Add rules to compile and run tests.
|
* Makefile: Add rules to compile and run tests.
|
||||||
|
@ -91,5 +91,7 @@ libpthread {
|
|||||||
pthread_attr_getstacksize; pthread_attr_setstacksize;
|
pthread_attr_getstacksize; pthread_attr_setstacksize;
|
||||||
|
|
||||||
pthread_getconcurrency; pthread_setconcurrency;
|
pthread_getconcurrency; pthread_setconcurrency;
|
||||||
|
|
||||||
|
pthread_mutexattr_gettype; pthread_mutexattr_settype;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,6 +154,7 @@ int __pthread_mutexattr_setkind_np(pthread_mutexattr_t *attr, int kind)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
weak_alias (__pthread_mutexattr_setkind_np, pthread_mutexattr_setkind_np)
|
weak_alias (__pthread_mutexattr_setkind_np, pthread_mutexattr_setkind_np)
|
||||||
|
weak_alias (__pthread_mutexattr_setkind_np, pthread_mutexattr_settype)
|
||||||
|
|
||||||
int __pthread_mutexattr_getkind_np(const pthread_mutexattr_t *attr, int *kind)
|
int __pthread_mutexattr_getkind_np(const pthread_mutexattr_t *attr, int *kind)
|
||||||
{
|
{
|
||||||
@ -161,6 +162,7 @@ int __pthread_mutexattr_getkind_np(const pthread_mutexattr_t *attr, int *kind)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
weak_alias (__pthread_mutexattr_getkind_np, pthread_mutexattr_getkind_np)
|
weak_alias (__pthread_mutexattr_getkind_np, pthread_mutexattr_getkind_np)
|
||||||
|
weak_alias (__pthread_mutexattr_getkind_np, pthread_mutexattr_gettype)
|
||||||
|
|
||||||
/* Once-only execution */
|
/* Once-only execution */
|
||||||
|
|
||||||
|
@ -314,15 +314,17 @@ extern int pthread_mutexattr_init __P ((pthread_mutexattr_t *__attr));
|
|||||||
extern int __pthread_mutexattr_destroy __P ((pthread_mutexattr_t *__attr));
|
extern int __pthread_mutexattr_destroy __P ((pthread_mutexattr_t *__attr));
|
||||||
extern int pthread_mutexattr_destroy __P ((pthread_mutexattr_t *__attr));
|
extern int pthread_mutexattr_destroy __P ((pthread_mutexattr_t *__attr));
|
||||||
|
|
||||||
/* Set the mutex kind attribute in *ATTR to KIND (either PTHREAD_MUTEX_FAST_NP
|
#ifdef __USE_UNIX98
|
||||||
or PTHREAD_MUTEX_RECURSIVE_NP). */
|
/* Set the mutex kind attribute in *ATTR to KIND (either PTHREAD_MUTEX_NORMAL,
|
||||||
extern int __pthread_mutexattr_setkind_np __P ((pthread_mutexattr_t *__attr,
|
PTHREAD_MUTEX_RECURSIVE, PTHREAD_MUTEX_ERRORCHECK, or
|
||||||
int __kind));
|
PTHREAD_MUTEX_DEFAULT). */
|
||||||
extern int pthread_mutexattr_setkind_np __P ((pthread_mutexattr_t *__attr,
|
extern int pthread_mutexattr_settype __P ((pthread_mutexattr_t *__attr,
|
||||||
int __kind));
|
int __kind));
|
||||||
|
|
||||||
/* Return in *KIND the mutex kind attribute in *ATTR. */
|
/* Return in *KIND the mutex kind attribute in *ATTR. */
|
||||||
extern int pthread_mutexattr_getkind_np __P ((__const pthread_mutexattr_t *__attr,
|
extern int pthread_mutexattr_gettype __P ((__const pthread_mutexattr_t *__attr,
|
||||||
int *__kind));
|
int *__kind));
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Functions for handling conditional variables. */
|
/* Functions for handling conditional variables. */
|
||||||
@ -525,16 +527,7 @@ extern void _pthread_cleanup_pop_restore __P ((struct _pthread_cleanup_buffer *_
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Functions for handling signals. */
|
/* Functions for handling signals. */
|
||||||
|
#include <bits/sigthread.h>
|
||||||
/* Modify the signal mask for the calling thread. The arguments have
|
|
||||||
the same meaning as for sigprocmask(2). */
|
|
||||||
|
|
||||||
extern int pthread_sigmask __P ((int __how, __const sigset_t *__newmask,
|
|
||||||
sigset_t *__oldmask));
|
|
||||||
|
|
||||||
/* Send signal SIGNO to the given thread. */
|
|
||||||
|
|
||||||
extern int pthread_kill __P ((pthread_t __thread, int __signo));
|
|
||||||
|
|
||||||
|
|
||||||
/* Functions for handling process creation and process execution. */
|
/* Functions for handling process creation and process execution. */
|
||||||
|
32
linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h
Normal file
32
linuxthreads/sysdeps/unix/sysv/linux/bits/sigthread.h
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/* Signal handling function for threaded programs.
|
||||||
|
Copyright (C) 1998 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., 59 Temple Place - Suite 330,
|
||||||
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#if !defined _SIGNAL_H && !defined _PTHREAD_H
|
||||||
|
# error "Never include this file directly. Use <pthread.h> instead"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Functions for handling signals. */
|
||||||
|
|
||||||
|
/* Modify the signal mask for the calling thread. The arguments have
|
||||||
|
the same meaning as for sigprocmask(2). */
|
||||||
|
extern int pthread_sigmask __P ((int __how, __const sigset_t *__newmask,
|
||||||
|
sigset_t *__oldmask));
|
||||||
|
|
||||||
|
/* Send signal SIGNO to the given thread. */
|
||||||
|
extern int pthread_kill __P ((pthread_t __thread, int __signo));
|
@ -73,8 +73,10 @@ getttyent()
|
|||||||
return (NULL);
|
return (NULL);
|
||||||
flockfile (tf);
|
flockfile (tf);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
if (!fgets_unlocked(p = line, sizeof(line), tf))
|
if (!fgets_unlocked(p = line, sizeof(line), tf)) {
|
||||||
|
funlockfile (tf);
|
||||||
return (NULL);
|
return (NULL);
|
||||||
|
}
|
||||||
/* skip lines that are too big */
|
/* skip lines that are too big */
|
||||||
if (!index(p, '\n')) {
|
if (!index(p, '\n')) {
|
||||||
while ((c = getc_unlocked(tf)) != '\n' && c != EOF)
|
while ((c = getc_unlocked(tf)) != '\n' && c != EOF)
|
||||||
|
@ -57,7 +57,10 @@ __getmntent_r (FILE *stream, struct mntent *mp, char *buffer, int bufsiz)
|
|||||||
char *end_ptr;
|
char *end_ptr;
|
||||||
|
|
||||||
if (fgets_unlocked (buffer, bufsiz, stream) == NULL)
|
if (fgets_unlocked (buffer, bufsiz, stream) == NULL)
|
||||||
return NULL;
|
{
|
||||||
|
funlockfile (stream);
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
end_ptr = strchr (buffer, '\n');
|
end_ptr = strchr (buffer, '\n');
|
||||||
if (end_ptr != NULL) /* chop newline */
|
if (end_ptr != NULL) /* chop newline */
|
||||||
|
@ -118,13 +118,16 @@
|
|||||||
/* Maximum length of login name. */
|
/* Maximum length of login name. */
|
||||||
#define _POSIX_LOGIN_NAME_MAX 9
|
#define _POSIX_LOGIN_NAME_MAX 9
|
||||||
|
|
||||||
|
/* Maximum clock resolution in nanoseconds. */
|
||||||
|
#define _POSIX_CLOCKRES_MIN 20000000
|
||||||
|
|
||||||
|
|
||||||
/* Get the implementation-specific values for the above. */
|
/* Get the implementation-specific values for the above. */
|
||||||
#include <bits/local_lim.h>
|
#include <bits/local_lim.h>
|
||||||
|
|
||||||
|
|
||||||
#ifndef SSIZE_MAX
|
#ifndef SSIZE_MAX
|
||||||
#define SSIZE_MAX INT_MAX
|
# define SSIZE_MAX INT_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
@ -132,7 +135,7 @@
|
|||||||
The current maximum can be got from `sysconf'. */
|
The current maximum can be got from `sysconf'. */
|
||||||
|
|
||||||
#ifndef NGROUPS_MAX
|
#ifndef NGROUPS_MAX
|
||||||
#define NGROUPS_MAX _POSIX_NGROUPS_MAX
|
# define NGROUPS_MAX _POSIX_NGROUPS_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* bits/posix1_lim.h */
|
#endif /* bits/posix1_lim.h */
|
||||||
|
@ -283,7 +283,7 @@ extern reg_syntax_t re_syntax_options;
|
|||||||
typedef enum
|
typedef enum
|
||||||
{
|
{
|
||||||
#if (_XOPEN_SOURCE - 0) == 500
|
#if (_XOPEN_SOURCE - 0) == 500
|
||||||
REG_NOSYS = -1, /* This will never happen for this implementation. */
|
REG_ENOSYS = -1, /* This will never happen for this implementation. */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
REG_NOERROR = 0, /* Success. */
|
REG_NOERROR = 0, /* Success. */
|
||||||
|
@ -228,6 +228,11 @@ typedef __off64_t off64_t;
|
|||||||
typedef __pid_t pid_t;
|
typedef __pid_t pid_t;
|
||||||
# define pid_t pid_t
|
# define pid_t pid_t
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# ifndef intptr_t
|
||||||
|
typedef __intptr_t intptr_t;
|
||||||
|
# define intptr_t intptr_t
|
||||||
|
# endif
|
||||||
#endif /* Unix98 */
|
#endif /* Unix98 */
|
||||||
|
|
||||||
/* Values for the second argument to access.
|
/* Values for the second argument to access.
|
||||||
@ -1054,8 +1059,26 @@ extern void swab __P ((__const __ptr_t __from, __ptr_t __to, ssize_t __n));
|
|||||||
/* Return the name of the controlling terminal. */
|
/* Return the name of the controlling terminal. */
|
||||||
extern char *ctermid __P ((char *__s));
|
extern char *ctermid __P ((char *__s));
|
||||||
|
|
||||||
/* Return the name of the current user. */
|
/* Return the name of the current user. This function should not be
|
||||||
|
used and might go away some time. */
|
||||||
extern char *cuserid __P ((char *__s));
|
extern char *cuserid __P ((char *__s));
|
||||||
|
|
||||||
|
|
||||||
|
/* This function is only available if the system has POSIX threads. */
|
||||||
|
|
||||||
|
/* Install handlers to be called when a new process is created with FORK.
|
||||||
|
The PREPARE handler is called in the parent process just before performing
|
||||||
|
FORK. The PARENT handler is called in the parent process just after FORK.
|
||||||
|
The CHILD handler is called in the child process. Each of the three
|
||||||
|
handlers can be NULL, meaning that no handler needs to be called at that
|
||||||
|
point.
|
||||||
|
PTHREAD_ATFORK can be called several times, in which case the PREPARE
|
||||||
|
handlers are called in LIFO order (last added with PTHREAD_ATFORK,
|
||||||
|
first called before FORK), and the PARENT and CHILD handlers are called
|
||||||
|
in FIFO (first added, first called). */
|
||||||
|
extern int pthread_atfork __P ((void (*__prepare) (void),
|
||||||
|
void (*__parent) (void),
|
||||||
|
void (*__child) (void)));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__END_DECLS
|
__END_DECLS
|
||||||
|
@ -3,6 +3,11 @@
|
|||||||
# (C) Copyright 1998 Free Software Foundation, Inc.
|
# (C) Copyright 1998 Free Software Foundation, Inc.
|
||||||
# Written by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
# Written by Ulrich Drepper <drepper@cygnus.com>, 1998.
|
||||||
|
|
||||||
|
# This script expects the following variables to be defined:
|
||||||
|
# defsfile name of Versions.def file
|
||||||
|
# buildroot name of build directory with trailing slash
|
||||||
|
# move_if_change move-if-change command
|
||||||
|
|
||||||
# Read definitions for the versions.
|
# Read definitions for the versions.
|
||||||
BEGIN {
|
BEGIN {
|
||||||
nlibs=0;
|
nlibs=0;
|
||||||
@ -23,8 +28,8 @@ BEGIN {
|
|||||||
}
|
}
|
||||||
close(defsfile);
|
close(defsfile);
|
||||||
|
|
||||||
tmpfile = (buildroot "Versions.tmp");
|
tmpfile = buildroot "Versions.tmp";
|
||||||
sort = ("sort -n >" tmpfile);
|
sort = "sort -n > " tmpfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Remove comment lines.
|
# Remove comment lines.
|
||||||
@ -68,23 +73,29 @@ function closeversion(name) {
|
|||||||
printf("}%s;\n", derived[oldlib, name]) > outfile;
|
printf("}%s;\n", derived[oldlib, name]) > outfile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function close_and_move(name, real_name) {
|
||||||
|
close(name);
|
||||||
|
system(move_if_change " " name " " real_name " >&2");
|
||||||
|
}
|
||||||
|
|
||||||
# Now print the accumulated information.
|
# Now print the accumulated information.
|
||||||
END {
|
END {
|
||||||
close(sort);
|
close(sort);
|
||||||
oldlib="";
|
oldlib = "";
|
||||||
oldver="";
|
oldver = "";
|
||||||
printf("all-version-maps =");
|
printf("version-maps =");
|
||||||
while(getline < tmpfile) {
|
while(getline < tmpfile) {
|
||||||
if ($1 != oldlib) {
|
if ($1 != oldlib) {
|
||||||
if (oldlib != "") {
|
if (oldlib != "") {
|
||||||
closeversion(oldver);
|
closeversion(oldver);
|
||||||
oldver = "";
|
oldver = "";
|
||||||
close(outfile);
|
close_and_move(outfile, real_outfile);
|
||||||
}
|
}
|
||||||
oldlib = $1;
|
oldlib = $1;
|
||||||
outfile = (buildroot oldlib ".map");
|
real_outfile = buildroot oldlib ".map";
|
||||||
|
outfile = real_outfile "T";
|
||||||
firstinfile = 1;
|
firstinfile = 1;
|
||||||
printf(" $(common-objpfx)%s.map", oldlib);
|
printf(" %s.map", oldlib);
|
||||||
}
|
}
|
||||||
if ($2 != oldver) {
|
if ($2 != oldver) {
|
||||||
if (oldver != "") {
|
if (oldver != "") {
|
||||||
@ -101,6 +112,6 @@ END {
|
|||||||
}
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
closeversion(oldver);
|
closeversion(oldver);
|
||||||
close(outfile);
|
close_and_move(outfile, real_outfile);
|
||||||
system("rm " tmpfile);
|
system("rm -f " tmpfile);
|
||||||
}
|
}
|
@ -22,7 +22,8 @@
|
|||||||
subdir := signal
|
subdir := signal
|
||||||
|
|
||||||
headers := signal.h sys/signal.h bits/signum.h bits/sigcontext.h \
|
headers := signal.h sys/signal.h bits/signum.h bits/sigcontext.h \
|
||||||
bits/sigaction.h bits/sigset.h bits/siginfo.h bits/sigstack.h
|
bits/sigaction.h bits/sigset.h bits/siginfo.h bits/sigstack.h \
|
||||||
|
bits/sigthread.h
|
||||||
|
|
||||||
routines := signal raise killpg \
|
routines := signal raise killpg \
|
||||||
sigaction sigprocmask kill \
|
sigaction sigprocmask kill \
|
||||||
|
@ -352,6 +352,9 @@ extern int sigignore __P ((int __sig));
|
|||||||
extern __sighandler_t sigset __P ((int __sig, __sighandler_t __disp));
|
extern __sighandler_t sigset __P ((int __sig, __sighandler_t __disp));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Some of the functions for handling signals in threaded programs must
|
||||||
|
be defined here. */
|
||||||
|
#include <bits/sigthread.h>
|
||||||
|
|
||||||
/* The following functions are used internally in the C library and in
|
/* The following functions are used internally in the C library and in
|
||||||
other code which need deep insights. */
|
other code which need deep insights. */
|
||||||
|
@ -386,7 +386,7 @@ extern int rand __P ((void));
|
|||||||
/* Seed the random number generator with the given number. */
|
/* Seed the random number generator with the given number. */
|
||||||
extern void srand __P ((unsigned int __seed));
|
extern void srand __P ((unsigned int __seed));
|
||||||
|
|
||||||
#ifdef __USE_MISC
|
#ifdef __USE_POSIX
|
||||||
/* Reentrant interface according to POSIX.1. */
|
/* Reentrant interface according to POSIX.1. */
|
||||||
extern int __rand_r __P ((unsigned int *__seed));
|
extern int __rand_r __P ((unsigned int *__seed));
|
||||||
extern int rand_r __P ((unsigned int *__seed));
|
extern int rand_r __P ((unsigned int *__seed));
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* `sysconf', `pathconf', and `confstr' NAME values. Generic version.
|
/* `sysconf', `pathconf', and `confstr' NAME values. Generic version.
|
||||||
Copyright (C) 1993, 1995, 1996, 1997 Free Software Foundation, Inc.
|
Copyright (C) 1993, 1995, 1996, 1997, 1998 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
|
||||||
@ -48,8 +48,10 @@ enum
|
|||||||
#define _PC_ASYNC_IO _PC_ASYNC_IO
|
#define _PC_ASYNC_IO _PC_ASYNC_IO
|
||||||
_PC_PRIO_IO,
|
_PC_PRIO_IO,
|
||||||
#define _PC_PRIO_IO _PC_PRIO_IO
|
#define _PC_PRIO_IO _PC_PRIO_IO
|
||||||
_PC_SOCK_MAXBUF
|
_PC_SOCK_MAXBUF,
|
||||||
#define _PC_SOCK_MAXBUF _PC_SOCK_MAXBUF
|
#define _PC_SOCK_MAXBUF _PC_SOCK_MAXBUF
|
||||||
|
_PC_FILESIZEBITS
|
||||||
|
#define _PC_FILESIZEBITS _PC_FILESIZEBITS
|
||||||
};
|
};
|
||||||
|
|
||||||
/* Values for the argument to `sysconf'. */
|
/* Values for the argument to `sysconf'. */
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* System dependand definitions for run-time dynamic loading.
|
/* System dependand definitions for run-time dynamic loading.
|
||||||
Copyright (C) 1996, 1997 Free Software Foundation, Inc.
|
Copyright (C) 1996, 1997, 1998 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
|
||||||
@ -30,3 +30,8 @@
|
|||||||
the symbols of the loaded object and its dependencies are made
|
the symbols of the loaded object and its dependencies are made
|
||||||
visible as if the object were linked directly into the program. */
|
visible as if the object were linked directly into the program. */
|
||||||
#define RTLD_GLOBAL 0x100
|
#define RTLD_GLOBAL 0x100
|
||||||
|
|
||||||
|
/* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
|
||||||
|
The implementation does this by default and so we can define the
|
||||||
|
value to zero. */
|
||||||
|
#define RTLD_LOCAL 0
|
||||||
|
24
sysdeps/generic/bits/sigthread.h
Normal file
24
sysdeps/generic/bits/sigthread.h
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
/* Signal handling function for threaded programs.
|
||||||
|
Copyright (C) 1998 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., 59 Temple Place - Suite 330,
|
||||||
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#ifndef _SIGNAL_H
|
||||||
|
# error "Never include this file directly. Use <signal.h> instead"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* There are none available in this configuration. */
|
@ -115,4 +115,7 @@ typedef __u_quad_t __fsfilcnt64_t;
|
|||||||
typedef int __t_scalar_t;
|
typedef int __t_scalar_t;
|
||||||
typedef unsigned int __t_uscalar_t;
|
typedef unsigned int __t_uscalar_t;
|
||||||
|
|
||||||
|
/* This definition makes this file kind of architecture dependent. */
|
||||||
|
typedef long int __intptr_t;
|
||||||
|
|
||||||
#endif /* bits/types.h */
|
#endif /* bits/types.h */
|
||||||
|
@ -279,6 +279,26 @@ _dl_next_ld_env_entry (char ***position)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
unsetenv (const char *name)
|
||||||
|
{
|
||||||
|
const size_t len = strlen (name);
|
||||||
|
char **ep;
|
||||||
|
|
||||||
|
for (ep = __environ; *ep != NULL; ++ep)
|
||||||
|
if (!strncmp (*ep, name, len) && (*ep)[len] == '=')
|
||||||
|
{
|
||||||
|
/* Found it. Remove this pointer by moving later ones back. */
|
||||||
|
char **dp = ep;
|
||||||
|
|
||||||
|
do
|
||||||
|
dp[0] = dp[1];
|
||||||
|
while (*dp++);
|
||||||
|
/* Continue the loop in case NAME appears again. */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* Return an array of useful/necessary hardware capability names. */
|
/* Return an array of useful/necessary hardware capability names. */
|
||||||
const struct r_strlenpair *
|
const struct r_strlenpair *
|
||||||
internal_function
|
internal_function
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1991, 1995, 1996 Free Software Foundation, Inc.
|
/* Copyright (C) 1991, 1995, 1996, 1998 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
|
||||||
@ -144,7 +144,16 @@ __pathconf (const char *path, int name)
|
|||||||
#else
|
#else
|
||||||
return -1;
|
return -1;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
case _PC_FILESIZEBITS:
|
||||||
|
#ifdef FILESIZEBITS
|
||||||
|
return FILESIZEBITS;
|
||||||
|
#else
|
||||||
|
/* We let platforms with larger file sizes overwrite this value. */
|
||||||
|
return 32;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#undef __pathconf
|
||||||
weak_alias (__pathconf, pathconf)
|
weak_alias (__pathconf, pathconf)
|
||||||
|
@ -110,6 +110,9 @@ typedef struct
|
|||||||
typedef int __t_scalar_t;
|
typedef int __t_scalar_t;
|
||||||
typedef unsigned int __t_uscalar_t;
|
typedef unsigned int __t_uscalar_t;
|
||||||
|
|
||||||
|
/* Duplicates info from stdint.h but this is used in unistd.h. */
|
||||||
|
typedef long int __intptr_t;
|
||||||
|
|
||||||
|
|
||||||
/* Now add the thread types. */
|
/* Now add the thread types. */
|
||||||
#include <bits/pthreadtypes.h>
|
#include <bits/pthreadtypes.h>
|
||||||
|
64
sysdeps/unix/sysv/linux/alpha/fpathconf.c
Normal file
64
sysdeps/unix/sysv/linux/alpha/fpathconf.c
Normal file
@ -0,0 +1,64 @@
|
|||||||
|
/* Copyright (C) 1991, 1995, 1996, 1998 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., 59 Temple Place - Suite 330,
|
||||||
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <limits.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
|
#define EXT2_SUPER_MAGIC 0xef53
|
||||||
|
#define UFS_MAGIC 0x00011954
|
||||||
|
#define UFS_CIGAM 0x54190100 /* byteswapped MAGIC */
|
||||||
|
|
||||||
|
static long int default_fpathconf (int fd, int name);
|
||||||
|
|
||||||
|
/* Get file-specific information about descriptor FD. */
|
||||||
|
long int
|
||||||
|
__fpathconf (fd, name)
|
||||||
|
int fd;
|
||||||
|
int name;
|
||||||
|
{
|
||||||
|
if (fd < 0)
|
||||||
|
{
|
||||||
|
__set_errno (EBADF);
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (name == _PC_FILESIZEBITS)
|
||||||
|
{
|
||||||
|
/* Test whether this is on a ext2 filesystem which supports large
|
||||||
|
files. */
|
||||||
|
struct statfs fs;
|
||||||
|
|
||||||
|
if (__fstatfs (fd, &fs) < 0
|
||||||
|
|| (fs.f_type != EXT2_SUPER_MAGIC
|
||||||
|
&& fs.f_type != UFS_MAGIC
|
||||||
|
&& fs.f_type != UFS_CIGAM))
|
||||||
|
return 32;
|
||||||
|
|
||||||
|
/* This filesystem supported files >2GB. */
|
||||||
|
return 64;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fallback to the generic version. */
|
||||||
|
return default_fpathconf (fd, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
#define __fpathconf static default_fpathconf
|
||||||
|
#include <sysdeps/posix/fpathconf.c>
|
57
sysdeps/unix/sysv/linux/alpha/pathconf.c
Normal file
57
sysdeps/unix/sysv/linux/alpha/pathconf.c
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
/* Copyright (C) 1991, 1995, 1996, 1998 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., 59 Temple Place - Suite 330,
|
||||||
|
Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <stddef.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <limits.h>
|
||||||
|
#include <fcntl.h>
|
||||||
|
#include <sys/statfs.h>
|
||||||
|
|
||||||
|
#define EXT2_SUPER_MAGIC 0xef53
|
||||||
|
#define UFS_MAGIC 0x00011954
|
||||||
|
#define UFS_CIGAM 0x54190100 /* byteswapped MAGIC */
|
||||||
|
|
||||||
|
static long int default_pathconf (const char *path, int name);
|
||||||
|
|
||||||
|
/* Get file-specific information about PATH. */
|
||||||
|
long int
|
||||||
|
__pathconf (const char *path, int name)
|
||||||
|
{
|
||||||
|
if (name == _PC_FILESIZEBITS)
|
||||||
|
{
|
||||||
|
/* Test whether this is on a ext2 or UFS filesystem which
|
||||||
|
support large files. */
|
||||||
|
struct statfs fs;
|
||||||
|
|
||||||
|
if (__statfs (path, &fs) < 0
|
||||||
|
|| (fs.f_type != EXT2_SUPER_MAGIC
|
||||||
|
&& fs.f_type != UFS_MAGIC
|
||||||
|
&& fs.f_type != UFS_CIGAM))
|
||||||
|
return 32;
|
||||||
|
|
||||||
|
/* This filesystem supported files >2GB. */
|
||||||
|
return 64;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Fallback to the generic version. */
|
||||||
|
return default_pathconf (path, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
#define __pathconf static default_pathconf
|
||||||
|
#include <sysdeps/posix/pathconf.c>
|
@ -27,6 +27,10 @@
|
|||||||
/* Linux has no ENOTSUP error code. */
|
/* Linux has no ENOTSUP error code. */
|
||||||
# define ENOTSUP EOPNOTSUPP
|
# define ENOTSUP EOPNOTSUPP
|
||||||
|
|
||||||
|
/* Linux also has no ECANCELED error code. Since it is not used here
|
||||||
|
we define it to an invalid value. */
|
||||||
|
# define ECANCELED (-1)
|
||||||
|
|
||||||
# ifndef __ASSEMBLER__
|
# ifndef __ASSEMBLER__
|
||||||
/* We now need a declaration of the `errno' variable. */
|
/* We now need a declaration of the `errno' variable. */
|
||||||
extern int errno;
|
extern int errno;
|
||||||
|
@ -24,12 +24,6 @@
|
|||||||
|
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
|
||||||
/* In GNU, read and write are bits (unlike BSD). */
|
|
||||||
#ifdef __USE_GNU
|
|
||||||
# define O_READ O_RDONLY /* Open for reading. */
|
|
||||||
# define O_WRITE O_WRONLY /* Open for writing. */
|
|
||||||
#endif
|
|
||||||
/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
|
/* open/fcntl - O_SYNC is only implemented on blocks devices and on files
|
||||||
located on an ext2 file system */
|
located on an ext2 file system */
|
||||||
#define O_ACCMODE 0003
|
#define O_ACCMODE 0003
|
||||||
@ -47,6 +41,14 @@
|
|||||||
#define O_FSYNC O_SYNC
|
#define O_FSYNC O_SYNC
|
||||||
#define O_ASYNC 020000
|
#define O_ASYNC 020000
|
||||||
|
|
||||||
|
/* For now Linux has synchronisity options for data and read operations.
|
||||||
|
We define the symbols here but let them do the same as O_SYNS since
|
||||||
|
this is a superset. */
|
||||||
|
#ifdef __USE_UNIX98
|
||||||
|
# define O_DSYNC O_SYNC /* Synchronize data. */
|
||||||
|
# define O_RSYNC O_SYNC /* Synchronize read operations. */
|
||||||
|
#endif
|
||||||
|
|
||||||
/* XXX missing */
|
/* XXX missing */
|
||||||
#ifdef __USE_LARGEFILE64
|
#ifdef __USE_LARGEFILE64
|
||||||
# define O_LARGEFILE 0
|
# define O_LARGEFILE 0
|
||||||
|
@ -115,6 +115,10 @@ enum __rlimit_resource
|
|||||||
# define RLIM64_INFINITY 0x7fffffffffffffffLL
|
# define RLIM64_INFINITY 0x7fffffffffffffffLL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* We can represent all limits. */
|
||||||
|
#define RLIM_SAVED_MAX RLIM_INFINITY
|
||||||
|
#define RLIM_SAVED_CUR RLIM_INFINITY
|
||||||
|
|
||||||
|
|
||||||
/* Type for resource quantity measurement. */
|
/* Type for resource quantity measurement. */
|
||||||
#ifndef __USE_FILE_OFFSET64
|
#ifndef __USE_FILE_OFFSET64
|
||||||
|
@ -134,6 +134,9 @@ typedef __loff_t __off64_t;
|
|||||||
typedef int __t_scalar_t;
|
typedef int __t_scalar_t;
|
||||||
typedef unsigned int __t_uscalar_t;
|
typedef unsigned int __t_uscalar_t;
|
||||||
|
|
||||||
|
/* Duplicates info from stdint.h but this is used in unistd.h. */
|
||||||
|
typedef int __intptr_t;
|
||||||
|
|
||||||
|
|
||||||
/* Now add the thread types. */
|
/* Now add the thread types. */
|
||||||
#include <bits/pthreadtypes.h>
|
#include <bits/pthreadtypes.h>
|
||||||
|
@ -49,6 +49,8 @@
|
|||||||
#define SYSV4_SUPER_MAGIC 0x012ff7b5
|
#define SYSV4_SUPER_MAGIC 0x012ff7b5
|
||||||
#define SYSV2_SUPER_MAGIC 0x012ff7b6
|
#define SYSV2_SUPER_MAGIC 0x012ff7b6
|
||||||
#define COH_SUPER_MAGIC 0x012ff7b7
|
#define COH_SUPER_MAGIC 0x012ff7b7
|
||||||
|
#define UFS_MAGIC 0x00011954
|
||||||
|
#define UFS_CIGAM 0x54190100 /* byteswapped MAGIC */
|
||||||
|
|
||||||
|
|
||||||
int
|
int
|
||||||
@ -99,6 +101,8 @@ fstatvfs (int fd, struct statvfs *buf)
|
|||||||
case SYSV4_SUPER_MAGIC:
|
case SYSV4_SUPER_MAGIC:
|
||||||
case SYSV2_SUPER_MAGIC:
|
case SYSV2_SUPER_MAGIC:
|
||||||
case COH_SUPER_MAGIC:
|
case COH_SUPER_MAGIC:
|
||||||
|
case UFS_MAGIC:
|
||||||
|
case UFS_CIGAM:
|
||||||
default:
|
default:
|
||||||
/* I hope it's safe to assume no fragmentation. */
|
/* I hope it's safe to assume no fragmentation. */
|
||||||
buf->f_frsize = buf->f_bsize;
|
buf->f_frsize = buf->f_bsize;
|
||||||
|
@ -54,4 +54,7 @@
|
|||||||
break; \
|
break; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Extra unsecure variables. */
|
||||||
|
#define EXTRA_UNSECURE_ENVVARS "LD_AOUT_LIBRARY_PATH", "LD_AOUT_PRELOAD"
|
||||||
|
|
||||||
#endif /* dl-librecon.h */
|
#endif /* dl-librecon.h */
|
||||||
|
@ -134,6 +134,9 @@ typedef __loff_t __off64_t;
|
|||||||
typedef int __t_scalar_t;
|
typedef int __t_scalar_t;
|
||||||
typedef unsigned int __t_uscalar_t;
|
typedef unsigned int __t_uscalar_t;
|
||||||
|
|
||||||
|
/* Duplicates info from stdint.h but this is used in unistd.h. */
|
||||||
|
typedef int __intptr_t;
|
||||||
|
|
||||||
|
|
||||||
/* Now add the thread types. */
|
/* Now add the thread types. */
|
||||||
#include <bits/pthreadtypes.h>
|
#include <bits/pthreadtypes.h>
|
||||||
|
@ -122,6 +122,9 @@ typedef __u_quad_t __fsfilcnt64_t;
|
|||||||
typedef int __t_scalar_t;
|
typedef int __t_scalar_t;
|
||||||
typedef unsigned int __t_uscalar_t;
|
typedef unsigned int __t_uscalar_t;
|
||||||
|
|
||||||
|
/* Duplicates info from stdint.h but this is used in unistd.h. */
|
||||||
|
typedef long int __intptr_t;
|
||||||
|
|
||||||
|
|
||||||
/* Now add the thread types. */
|
/* Now add the thread types. */
|
||||||
#include <bits/pthreadtypes.h>
|
#include <bits/pthreadtypes.h>
|
||||||
|
@ -115,4 +115,7 @@ typedef __u_quad_t __fsfilcnt64_t;
|
|||||||
typedef int __t_scalar_t;
|
typedef int __t_scalar_t;
|
||||||
typedef unsigned int __t_uscalar_t;
|
typedef unsigned int __t_uscalar_t;
|
||||||
|
|
||||||
|
/* Duplicates info from stdint.h but this is used in unistd.h. */
|
||||||
|
typedef long int __intptr_t;
|
||||||
|
|
||||||
#endif /* bits/types.h */
|
#endif /* bits/types.h */
|
||||||
|
@ -78,7 +78,10 @@ typedef unsigned long long int uint_fast64_t;
|
|||||||
|
|
||||||
|
|
||||||
/* Types for `void *' pointers. */
|
/* Types for `void *' pointers. */
|
||||||
|
#ifndef intptr_t
|
||||||
typedef int intptr_t;
|
typedef int intptr_t;
|
||||||
|
# define intptr_t intptr_t
|
||||||
|
#endif
|
||||||
typedef unsigned int uintptr_t;
|
typedef unsigned int uintptr_t;
|
||||||
|
|
||||||
|
|
||||||
|
@ -78,7 +78,10 @@ typedef unsigned long int uint_fast64_t;
|
|||||||
|
|
||||||
|
|
||||||
/* Types for `void *' pointers. */
|
/* Types for `void *' pointers. */
|
||||||
|
#ifndef intptr_t
|
||||||
typedef long int intptr_t;
|
typedef long int intptr_t;
|
||||||
|
# define intptr_t intptr_t
|
||||||
|
#endif
|
||||||
typedef unsigned long int uintptr_t;
|
typedef unsigned long int uintptr_t;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user