summaryrefslogtreecommitdiffstats
path: root/libc/sysdeps/linux/common/xstatconv.c
Commit message (Collapse)AuthorAgeFilesLines
* fstatat: fix up behavior on 32/64 bit hostsMike Frysinger2009-09-181-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* xstatconv: drop useless hidden codeMike Frysinger2009-09-181-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* enable nanosecond stat support for everyoneMike Frysinger2009-08-191-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> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly ↵Carmelo Amoroso2008-07-091-3/+8
| | | | NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Merge from trunk."Steven J. Hill"2006-02-281-14/+6
|
* Finish up changes for sigaction and NPTL."Steven J. Hill"2005-12-101-2/+2
|
* Finalize the merge from the trunk. There are more files to be"Steven J. Hill"2005-07-301-31/+42
| | | | merged, but they will be done manually.
* 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