summaryrefslogtreecommitdiffstats
path: root/include/sys
Commit message (Collapse)AuthorAgeFilesLines
* linux_specific: handle accept4 and pipe2Bernhard Reutner-Fischer2011-05-121-1/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* accept4: Implement cancellationBernhard Reutner-Fischer2011-05-111-0/+9
| | | | | | | .. and add proper prototype, move it into it's own obj and other such cleanups. Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* update some headersPeter S. Mazinger2011-03-031-17/+13
| | | | | | | | Sync some headers with glibc. realpath is an XSI extension in SuSv4, add back guard and update comment, since it seems to allow != NULL in second arg. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
* nptl: Fix libpthread build when UCLIBC_LINUX_SPECIFIC is disabledCarmelo Amoroso2010-09-201-1/+1
| | | | | | | | | | | | | | | | | NPTL library needs both madvise and statfs symbols, that are guarded by UCLIBC_LINUX_SPECIFIC option. This fix provides these symbols too when NPTL is used, indipendently by UCLIBC_LINUX_SPECIFIC choice. Otherwise libpthread link fails as below: LD libpthread-0.9.32-git.so libpthread/nptl/libpthread_so.a(pthread_create.oS): In function `__free_tcb': pthread_create.c:(.text+0x1184): undefined reference to `madvise' libpthread/nptl/libpthread_so.a(sem_open.oS): In function `__where_is_shmfs': sem_open.c:(.text+0x764): undefined reference to `statfs' collect2: ld returned 1 exit status make: *** [lib/libpthread.so] Error 1 Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sysconf: implement _SC_NPROCESSORS_CONF, _SC_NPROCESSORS_ONLNBernhard Reutner-Fischer2010-08-051-3/+3
| | | | | | perusing the config parser Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* lutimes: add lutimes supportVladimir Zapolskiy2010-07-271-1/+3
| | | | | | | This patch adds lutimes library call support. Signed-off-by: Vladimir Zapolskiy <vzapolskiy@gmail.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* include/param.h: Dont use ARG_MAX from kernel headersKhem Raj2010-07-091-4/+14
| | | | | | | * Use getrlimit for ARG_MAX in sysconf on nptl. * Define NCARGS directly instead of ARG_MAX Signed-off-by: Khem Raj <raj.khem@gmail.com>
* futimens: add functionBernhard Reutner-Fischer2009-11-201-0/+1
| | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* sync some headers and disable unused prototypesPeter S. Mazinger2009-11-198-18/+37
| | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* msgrcv is of type ssize_tPeter S. Mazinger2009-11-191-3/+7
| | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* no need for bits/syscalls.h on targetPeter S. Mazinger2009-11-191-5/+5
| | | | | Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
* sys/mount.h: sync with latest glibcMike Frysinger2009-09-151-1/+5
| | | | | | Newer glibc adds a few more MNT_* flags, so import them. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* first pass at implementing *at funcsMike Frysinger2009-07-202-8/+28
| | | | | | | Tested basic functionality with coreutils and things seem to work. At least gives us a basis to jump from. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* sync a few headers with glibc (no functional changes)Mike Frysinger2009-07-201-4/+5
| | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* syscall: unify common syscall definesMike Frysinger2009-07-081-0/+1
| | | | | | | | | Unify all the common syscall defines in syscalls-common.h and scrub all the duplicated code from relevant ports. This should also make converting existing ports to INLINE_SYSCALL() much easier as they don't have to get lost in all the unrelated noise, as well as creating new ports. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* - whitespace cleanup; no obj-code changesBernhard Reutner-Fischer2008-12-295-13/+13
|
* Remove the rest of "bounded pointers" scaffolding. gcc website says"Denis Vlasenko2008-12-131-8/+0
| | | | | | "Bounds Checking Projects... This project has been abandoned" for four years at least.
* - remove fstatfs() and statfs() related headers upon requestBernhard Reutner-Fischer2008-11-261-2/+0
|
* Last portion of libc_hidden_proto removal.Denis Vlasenko2008-11-2014-0/+42
| | | | | Appears to build fine (several .configs tried)
* next portion of libc_hidden_proto removalDenis Vlasenko2008-11-206-0/+8
|
* - Remove linux-specific prototypes if asked to.Bernhard Reutner-Fischer2008-11-152-1/+4
|
* - revert wrong r24049Bernhard Reutner-Fischer2008-11-152-4/+1
|
* - Remove linux-specific prototypes if asked to.Bernhard Reutner-Fischer2008-11-152-1/+4
|
* - add signalfd()Bernhard Reutner-Fischer2008-10-101-0/+86
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-231-1/+1
|
* - fix inline keywordBernhard Reutner-Fischer2008-07-231-5/+5
|
* Heed a warning: "string" was assigned to char*, changing that to const char*Denis Vlasenko2008-06-061-2/+2
|
* - adds several config-options to allow for turning off certain featuresBernhard Reutner-Fischer2008-06-034-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | like o UCLIBC_HAS_GNU_ERROR o UCLIBC_HAS_BSD_ERR o UCLIBC_HAS_PTY o UCLIBC_HAS_GETPT (1) o UCLIBC_SYSCALL_STUBS o UCLIBC_SYSCALL_STUB_WARNING o UCLIBC_LINUX_SPECIFIC (2) o UCLIBC_BSD_SPECIFIC (3) o UCLIBC_NTP_LEGACY (4) o UCLIBC_SV4_DEPRECATED (5) o UCLIBC_HAVE_REALTIME (6) o UCLIBC_HAVE_ADVANCED_REALTIME (7) o UCLIBC_HAVE_EPOLL (8) o UCLIBC_HAVE_XATTR (9) o UCLIBC_HAVE_PROFILING (10) (1) make non-standard getpt optional and implement standard posix_openpt (2) fstatfs(), inotify_*(), ioperm(), iopl(), madvise(), modify_ldt(), personality() ppoll(), setresuid() (3) mincore(), getdomainname(), setdomainname() (4) ntp_adjtime(), ntp_gettime() aliases (5) ustat() [use statfs(2) in your code instead] (6) All marked as "(REALTIME)" in SUSv3 (7) All marked as "(ADVANCED REALTIME)" in SUSv3 (8) epoll_create(), epoll_ctl(), epoll_wait() (9) all Extended Attributes (10) helpers for gcc's -finstrument-functions - Fixes _dl_exit() - Implements sleep(3) for !UCLIBC_HAVE_REALTIME - Implements usleep(3) for !UCLIBC_HAVE_REALTIME - adds #warning about incorrect posix_fadvise{,64}() - removes unused and unwanted uselib() Net outcome is that an allnoconfig with HAVE_SHARED is now about 88k instead of formerly 130k.
* Enable remap_file_pages prototype controlled by __USE_GNU define as well as ↵Carmelo Amoroso2008-03-261-11/+10
| | | | mremap, instead of __USE_MISC according to glibc. Missing prototype was spotted out by Peter Mazinger
* fetch queue.h from latest freebsd cvsMike Frysinger2008-01-091-383/+444
|
* use the __extern_always_inline define from cdefs.h instead of duplicating ↵Mike Frysinger2008-01-061-2/+4
| | | | gcc version checking in every pt-machine.h header ... while __extern_always_inline should work fine, i think what is intended is __extern_inline ... should double check later
* sync with glibc to get the extern inline directiveMike Frysinger2008-01-051-2/+38
|
* implement semtimedop for #927Mike Frysinger2008-01-051-1/+12
|
* syslog.h: allow prioritynames[]/facilitynames[] to be defined constDenis Vlasenko2007-07-141-0/+6
| | | | | (selectable by #defining SYSLOG_NAMES_CONST)
* include stddef.h to get NULL definition.Khem Raj2007-03-011-0/+2
|
* add support for ppoll() and emulate poll() with it when __NR_poll does not existMike Frysinger2007-02-281-2/+24
|
* stub out msync() for no-mmu as wellMike Frysinger2007-02-211-2/+10
|
* Richard Sandiford writes:Mike Frysinger2007-01-291-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* - sync with glibc (and provide a check for icc).Bernhard Reutner-Fischer2007-01-291-2/+6
| | | | Only affects gcc <2.7 or non-gcc compilers that bailed earlier due to missing int64_t
* Take Mike Frysinger's comments into account -- make certain that userEric Andersen2006-12-081-5/+13
| | | | | applications stop using _syscall#() and use syscall() instead. Cleanup internal handling of syscall includes to use the correct header file.
* Sorry psm but contrary to commit 12927, kernel provided syscallsEric Andersen2006-12-081-7/+5
| | | | | | 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.
* add some inline funcs for the mlock funcs on no-mmuMike Frysinger2006-09-081-0/+12
|
* sync with glibcMike Frysinger2006-06-072-9/+51
|
* sync with glibcMike Frysinger2006-06-071-3/+5
|
* sync with glibcMike Frysinger2006-06-071-2/+2
|
* sync with glibcMike Frysinger2006-06-071-2/+11
|
* Remove uses of all QUEUEDEBUG_* macros.Peter Kjellerstedt2006-05-301-21/+0
|
* sync with glibcMike Frysinger2006-05-062-55/+392
|
* Sync w/ glibc and define _STAT_VER/_MKNOD_VER to 0, else some apps will ↵Peter S. Mazinger2006-03-011-11/+29
| | | | consider versioned stat/mknod in uClibc
* epoll is linux specificMike Frysinger2006-02-221-110/+0
|