summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/syscalls.c
AgeCommit message (Collapse)Author
2003-09-17Fix fcntl64 when UCLIBC_HAS_LFS is enabled, but __NR_fcntl64Eric Andersen
is not defined.
2003-09-09Make sure that __syscall_fcntl is extern when LFSEric Andersen
is disabled
2003-09-08Use __libc_fork for the uClinux fork stubEric Andersen
2003-09-08mjn3 pointed out that my brain was not in gear....Eric Andersen
2003-09-07A few minor syscall cleanupsEric Andersen
2003-08-22Don't use linux/sysctl.h and instead locally define struct __sysctl_args.Eric Andersen
2003-08-20Correct included header for ustat.Manuel Novoa III
2003-08-08Add support for personality(), prctl(), ustat(), and ulimit()Eric Andersen
syscalls, which had managed to stay unimplemented thus far. -Erik
2003-08-05Zou WeiJun noticed a type breaking the stime syscallEric Andersen
-Erik
2003-06-27Add missing madvise syscallEric Andersen
2003-05-08(__libc_open): Fix wacky indentation.Miles Bader
2003-04-29Fixup __libc_open to use varargs and match the prototype.David McCullough
On the H8 varargs are rather unusual and if you declare a function with varargs, it had better use them or it won't work.
2003-03-02cut-n-paste strikes againEric Andersen
2003-03-02Add missing alias __modify_ldtEric Andersen
2003-02-18Fixup ioctl so we can special case powerpc sillinessEric Andersen
2003-02-15Add missing ';'s so powerpc will compileEric Andersen
2003-02-15Fix a _ton_ of system call user type/kernel type translationEric Andersen
problems, causing user space to get scrambled hosed up results. -Erik
2003-02-03Fixup compile on 2.2.x kernels when UCLIBC_HAS_LFS is enabledEric Andersen
2003-01-28Fix scandir64 to not free the wrong pieces of memory (which couldEric Andersen
and did cause segfaults) by adjusting the working scandir.c to the the 64 thing. Fix up potential for mismatches between the libc and kernel dirent structures, which could also cause ugly problems. -Erik
2003-01-24I thought it would be smaller to inline since these funcs are small.Eric Andersen
Well, not inlining saves 300 bytes, so do that instead. -Erik
2003-01-24Ok, people are probably going to hate me for this... This commit changes theEric Andersen
type of 'struct stat' and 'struct stat64' so they use consistant types. This change is the result of a bug I found while trying to use GNU tar. The problem was caused by our using kernel types within struct stat and trying to directly compare these values with standard types. Trying an 'if (a < b)' when 'a' is an 'unsigned long' and 'b' is an 'int' leads to very different results then when comparing entities of the same type (i.e. time_t values).... Grumble. Nasty stuff, but I'm glad I got this out of the way now. As a result of this fix, uClibc 0.9.17 will not be binary compatible with earlier releases. I have always warned people this can and will happen. -Erik
2003-01-22Update sigaction syscall names to act more like glibc. Fix the x86 sigactionEric Andersen
implementation such that gdb can actually debug signal handlers. Gdb behaves much better now, for example, on multi-threaded apps. -Erik
2002-11-15Cleanup a few structural wierdnessesEric Andersen
2002-11-04Oops. Fix compilation on arm.Eric Andersen
-Erik
2002-10-31Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen
been working on a new config system on and off for about 6 months now, but I've never been fully satisfied. Well, I'm finally am happy with the new config system, so here it is. This completely removes the old uClibc configuration system, and replaces it with an entirely new system based on LinuxKernelConf, from http://www.xs4all.nl/~zippel/lc/ As it turns out, Linus has just merged LinuxKernelConf into Linux 2.5.45, so it looks like I made the right choice. I have thus far updated only x86. I'll be updating the other architectures shortly. -Erik
2002-09-04Add syscalls: modify_ldt _sysctl setresuid getresuid setresgid getresgid"Steven J. Hill"
2002-08-28Fix broken getpriority syscall, per email from Marshall M. MiddenEric Andersen
-Erik
2002-08-21Revert mode_t change. Sigh. As Manuel so eloquently put it: "this is the wayEric Andersen
we hose our code... hose our code... hose our code... this is the way we hose our code... all thanks to glibc" -Erik
2002-08-19Eliminate wrapping of struct stat and use the kernel versionEric Andersen
directly. Eliminate all the attendant baggage. Fix internal types to match kernel types more closely. -Erik
2002-08-09Fix a number of compile time warnings so that uClibc will build with -Werror ↵David McCullough
using a 3.0.4 version of the sh-linux-gcc compiler.
2002-07-22Rework syscall handling. Rewrite syscall handlers for x86 and ARM.Eric Andersen
Prepare to kill the UNIFIED_SYSCALL option and instead have it be a per arch thing that is either enabled or not for that arch. -Erik
2002-07-15Rework pread and pwrite support so it should actually work.Eric Andersen
Add support for pread64 and pwrite64. Fixup llseek a bit. -Erik
2002-07-07Fix namespace pollution by hiding statfix and statfix64 byEric Andersen
prepending an __ to the name. Not perfect but better. -Erik
2002-07-07Cleanup namespace leaks by prepending __ to global stuff toEric Andersen
indicate it is (alledgedly) private. -Erik
2002-06-21Fix support for 2.0.x linux kernels. Oops.Eric Andersen
-Erik
2002-06-18Cleanup the getcwd implementation (again) since I broke itEric Andersen
last night. Restore malloc-ing when buf=NULL for the syscall version... Move getcwd to libc/sysdeps/linux/common and out of syscalls.c so there is just one getcwd.o object present. -Erik
2002-06-18Eliminate all the pointless globals from getcwd(). DefaultEric Andersen
to using the getcwd syscall instead, when it is present. -Erik
2002-06-17Add support for sigtimedwait and sigwaitinfoEric Andersen
-Erik
2002-05-30Doh! A silly typo broke select...Eric Andersen
-Erik
2002-05-30Fixup some silly bugs I added earlierEric Andersen
-Erik
2002-05-30Make syscalls.c way more generic. Now works on alpha...Eric Andersen
-Erik
2002-05-23Several h8300 updates from Yoshinori Sato <qzb04471@nifty.ne.jp>Eric Andersen
2002-04-25Stupid libgcc.a from gcc 2.95.x uses __write in pure.oEric Andersen
which is a blatent GNU libc-ism... Cope. -Erik
2002-04-17Stub out pread and pwrite when not availableEric Andersen
2002-04-09Remove from syscalls.c, leave just ftruncate64.c and truncate64.cEric Andersen
which have implementations that works... -Erik
2002-04-03m4@brecis.COM noticed a typing problem with the getuid syscall. OOps.Eric Andersen
2002-04-01Patch from Miles Bader to fix the spots I'd messed up.Eric Andersen
2002-03-31Add support for getrlimit64 and setrlimit64. Fix some problemsEric Andersen
with the getrlimit and setrlimit syscalls. -Erik
2002-03-20Doh! search-n-replace bites againEric Andersen
2002-03-20s/off_t/__off_t/gEric Andersen