0

I have tried all the existing solutions in stack overflow for similar questions : Mostly it was suggested to declare _FILE_OFFSET_BITS to 64. But this did not work.

Sample Code :

dir = opendir("/data/system/dropbox");
if (!dir) {
    PRINT_ERROR("open dir - %s failed. %s\n",
            "dropbox", strerror(errno));
    return -errno;
}

The following is the error(strerror(errno)) I get when I try to open a directory (/data/system/dropbox). I am using uClibc

>> Value too large for defined data type
Sandeep
  • 18,356
  • 16
  • 68
  • 108

1 Answers1

1

If this happens to be on a big-endian machine, you might want to make sure you're using the latest version of uClibc. Your symptoms sound like this bug which was fixed last year.

Edward
  • 6,964
  • 2
  • 29
  • 55
  • I could not see the exact path of the fix in my uclibc. But taking the latest uclibc worked for me. I am now trying to get the patch that did the work for me – Sandeep Nov 10 '14 at 02:00