summaryrefslogtreecommitdiff
path: root/include/sys
AgeCommit message (Collapse)Author
2008-01-05sync with glibc to get the extern inline directiveMike Frysinger
2008-01-05implement semtimedop for #927Mike Frysinger
2007-07-14syslog.h: allow prioritynames[]/facilitynames[] to be defined constDenis Vlasenko
(selectable by #defining SYSLOG_NAMES_CONST)
2007-03-01include stddef.h to get NULL definition.Khem Raj
2007-02-28add support for ppoll() and emulate poll() with it when __NR_poll does not existMike Frysinger
2007-02-21stub out msync() for no-mmu as wellMike Frysinger
2007-01-29Richard Sandiford writes:Mike Frysinger
However, retesting on m68k showed up a problem that had appeared in uClibc since the last time I tried. Specifically, revision 15785 did: -#define HEAP_GRANULARITY (sizeof (HEAP_GRANULARITY_TYPE)) +#define HEAP_GRANULARITY (__alignof__ (HEAP_GRANULARITY_TYPE)) -#define MALLOC_ALIGNMENT (sizeof (double)) +#define MALLOC_ALIGNMENT (__alignof__ (double)) The problem is that (a) MALLOC_HEADER_SIZE == MALLOC_ALIGNMENT (b) the header contains a size value of type size_t (c) sizeof (size_t) is 4 on m68k, but... (d) __alignof__ (double) is only 2 (the largest alignment used on m68k) So we only allocate 2 bytes for the 4-byte header, and the least significant 2 bytes of the size are in the user's area rather than the header. The patch below fixes that problem by redefining MALLOC_HEADER_SIZE to: MAX (MALLOC_ALIGNMENT, sizeof (size_t)) (but without the help of the MAX macro ;)). However, we really would like to have word alignment on Coldfire. It makes a big performance difference, and because we have to allocate a 4-byte header anyway, what wastage there is will be confined to the end of the allocated block. Any wastage will also be limited to 2 bytes per allocation compared to the current alignment. I've therefore used the __aligned__ type attribute to create a double type that has at least sizeof (size_t) bytes of alignment. I've introduced a new __attribute_aligned__ macro for this. It might seem silly protecting against old or non-GNU compilers here, but the extra alignment is only an optimisation, and having the macro is more in the spirit of the other attribute code.
2007-01-29- sync with glibc (and provide a check for icc).Bernhard Reutner-Fischer
Only affects gcc <2.7 or non-gcc compilers that bailed earlier due to missing int64_t
2006-12-08Take Mike Frysinger's comments into account -- make certain that userEric Andersen
applications stop using _syscall#() and use syscall() instead. Cleanup internal handling of syscall includes to use the correct header file.
2006-12-08Sorry psm but contrary to commit 12927, kernel provided syscallsEric Andersen
are NOT suitable for user-space. The libc ones are the ones that application code must use. If a problem is found with the libc ones, then the libc syscall macros should be fixed.
2006-09-08add some inline funcs for the mlock funcs on no-mmuMike Frysinger
2006-06-07sync with glibcMike Frysinger
2006-06-07sync with glibcMike Frysinger
2006-06-07sync with glibcMike Frysinger
2006-06-07sync with glibcMike Frysinger
2006-05-30Remove uses of all QUEUEDEBUG_* macros.Peter Kjellerstedt
2006-05-06sync with glibcMike Frysinger
2006-03-01Sync w/ glibc and define _STAT_VER/_MKNOD_VER to 0, else some apps will ↵Peter S. Mazinger
consider versioned stat/mknod in uClibc
2006-02-22epoll is linux specificMike Frysinger
2006-02-22sync with glibcMike Frysinger
2006-02-18tweak the idea between having a MMU and actually using itMike Frysinger
2006-01-30Sync w/ glibcPeter S. Mazinger
2006-01-29move linux-specific header to linux subdirMike Frysinger
2006-01-20disable deprecated warnings for some filesMike Frysinger
2006-01-19Joseph S. Myers writes:Eric Andersen
sys/syscall.h uses the IS_IN_libc define before including any header that includes libc-internal.h (where IS_IN_libc is defined). This patch makes sys/syscall.h include features.h to get the IS_IN_libc define where appropriate.
2006-01-18Don't include twice features.h and correct typoPeter S. Mazinger
2005-12-16Use kernel provided syscalls for user-space, the one from libc is not usablePeter S. Mazinger
2005-12-13Sync w/ glibcPeter S. Mazinger
2005-11-30Sync w/ glibcPeter S. Mazinger
2005-11-30Sync w/ glibcPeter S. Mazinger
2005-11-23update license with glibcMike Frysinger
2005-11-18Enable __THROW,_NTH,REDIRECT_NTHPeter S. Mazinger
2005-11-15include pthreads if appropriate ala glibcMike Frysinger
2005-11-04Sync up w/ glibcPeter S. Mazinger
2005-11-03Sync headers w/ glibcPeter S. Mazinger
2005-11-03Sync with glibcPeter S. Mazinger
2005-11-03Sync headers w/ glibcPeter S. Mazinger
2005-10-04Do not stub out functions for mmu-less systems. Hide allEric Andersen
prototypes for functions disabled on mmu-less systems.
2005-07-02sync with glibc versionsMike Frysinger
2005-05-10SHMLBA is now defined by arch dependent bits/shm.h file so removeJoakim Tjernlund
this one. MIPS is the only one defining SHMLBA differently.
2005-01-06Justin Cormack <justin@street-vision.com> writes:Mike Frysinger
Here is a small patch to add epoll support to uclibc. The only thing I am not sure about is what needs to be done (if anything) to make it work on 2.4/2.2 kernels (are the syscall numbers defined but give errors when called or not?). Tested on 2.6, though some other issues prevent more extensive testing at the minute. Mike Frysinger: cleaned up patch and added checks to make sure that the syscall actually exists, returning ENOSYS in cases where it doesn't.
2004-12-20- Added support for 13 new syscalls to allow more things to compile when ↵Ned Ludd
using uClibc. mincore() and the ones for Extended Attributes setxattr(), lsetxattr(), fsetxattr(), getxattr(), lgetxattr(), fgetxattr(), listxattr(), llistxattr(), flistxattr(), removexattr(), lremovexattr(), fremovexattr() which are optional.
2004-10-31Revert Peter's __lib_gettimeofday patch. There's the minor issue ofManuel Novoa III
adding cruft to include/sys/time.h. But also, there's no sense in making changes like this until we decide how we're going to approach the hidden symbol transition.
2004-10-19Peter S. Mazinger writes:Eric Andersen
Hello! Would the attached patch be acceptable (maybe instead of __libc_gettimeofday using __gettimeofday) We have some issues, see http://bugs.gentoo.org/show_bug.cgi?id=65892
2004-08-21Kill off all support for 'gcc -pg' / 'gprof' style profiling. There is both aEric Andersen
size and performance penalty to profiling applications this way, as well as Heisenberg effects, where the act of measuring changes what is measured. There are better tools for doing profiling, such as OProfile, that do not require gcc to instrument the application code. -Erik
2004-07-30Cleanup some dead wood in the header filesEric Andersen
2004-07-27Remove all reference to __GLIBC_HAVE_LONG_LONGEric Andersen
2004-07-26Support linux 2.6.x wide device major/minor numbersEric Andersen
2003-10-24Sigh. It seems some stupid programs expect this...Eric Andersen
2003-10-22It seems we need to also define SI_LOAD_SHIFT since that wasEric Andersen
also exported by the Linux kernel.h header that we do not include.