Signed-off-by: Jens Axboe <axboe@kernel.dk>
echo "CONFIG_CLOCK_MONOTONIC=y" >> $config_host_mak
echo "CONFIG_GETTIMEOFDAY=y" >> $config_host_mak
echo "CONFIG_FADVISE=y" >> $config_host_mak
- echo "CONFIG_STRSEP=y" >> $config_host_mak
echo "CONFIG_SOCKLEN_T=y" >> $config_host_mak
echo "CONFIG_POSIX_FALLOCATE=y" >> $config_host_mak
echo "CONFIG_FADVISE=y" >> $config_host_mak
return _strtoi64(str, endptr, base);
}
-char *strsep(char **stringp, const char *delim)
-{
- char *orig = *stringp;
- BOOL gotMatch = FALSE;
- int i = 0;
- int j = 0;
-
- if (*stringp == NULL)
- return NULL;
-
- while ((*stringp)[i] != '\0') {
- j = 0;
- while (delim[j] != '\0') {
- if ((*stringp)[i] == delim[j]) {
- gotMatch = TRUE;
- (*stringp)[i] = '\0';
- *stringp = *stringp + i + 1;
- break;
- }
- j++;
- }
- if (gotMatch)
- break;
-
- i++;
- }
-
- if (!gotMatch)
- *stringp = NULL;
-
- return orig;
-}
-
int poll(struct pollfd fds[], nfds_t nfds, int timeout)
{
struct timeval tv;