summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/xstatconv.c
Commit message (Collapse)AuthorAgeFilesLines
* fstatat: fix up behavior on 32/64 bit hostsMike Frysinger2009-09-061-0/+19
| | | | | | | | | | | | The fstatat() syscall is a little funky in that it sometimes changes name between 32 and 64 bit hosts, but it should always operate on a 64bit stat structure. So for the fstatat() function, make sure we convert it from a 64bit kstat to a 32bit stat. Along these lines, we need to restore the __xstat32_conv() function. Reported-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* xstatconv: drop useless hidden codeMike Frysinger2009-09-061-4/+2
| | | | | | | The xstatconv.h header already sets up hidden prototypes for us, so no need to duplicate the code. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* enable nanosecond stat support for everyoneMike Frysinger2009-07-261-16/+6
| | | | | | | | | | | | | Fill out the stat structure so that the nanosecond resolution support is always available. There is a small code size increase for a few ports (three additional assignments in xstatconv), but otherwise everything should remain the same. While we're here, punt __old_kernel_stat from the few headers that still define it as it is unused in uClibc and causes compile errors after these nanosecond changes. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* Moving libc_hidden_proto's into #ifdef UCLIBC_INTERNAL blockDenis Vlasenko2008-05-191-1/+1
| | | | | | | | | 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.
* need string.h for memset()Mike Frysinger2007-01-281-0/+1
|
* make sure we clear out the buffer so that random garbage on the stack doesnt ↵Mike Frysinger2007-01-281-2/+6
| | | | screw us up
* Take Mike Frysinger's comments into account -- make certain that userEric Andersen2006-12-081-1/+1
| | | | | applications stop using _syscall#() and use syscall() instead. Cleanup internal handling of syscall includes to use the correct header file.
* Enable _GNU_SOURCE build wide, trying to get consistent interfaces, else IMA ↵Peter S. Mazinger2006-01-221-14/+6
| | | | is a useless attempt
* hide __xstatX_convPeter S. Mazinger2005-12-091-2/+2
|
* whoops, reversed naming of nano sec members ... kernel uses _, user space ↵Mike Frysinger2005-07-171-6/+6
| | | | does not
* syntax cleanupsMike Frysinger2005-07-171-30/+30
|
* rip out previous armeb old-stat abi compat code since arm linux opinion is ↵Mike Frysinger2005-07-171-73/+9
| | | | that the old stat.h abi was for little endian only ... people should use this patch to fix their armeb kernels: http://www.arm.linux.org.uk/developer/patches/viewpatch.php?id=863/1
* with the help of John Bowler, track down the ugly ABI change between 2.4 / ↵Mike Frysinger2005-07-161-3/+69
| | | | 2.6 on big endian arm kernels and work around it best we can at runtime
* add support for passing nano seconds (if arch supports it)Mike Frysinger2005-07-151-2/+11
|
* Patch from Stefan Allius to fix the build whenEric Andersen2003-01-281-0/+2
| | | | large file support is disabled
* Finish up fixing stat and setting various system types.Eric Andersen2003-01-241-43/+1
|
* I thought it would be smaller to inline since these funcs are small.Eric Andersen2003-01-241-2/+14
| | | | | 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-0/+103
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