summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/syscalls.c
Commit message (Collapse)AuthorAgeFilesLines
* Split up syscalls.c, since it had grown to be quite large and ugly.Eric Andersen2004-01-211-2280/+0
| | | | -Erik
* Move poll to its own file, rather than being only half in its own fileEric Andersen2004-01-211-10/+1
|
* Massive formatting cleanup, making it easier to parseEric Andersen2004-01-211-431/+503
|
* s/UCLIBC_HAS_MMU/ARCH_HAS_MMU/gEric Andersen2004-01-161-7/+7
|
* The checking Erik added seems to be unnecessary. Without it, I am notManuel Novoa III2004-01-021-72/+5
| | | | seeing any LTP failures.
* Fir errno return when the file/path is NULL or points to an empty string.Eric Andersen2003-12-311-6/+6
| | | | -Erik
* Add extra checks for sigprocmask and rt_sigprocmask syscalls.Eric Andersen2003-12-311-4/+34
| | | | | | | The rt_sigprocmask syscall has broken error handling in 2.4.x kernels, while the sigprocmask syscall appears to get things right. Regardless we should be extra careful, and add these checks.
* In unistd.h, getpgrp() is redirected to __getpgid(), butEric Andersen2003-12-221-1/+3
| | | | we did not have a __getpgid(). Fix that.
* Fix a build problem when using 2.2.x kernel headers.Manuel Novoa III2003-11-161-4/+4
|
* Add support for missing ntp_gettime and ntp_adjtimeEric Andersen2003-11-121-0/+1
|
* Fix up several errors related to filename length and errno thatEric Andersen2003-11-081-33/+118
| | | | | showed up while running the latest LTP testsuite. -Erik
* Be extra careful to check uid and gid converstions to kernel typesEric Andersen2003-11-021-17/+74
|
* Peter S. Mazinger pointed out that I missed a spot. I shouldEric Andersen2003-10-221-1/+3
| | | | stop applying patches by hand...
* Per suggestion and patch from Ken Staton, emulates poll usingEric Andersen2003-10-221-1/+4
| | | | select for older 2.0 kernels where poll is missing.
* Fix fcntl64 when UCLIBC_HAS_LFS is enabled, but __NR_fcntl64Eric Andersen2003-09-171-4/+4
| | | | is not defined.
* Make sure that __syscall_fcntl is extern when LFSEric Andersen2003-09-091-0/+2
| | | | is disabled
* Use __libc_fork for the uClinux fork stubEric Andersen2003-09-081-2/+2
|
* mjn3 pointed out that my brain was not in gear....Eric Andersen2003-09-081-4/+5
|
* A few minor syscall cleanupsEric Andersen2003-09-071-47/+62
|
* Don't use linux/sysctl.h and instead locally define struct __sysctl_args.Eric Andersen2003-08-221-1/+9
|
* Correct included header for ustat.Manuel Novoa III2003-08-201-1/+1
|
* Add support for personality(), prctl(), ustat(), and ulimit()Eric Andersen2003-08-081-2/+29
| | | | | syscalls, which had managed to stay unimplemented thus far. -Erik
* Zou WeiJun noticed a type breaking the stime syscallEric Andersen2003-08-051-1/+1
| | | | -Erik
* Add missing madvise syscallEric Andersen2003-06-271-0/+6
|
* (__libc_open): Fix wacky indentation.Miles Bader2003-05-081-6/+6
|
* Fixup __libc_open to use varargs and match the prototype.David McCullough2003-04-291-2/+7
| | | | | 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.
* cut-n-paste strikes againEric Andersen2003-03-021-1/+1
|
* Add missing alias __modify_ldtEric Andersen2003-03-021-0/+1
|
* Fixup ioctl so we can special case powerpc sillinessEric Andersen2003-02-181-17/+8
|
* Add missing ';'s so powerpc will compileEric Andersen2003-02-151-2/+2
|
* Fix a _ton_ of system call user type/kernel type translationEric Andersen2003-02-151-64/+300
| | | | | problems, causing user space to get scrambled hosed up results. -Erik
* Fixup compile on 2.2.x kernels when UCLIBC_HAS_LFS is enabledEric Andersen2003-02-031-7/+20
|
* Fix scandir64 to not free the wrong pieces of memory (which couldEric Andersen2003-01-281-12/+2
| | | | | | | | 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
* I thought it would be smaller to inline since these funcs are small.Eric Andersen2003-01-241-7/+6
| | | | | Well, not inlining saves 300 bytes, so do that instead. -Erik
* Ok, people are probably going to hate me for this... This commit changes theEric Andersen2003-01-241-14/+100
| | | | | | | | | | | | | | | 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
* Update sigaction syscall names to act more like glibc. Fix the x86 sigactionEric Andersen2003-01-221-6/+6
| | | | | | implementation such that gdb can actually debug signal handlers. Gdb behaves much better now, for example, on multi-threaded apps. -Erik
* Cleanup a few structural wierdnessesEric Andersen2002-11-151-2/+2
|
* Oops. Fix compilation on arm.Eric Andersen2002-11-041-1/+4
| | | | -Erik
* Ok, this commit is _huge_ and its gonna change the world. I'veEric Andersen2002-10-311-12/+12
| | | | | | | | | | | | | | | 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
* Add syscalls: modify_ldt _sysctl setresuid getresuid setresgid getresgid"Steven J. Hill"2002-09-041-0/+50
|
* Fix broken getpriority syscall, per email from Marshall M. MiddenEric Andersen2002-08-281-2/+15
| | | | -Erik
* Revert mode_t change. Sigh. As Manuel so eloquently put it: "this is the wayEric Andersen2002-08-211-2/+1
| | | | | | we hose our code... hose our code... hose our code... this is the way we hose our code... all thanks to glibc" -Erik
* Eliminate wrapping of struct stat and use the kernel versionEric Andersen2002-08-191-130/+23
| | | | | | directly. Eliminate all the attendant baggage. Fix internal types to match kernel types more closely. -Erik
* Fix a number of compile time warnings so that uClibc will build with -Werror ↵David McCullough2002-08-091-0/+1
| | | | | | using a 3.0.4 version of the sh-linux-gcc compiler.
* Rework syscall handling. Rewrite syscall handlers for x86 and ARM.Eric Andersen2002-07-221-71/+17
| | | | | | 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
* Rework pread and pwrite support so it should actually work.Eric Andersen2002-07-151-32/+4
| | | | | Add support for pread64 and pwrite64. Fixup llseek a bit. -Erik
* Fix namespace pollution by hiding statfix and statfix64 byEric Andersen2002-07-071-6/+6
| | | | | prepending an __ to the name. Not perfect but better. -Erik
* Cleanup namespace leaks by prepending __ to global stuff toEric Andersen2002-07-071-2/+3
| | | | | indicate it is (alledgedly) private. -Erik
* Fix support for 2.0.x linux kernels. Oops.Eric Andersen2002-06-211-2/+2
| | | | -Erik
* Cleanup the getcwd implementation (again) since I broke itEric Andersen2002-06-181-7/+1
| | | | | | | 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