2009-05-21 19:01:41 +00:00
|
|
|
#include "rocklibc.h"
|
|
|
|
|
Initial commit of the Samsung YP-R0 port.
This port is a hybrid native/RaaA port. It runs on a embedded linux system,
but is the only application. It therefore can implement lots of stuff that
native targets also implement, while leveraging the underlying linux kernel.
The port is quite advanced. User interface, audio playback, plugins work
mostly fine. Missing is e.g. power mangement and USB (see SamsungYPR0 wiki page).
Included in utils/ypr0tools are scripts and programs required to generate
a patched firmware. The patched firmware has the rootfs modified to load
Rockbox. It includes a early/safe USB mode.
This port needs a new toolchain, one that includes glibc headers and libraries.
rockboxdev.sh can generate it, but e.g. codesourcey and distro packages may
also work.
Most of the initial effort is done by Lorenzo Miori and others (on ABI),
including reverse engineering and patching of the original firmware,
initial drivers, and more. Big thanks to you.
Flyspray: FS#12348
Author: Lorenzo Miori, myself
Merry christmas to ypr0 owners! :)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31415 a1c6a512-1295-4272-9138-f99709370657
2011-12-24 11:56:46 +00:00
|
|
|
#undef strpbrk
|
2020-10-04 02:45:27 +00:00
|
|
|
/* custom strbbrk allowing you to define search len of s*/
|
|
|
|
const char *strpbrk_n(const char *s, int smax, const char *accept) {
|
|
|
|
register int i;
|
|
|
|
register const char *a = accept;
|
|
|
|
for (i=0; __likely(s[i] && i < smax); i++, a=accept)
|
|
|
|
while(__likely(a++[0]))
|
|
|
|
if ((s[i] == a[0]))
|
|
|
|
return &s[i];
|
|
|
|
return NULL;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline char *strpbrk(const char *s, const char *accept) {
|
|
|
|
return (char*)strpbrk_n(s, INT_MAX, accept);
|
2009-05-21 19:01:41 +00:00
|
|
|
}
|