summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common
Commit message (Collapse)AuthorAgeFilesLines
* - delete_module() takes two arguments on linux-2.6Bernhard Reutner-Fischer2008-10-221-3/+3
| | | | Closes #5644
* - fix copy'n paste errorBernhard Reutner-Fischer2008-10-101-3/+6
|
* - fix return valueBernhard Reutner-Fischer2008-10-101-1/+1
|
* - add signalfd()Bernhard Reutner-Fischer2008-10-102-2/+40
|
* - fix typo in previous commitBernhard Reutner-Fischer2008-10-061-1/+1
|
* - add libc_hidden_def(clock_getres) as spotted by Ned LuddBernhard Reutner-Fischer2008-10-061-1/+1
|
* - Fallback waitid impl (Peter S. Mazinger)Bernhard Reutner-Fischer2008-10-061-5/+40
|
* - tweak inclusion of asm/socket.h for linux-2.4 (Peter S. Mazinger)Bernhard Reutner-Fischer2008-10-061-0/+6
|
* - add long double math wrappers (Ned Ludd)Bernhard Reutner-Fischer2008-10-031-6/+0
|
* - use c89-style commentsBernhard Reutner-Fischer2008-10-032-2/+2
| | | | Closes issue #5194
* - add missing const qualifier for !__NR_sched_setaffinity && HAVE_STUBSBernhard Reutner-Fischer2008-09-301-1/+1
|
* - honour UCLIBC_HAS_SYSLOGBernhard Reutner-Fischer2008-09-291-5/+8
|
* use __UCLIBC_HAS_STUBS__Mike Frysinger2008-09-262-2/+2
|
* - move libm_hidden_proto to the corresponding headers. Remove from callsites.Bernhard Reutner-Fischer2008-09-262-0/+102
| | | | Note that gamma_r is not provided by glibc, perhaps add a SUN specific knob later
* delete/init module functions are not 2.4 specificMike Frysinger2008-09-251-2/+1
|
* - only compile them if the respective syscalls are availableBernhard Reutner-Fischer2008-09-242-3/+23
|
* Add work-around for powerpc.Carmelo Amoroso2008-09-221-2/+2
| | | | | | | Do noy use syscall wrapper based on INTERNAL_SYSCALL. A proper fix would require an arch specific implementation. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix posix_fadvise[64] functions to return the error number in caseCarmelo Amoroso2008-09-182-8/+42
| | | | | | | | of failure instead of -1 and setting errno, according to SuSv3 (IEEE Std 1003.1 2004 edition) specification. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - add sync_file_range()Bernhard Reutner-Fischer2008-09-162-2/+35
| | | | Tested successfully on i386..
* - remove relocations for clock_getresBernhard Reutner-Fischer2008-09-111-0/+1
|
* Hush compiler for extern inline warnings by using Carmelo Amoroso2008-09-091-3/+3
| | | | | | | __extern_inline macro, this also makes gcc 4.3 happy. (Taken from NPTL branch) Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Use getdents syscall if kernel provide supports for thisCarmelo Amoroso2008-09-091-6/+33
| | | | | | | instead of relying upon getdents64. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - remove a couple of duplicate includesBernhard Reutner-Fischer2008-08-274-4/+0
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-2315-20/+20
|
* - fix inline keywordBernhard Reutner-Fischer2008-07-2369-78/+78
|
* - improve UCLIBC_LINUX_SPECIFICBernhard Reutner-Fischer2008-07-141-2/+1
| | | | | compile-tested only, fixes libc/misc/statfs/fstatfs64.c:29: error: 'fstatfs' undeclared here (not in a function)
* New .config option UCLIBC_HAS_STUBS, enables fork() stub on NOMMUDenis Vlasenko2008-07-081-0/+14
|
* Include errno.h from kernel headers instead of using internal errno_values.hCarmelo Amoroso2008-07-022-138/+1
| | | | | | otherwie some errno will be missed (i.e. ENOKEY used in libusb) Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - adds several config-options to allow for turning off certain featuresBernhard Reutner-Fischer2008-06-0343-56/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* - cannot really guarantee proper order, so play safe and compile the problematicBernhard Reutner-Fischer2008-05-301-8/+4
| | | | sources separately for now.
* - Fix gcc glitch with mremap and IMA.Bernhard Reutner-Fischer2008-05-301-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | For -combine, make sure that we don't pollute our non-varargs mremap decl with some vararg decl from later in the TU by putting ours after anybody else who is picking up mman.h. This is admittedly a small work-around.. smallish testcase: $ cat bug.h extern void *mremap (void*, unsigned, unsigned, int, ...); $ cat bug1.c #include "bug.h" int whatever; $ cat bug2.c #define mremap _hidemremap #include "bug.h" #undef mremap void *mremap (void*, unsigned, unsigned, int, void*); $ gcc -c bug1.c bug2.c $ gcc -c bug1.c bug2.c -combine bug2.c:4: error: conflicting types for ‘mremap’ bug.h:1: error: previous declaration of ‘mremap’ was here
* Fix typo in macro for tls access modelCarmelo Amoroso2008-05-291-1/+1
|
* - rename to match the set*() function's filenameBernhard Reutner-Fischer2008-05-221-0/+0
|
* - rename to match the setdomainname filenameBernhard Reutner-Fischer2008-05-221-0/+0
|
* - my manpage sais that init_module, create_module, query_module, delete_moduleBernhard Reutner-Fischer2008-05-211-0/+5
| | | | were removed in linux-2.6
* replace "if (p) free(p)" by just "free(p)" - free(NULL) is safe.Denis Vlasenko2008-05-202-4/+2
|
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-1911-19/+19
| | | | | | | | | in string.h and strings.h. This caught unguarded string ops in libc/inet/ethers.c __ether_line_w() function. I will wait for fallout reports for a week or so, then continue converting more libc_hidden_proto's.
* - add vmsplice, splice, tee (Timo Teräs)Bernhard Reutner-Fischer2008-05-023-0/+84
| | | | - pull bits/fcntl.h from glibc (Timo Teräs)
* Experimentally move libc_hidden_proto(time) to time.h.Denis Vlasenko2008-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The only code change observed is actually a case where we were not doing that as needed: 00000000 <__GI_tzset>: -53 push %ebx -e8 00 00 00 00 call 6 <__GI_tzset+0x6> -5b pop %ebx -81 c3 03 00 00 00 add $0x3,%ebx - R_386_GOTPC _GLOBAL_OFFSET_TABLE_ 6a 00 push $0x0 -e8 fc ff ff ff call 10 <__GI_tzset+0x10> - R_386_PLT32 time +e8 fc ff ff ff call 3 <__GI_tzset+0x3> + R_386_PC32 __GI_time 3d ff 4e 98 45 cmp $0x45984eff,%eax 0f 9e c0 setle %al 0f b6 c0 movzbl %al,%eax 50 push %eax -e8 fc ff ff ff call 21 <__GI_tzset+0x21> +e8 fc ff ff ff call 14 <__GI_tzset+0x14> R_386_PC32 _time_tzset 58 pop %eax 5a pop %edx -5b pop %ebx c3 ret No mass migration of libc_hidden_proto(foo) planned. Lets wait for potential fallout first.
* Fix remap_file_pages prototype and use mman.h headerCarmelo Amoroso2008-04-011-3/+3
|
* Add rempa_file_pages function by Will Newton <will.newton@imgtec.com>Carmelo Amoroso2008-03-211-0/+16
|
* michael_d writes in [#2064]: fix building on linux-2.0 systemsMike Frysinger2008-03-214-6/+21
|
* posix_fadvise64 on 64bit systems take 5 arguments, not 6, as pointed out by ↵Mike Frysinger2008-02-161-1/+1
| | | | skinkie in #2194
* fix typo pointed out by skinkie in #2194Mike Frysinger2008-02-161-1/+1
|
* A patch from our Blackfin repository, originally from Jie Zhang. This fixesBernd Schmidt2008-01-171-3/+0
| | | | | | | | | | | | | a problem where the linker was trying to use the wrong symbol name for the init function. Define SYMBOL_PREFIX as _ in Rules.mak for h8300, bfin, i960, microblaze, and v850. Add -D__UCLIBC_UNDERSCORES__ in CFLAGS for targets which define SYMBOL_PREFIX as _. Remove defines and undefs from uClibc_arch_features.h of each target. Add $(SYMBOL_PREFIX) to __uClibc_init when passed by ld option -init.
* change NO_UNDERSCORES to just UNDERSCORES so as to be less confusing when ↵Mike Frysinger2008-01-081-1/+1
| | | | doing double negatives
* this code does not actually rely on INTERNAL_SYSCALLMike Frysinger2008-01-051-3/+1
|
* if an arch does not provide __NR_mmap, fall back to __NR_mmap2 (this just ↵Mike Frysinger2008-01-051-0/+29
| | | | generalizes what Blackfin was already doing)
* add BOTHER define from termios2Mike Frysinger2008-01-051-0/+1
|
* implement semtimedop for #927Mike Frysinger2008-01-051-17/+0
|