I searched through all the mail archives to see if I could find someone 
that has ported SQLite to vxWorks in kernel mode.  Apparently, there are a 
few folks attempting it.  And fewer succeeding at it.

I found an article published by ZhiHua Huang where he describes the mods 
he made to port SQLite 3.6.23.1 to vxWorks 6.5 
http://www.mail-archive.com/sqlite-users@sqlite.org/msg51531.html 

Using that as a starting point, I modified my files but I get the 
following errors:
"C:/CCViews/Mintz_NetlinxUCS_L7x/NetLinxUCS/SQLite3_LIB/sqlite3.c", line 
27262: error (dcc:1633): parse error  near 'struct'
"C:/CCViews/Mintz_NetlinxUCS_L7x/NetLinxUCS/SQLite3_LIB/sqlite3.c", line 
27262: error (dcc:1206): syntax error
"C:/CCViews/Mintz_NetlinxUCS_L7x/NetLinxUCS/SQLite3_LIB/sqlite3.c", line 
27262: fatal error (dcc:1340): can't recover from earlier errors

This is the code it's complaining about.  The "struct statfs fsInfo;" line 
is line 27262.

#ifdef FD_CLOEXEC
  fcntl(fd, F_SETFD, fcntl(fd, F_GETFD, 0) | FD_CLOEXEC);
#endif

  noLock = eType!=SQLITE_OPEN_MAIN_DB;

 
#if defined(__APPLE__) || SQLITE_ENABLE_LOCKING_STYLE
  struct statfs fsInfo;
  if( fstatfs(fd, &fsInfo) == -1 ){
    ((unixFile*)pFile)->lastErrno = errno;
    if( dirfd>=0 ) close(dirfd); /* silently leak if fail, in error */
    close(fd); /* silently leak if fail, in error */
    return SQLITE_IOERR_ACCESS;
  }
  if (0 == strncmp("msdos", fsInfo.f_fstypename, 5)) {
    ((unixFile*)pFile)->fsFlags |= SQLITE_FSFLAGS_IS_MSDOS;
  }
#endif

Any ideas?

-Scott
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to