aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-05-28 09:41:59 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-05-28 09:41:59 +0100
commit7f1f6b865b0d72977ee517873cedcba71744b099 (patch)
tree64759c37e31368f30322e63ef802f64430d3f610 /extras/mini-os/include
parent18062591742c7c4f711678d8c2db4f1518965b6a (diff)
downloadxen-7f1f6b865b0d72977ee517873cedcba71744b099.tar.gz
xen-7f1f6b865b0d72977ee517873cedcba71744b099.tar.bz2
xen-7f1f6b865b0d72977ee517873cedcba71744b099.zip
minios: implement ffs, ffsl and ffsll.
The first function is compiled only in case minios is compiled without newlib, since newlib already provides an implementation for ffs. On the other hand ffsl and ffsll are always compiled because newlib misses those functions. This patch also provides an implementation for __ffsti2 and __ffsdi2 because they are needed by gcc in order to successfully link ffsll. Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'extras/mini-os/include')
-rw-r--r--extras/mini-os/include/posix/strings.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/extras/mini-os/include/posix/strings.h b/extras/mini-os/include/posix/strings.h
index 8619ba2865..4957c41ff7 100644
--- a/extras/mini-os/include/posix/strings.h
+++ b/extras/mini-os/include/posix/strings.h
@@ -5,4 +5,8 @@
#define bzero(ptr, size) (memset((ptr), '\0', (size)), (void) 0)
+int ffs (int i);
+int ffsl (long int li);
+int ffsll (long long int lli);
+
#endif /* _POSIX_STRINGS_H */