/* $NetBSD: memcluster.h,v 1.1.1.1 2009/04/12 15:33:33 christos Exp $ */ /* * Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC") * Copyright (c) 1997,1999 by Internet Software Consortium. * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #ifndef MEMCLUSTER_H #define MEMCLUSTER_H #include #define meminit __meminit #ifdef MEMCLUSTER_DEBUG #define memget(s) __memget_debug(s, __FILE__, __LINE__) #define memput(p, s) __memput_debug(p, s, __FILE__, __LINE__) #else /*MEMCLUSTER_DEBUG*/ #ifdef MEMCLUSTER_RECORD #define memget(s) __memget_record(s, __FILE__, __LINE__) #define memput(p, s) __memput_record(p, s, __FILE__, __LINE__) #else /*MEMCLUSTER_RECORD*/ #define memget __memget #define memput __memput #endif /*MEMCLUSTER_RECORD*/ #endif /*MEMCLUSTER_DEBUG*/ #define memstats __memstats #define memactive __memactive int meminit(size_t, size_t); void * __memget(size_t); void __memput(void *, size_t); void * __memget_debug(size_t, const char *, int); void __memput_debug(void *, size_t, const char *, int); void * __memget_record(size_t, const char *, int); void __memput_record(void *, size_t, const char *, int); void memstats(FILE *); int memactive(void); #endif /* MEMCLUSTER_H */ /*! \file */ h'>path: root/lib/libc/arch/ia64
AgeCommit message (Collapse)Author
2021-10-31Tidy up how __sigaction14_sigtramp.c is added to SRCS.thorpej
2021-10-26Merge all MD __sigaction14_sigtramp.c copies into one:christos
- sparc and sparc64 were not using version 0 sigcontext when there were no arguments in the signal version. This was probably a bug. - vax is using +1 the version numbers of the other archs. - Only hppa was defining __LIBC12_SOURCE__ so it was getting a working sigcontext before. all the other ports that supported sigcontext had the compat code disabled. [pointed out by thorpej, thanks!] If we want to remove sigcontext support from userland at least now there is less work to do so.
2020-10-15Trailing whitespaceskrll
2020-04-18Rename "syscall" to "_syscall" and provide "syscall" as a weak alias.thorpej
2018-11-08Use the generic C fabs/fabsl on ia64 for now to unbreak the build.riastradh
2017-02-07Mark exect(3) obsolete and bind it to plain execve(2) on all platformskamil
The original exect(2) from BSD4.2 was enabling bit for tracing (single-step mode) and calling execve(2). The purpose of it was to generate a signal for a tracer once the application will change its image to a new program. This approach no longer works as: - exect(2) traces (single-steps) libc and it requires hundreds or thousands steps before entering a new image - it's vax and x86 specific code - this functionality has been moved to the kernel - once a process is traced it will generate SIGTRAP with si_code TRAP_EXEC and route it to its debugger - the side effects and unportability make this interface unusable - there are no known users of this interface - it apparently never worked better since day0 of NetBSD ("day0 bug") Users are requested to move to other execve(2) variants. Calling current execve(2) as it is the most similar behavior to this one from BSD4.2. Discussed several times on mailing lists and in PR/51700. Add warning to exect(3) telling about marking this function obsolete. This function is prepared to be removed in next libc major bump. Sponsored by <The NetBSD Foundation>
2016-12-10Add exect stub so "build.sh distribution" will compilescole
2016-11-22For ski, break into debugger instead of exitingscole
2016-08-05PR port-ia64/51261scole
Add stubs for ia64 build
2016-06-30various ia64 updates:mrg
- add a compat vfork because of stupid - add a weak sbrk - add a shmat syscall - add an empty kvm implementation that links - add missing fp stuff
2015-04-17Add set/longjmp and friends (nearly verbatim from FreeBSD).martin
Add a dummy _lwp_makecontext() function (enough to make autoconfigury happy and gcc mknative work)
2012-12-27Add fpclassify{,d}martin
2009-07-31Add the 'abs', 'div' and 'erand48' sources to stdlib/Makefile.inc.dsl
Change the arch files only include the .S files. This adds imaxdiv() to some archs where it was missing.
2009-07-30If SRCS contains any .S files then remove the corresponding .c file fromdsl
SRCS and add to LSRCS (for lint). Change the 'string' Makefiles so that the arch/*/string/Makefile.inc need only specify the .S files for that architecture and not the .c files for all the files they don't override.
2009-07-18Remove references to index.c and rindex.c (strchr.c and strrchr.cdsl
now provide the definitions).
2008-08-04Add C99 functions imaxabs and imaxdiv.matt
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2006-09-23Towards ia64 libc. Round #2cherry
2006-09-22ia64 libc MD stuff #1. Pushing in everything before my harddisk pops.cherry
2006-09-22add ia64 libc MI bits.cherry
2006-09-10libc stubs addedcherry
2006-07-07checkin libc asm stubs, #1cherry