summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* michael_d in #1849 writes: The getcwd() implementation in the absence of a ↵Mike Frysinger2008-01-051-1/+1
| | | | getcwd syscall has an off-by-one allocation bug. As a result, sometimes the returned string has garbage at the end.
* Poll with zero timeoutJoakim Tjernlund2007-10-231-0/+4
| | | | | | | | | | Jean-Christian de Rivaz writes: The attached patch solve an issue I faced while using the libdbus-glib waiting for a D-Bus message or the end of a glib timer at the same time. This specific case of use generate a poll call with a zero timeout. On platformes with the glibc a zero timeout poll return immetiately even if there is no file descriptor event. But on platformes with uClibc a zero timeout poll block until a file descriptor event occurs.
* if __NR__newselect and __NR_select are unavailable, fall back to __NR_pselect6Mike Frysinger2007-09-151-0/+24
|
* include/sys/mman.h says that msync exists only on MMU.Denis Vlasenko2007-07-181-0/+4
| | | | | Make msync.c agree on this.
* Enable all of the remaining baud rates. All of the other architectures have ↵"Steven J. Hill"2007-07-181-4/+0
| | | | them enabled, so let's go all the way. There was a quick discussion on IRC about making the max baud rate configurable. That requires a bunch of #ifdef salting throughout all of the 'termios.h' files for the pre-processor to chew on. I'm going to pass on that for now.
* Atsushi Nemoto writes:Mike Frysinger2007-05-312-4/+2
| | | | | http://www.opengroup.org/onlinepubs/009695399/functions/posix_fadvise.html states it returns error code instead of setting errno.
* Jean-Christian de Rivaz writes:Mike Frysinger2007-05-251-1/+1
| | | | | | | | I actually suspect this code into the file uClibc/libc/sysdeps/linux/common/poll.c: tval.tv_nsec = (timeout % 1000) *1000; <==== make only usec! From milisecond this really needs a * 1000000 to make nanosecond. Without this a 1100 milisecond timeout is converted into a 1 seconde and 100 microsecond timeout! This can explain the weird result of the test code.
* Restored indentation.Peter Kjellerstedt2007-05-151-7/+8
|
* Made it compile again.Peter Kjellerstedt2007-05-151-1/+1
|
* Fix arm mmap when using mmap2 syscall. Fixes bug #1303Khem Raj2007-05-151-2/+7
|
* Bernd Schmidt writes: The following patch is needed for libc to be able to ↵Mike Frysinger2007-03-181-0/+3
| | | | emulate poll with ppoll.
* svn 17941/17943 broke the build. 18032 made the threaded case compile Rob Landley2007-03-081-5/+0
| | | | | | again, this makes the non-threaded case compile again. I have no idea if this is the proper fix, I'm just tired if it not compiling for two weeks.
* Add posix_fadvise posix_fadvise64 for arm.Khem Raj2007-03-062-0/+33
| | | | | Import INTERNAL_SYSCALL macro for i386 from glibc. Use above macro in posix_fadvise implementation if an arch defines it.
* Should be __sigset_t instead of sigset_t.Khem Raj2007-03-011-2/+2
|
* add support for ppoll() and emulate poll() with it when __NR_poll does not existMike Frysinger2007-02-282-0/+64
|
* ifdef out RTLD defines we dont actually support nor are in POSIXMike Frysinger2007-02-281-0/+2
|
* Impl. linux syscalls sched_getaffinity/sched_setaffinity butJoakim Tjernlund2007-02-122-0/+130
| | | | | | | | | protect its use by #ifdef INTERNAL_SYSCALL since not all arch's has INTERNAL_SYSCALL. All arch's not having INTERNAL_SYSCALL in libc/sysdeps/linux/<arch>/bits/syscalls.h should get an update from glibc.
* Make sure struct stat is identical to struct stat64 ifPeter Kjellerstedt2007-02-021-2/+4
| | | | | | __USE_FILE_OFFSET64 is defined. This was the case for all architectures except those that use packed structures by default (i.e., CRIS).
* - s/if USE___THREAD/if defined USE___THREAD && USE___THREAD/gBernhard Reutner-Fischer2007-01-291-2/+2
|
* sync with glibc as pointed out by Bernhard FischerMike Frysinger2007-01-281-3/+2
|