Files
xen/extras/mini-os/include/posix/strings.h
T
Keir Fraser 7f1f6b865b 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>
2009-05-28 09:41:59 +01:00

13 lines
241 B
C

#ifndef _POSIX_STRINGS_H
#define _POSIX_STRINGS_H
#include <string.h>
#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 */