summaryrefslogtreecommitdiff
path: root/libmudflap/mf-hooks2.c
Commit message (Collapse)AuthorAgeFilesLines
* Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception.Jakub Jelinek2009-04-091-15/+9
| | | | From-SVN: r145841
* re PR libmudflap/23084 (mudflap crash upon accept() with argement 2 and 3 as ↵Frank Ch. Eigler2005-09-231-1/+2
| | | | | | | | | | | NULL) 2005-09-23 Frank Ch. Eigler <fche@elastic.org> PR 23084. * mf-hooks2.c (accept): Tolerate NULL sockaddr* parameter. From-SVN: r104588
* Fix FreeBSD fopen instrumentation.James E Wilson2005-08-221-0/+6
| | | | | | | * mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when __FreeBSD__ is defined. From-SVN: r103368
* All files: Update FSF address.Kelley Cook2005-08-171-2/+2
| | | | | | | | 2005-08-17 Kelley Cook <kcook@gcc.gnu.org> * All files: Update FSF address. From-SVN: r103197
* mf-heuristics.c: Fix whitespace at end of line.Mike Stump2005-03-221-13/+13
| | | | | | | | | | | | * mf-heuristics.c: Fix whitespace at end of line. * mf-hooks1.c: Likewise. * mf-hooks2.c: Likewise. * mf-hooks3.c: Likewise. * mf-impl.h: Likewise. * mf-runtime.c: Likewise. * mf-runtime.h: Likewise. From-SVN: r96850
* configure.ac: Check for more headers, functions.Frank Ch. Eigler2004-10-131-24/+197
| | | | | | | | | | | | | | | | | | | | | | 2004-10-12 Frank Ch. Eigler <fche@redhat.com> * configure.ac: Check for more headers, functions. * mf-hooks2.c (mkbuffer, unmkbuffer): New helper functions for tracking overridden FILE buffers. (fopen, setvbuf): New/revised hook functions for buffer overriding. (setbuf,setlinebuf,fdopen,freopen,fopen64,freopen64,fclose): Ditto. (fflush): Accept given NULL stream (means "all streams"). * mf-runtime.h.in: * mf-runtime.c (__mfu_check): Accept accesses that span adjacent HEAP/GUESS objects. (LOOKUP_CACHE_SIZE_MAX): Raise to 64K entries tentatively. (__mf_adapt_cache): Use them all. * testsuite/libmudflap.c/pass35-frag.c: Update warning message. * testsuite/libmudflap.c++/ctors.exp: Ditto. * testsuite/libmudflap.c/{pass51,pass52}-frag.c: New tests. * configure, config.h.in: Regenerated. From-SVN: r88996
* configure.ac: Look for more headers & functions.Frank Ch. Eigler2004-10-041-0/+109
| | | | | | | | | | | | | | 2004-10-04 Frank Ch. Eigler <fche@redhat.com> * configure.ac: Look for more headers & functions. * mf-hooks2.c (getmntent, inet_ntoa, getproto*): New wrapper functions. * mf-runtime.h.in: Add new "#pragma redefine_extname"s for them. * mf-runtime.c (options): Clean up integer signedness warnings. (main): Add a declaration to fix a warning. * mf-hooks3.c (pthread_exit): Add not-reached exit() to wrapper. * configure, config.h.in: Regenerated. From-SVN: r88517
* configure.ac: Look for pwd.h, grp.h, netdb.h headers and functions.Frank Ch. Eigler2004-09-071-11/+160
| | | | | | | | | | | | | | | | | 2004-09-07 Frank Ch. Eigler <fche@redhat.com> * configure.ac: Look for pwd.h, grp.h, netdb.h headers and functions. * mf-hooks2.c (strerror): Unregister previous string returned by previous strerror. (getlogin,cuserid,getpwnam,getpwuid,getgrnam,getgrgid): New wrappers. (getservent,getservbyname,getservbyport,gai_strerror): Ditto. * mf-runtime.h.in: Add redefine_extname pragmas for them all. * mf-runtime.c (__mf_describe_object): Clarify object life status. * testsuite/libmudflap.c/pass48-frag.c, pass49-frag.c, fail32-frag.c: New tests. * configure, config.h.in: Regenerated. From-SVN: r87160
* configure.ac (AC_CHECK_HEADERS): Add dirent.h configure: Regenerate.Nick Clifton2004-06-291-1/+4
| | | | | | | | | configure.ac (AC_CHECK_HEADERS): Add dirent.h configure: Regenerate. mf-hooks2.c: Surround uses of dirent.h with #ifdef HAVE_DIRENT_H. Remove spurious inclusion of <strings.h>. From-SVN: r83850
* Adopt splay trees for object database.Frank Ch. Eigler2004-06-241-5/+5
| | | | | | | | | | | | | | | | 2004-06-24 Frank Ch. Eigler <fche@redhat.com> Adopt splay trees for object database. * Makefile.am: Copy splay-tree.* from libiberty. * Makefile.in, testsuite/Makefile.in: Regenerated. * mf-runtime.h.in (__mf_unregister): Add third parameter (type). * mf-hooks[123].c (*): Add new third parameter to mf_unregister. * mf-impl.h (BEGIN_PROTECT): Remove some trace text. * mf-runtime.c: Rewrite code dealing with object database to use libiberty splay trees. Remove tree liveness aging option. * testsuite/libmudflap.c/fail18-frag.c: Add volatile flag. From-SVN: r83611
* re PR libmudflap/13505 ([tree-ssa] libmudflap mf-hooks2.c build failure on ↵Stephen Crowley2004-06-101-2/+2
| | | | | | | | | | | cygwin) 2004-06-10 Stephen Crowley <stephen.crowley@sbcglobal.net> PR libmudflap/13505 * mf-hooks2.c (semctl): Add cygwin porting hack. From-SVN: r82923
* ctype support.Frank Ch. Eigler2004-06-091-0/+76
| | | | | | | | | | | | | | | | 2004-06-09 Frank Ch. Eigler <fche@redhat.com> ctype support. * configure.in: Look for ctype header and glibc implementation. * mf-hooks2.c (__ctype_{b,toupper,tolower}_loc): Sample ctype array hooks for glibc 2.3. * mf-runtime.h.in: Wrap them. * mf-runtime.c (__mf_init): Leave marker regarding other ctype implementations. * testsuite/libmudflap.c/pass47-frag.c: New test. * configure, config.h.in: Regenerated. From-SVN: r82848
* Portability improvements, e.g., libmudflap/15293.Frank Ch. Eigler2004-06-041-276/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-06-04 Frank Ch. Eigler <fche@redhat.com> Portability improvements, e.g., libmudflap/15293. * configure.in: Look for glibc extension functions. Look for support of -f{function,data}-sections. Look for more headers. Create testsuite/mfconfig.exp. Correct more "test x.." thinkos. * Makefile.am: Use $(SECTION_FLAGS). Collapse piecemeal-compiled mf-hooks* into usual single object per source. * mf-hooks*.c: Remove all #if WRAP_foo conditionals. * mf-hooks2.c: #include a bunch more system headers. Define strnlen if system doesn't provide one. * mf-hooks3.c (struct pthread_info): Add stack_*_alloc fields. (pthread_create): Use it to properly GC dead thread stacks. * mf-runtime.c (__mf_violation): Correct snprintf type warning. * testsuite/Makefile.am: Stop generating site.exp. * testsuite/mfconfig.exp.in: New file. * testsuite/config/default.exp: Load new mfconfig.exp. * testsuite/lib/libmudflap.exp (libmudflap-init): Add extra libraries. (prune_gcc_output): Add glibc static linking warnings. * testsuite/libmudflap.*/*frags.exp: Enumerate needed -lmudflap* libs. * testsuite/libmudflap.c/pass46-frag.c: Ditto. * configure, Makefile, aclocal.m4, config.h.in, testsuite/Makefile.in: Regenerated with autoconf 2.57 and automake 1.7. From-SVN: r82632
* configure.in (LIBMUDFLAPTH): Fix thinko.Per Bothner2004-06-041-0/+16
| | | | | | | | | | | | * configure.in (LIBMUDFLAPTH): Fix thinko. * configure.in: Check for more headers. * mf-hooks2.c: Conditionalize on HAVE_SYS_SOCKET_H etc. * mf-runtime.c: In two places conditionalize on SIUSR1 rather than HAVE_SIGNAL as mingw has signal.h but not SIUSR1. From-SVN: r82627
* Merge tree-ssa-20020619-branch into mainline.Diego Novillo2004-05-131-0/+1767
From-SVN: r81764