HomeSort by: relevance | last modified time | path
    Searched defs:dbfd (Results 1 - 2 of 2) sorted by relevancy

  /src/games/canfield/cfscores/
cfscores.c 57 static int dbfd; variable in typeref:typename:int
75 dbfd = open(_PATH_SCORE, O_RDONLY);
76 if (dbfd < 0)
117 if (lseek(dbfd, pos, SEEK_SET) < 0) {
120 i = read(dbfd, &total, sizeof(total));
  /src/games/canfield/canfield/
canfield.c 190 static int dbfd = -1; variable in typeref:typename:int
1392 if (dbfd != -1) {
1393 lseek(dbfd, uid * sizeof(struct betinfo), SEEK_SET);
1394 write(dbfd, (char *)&total, sizeof(total));
1646 dbfd = open(_PATH_SCORE, O_RDWR);
1651 if (dbfd < 0)
1653 if (dbfd < 3)
1655 if (lseek(dbfd, uid * sizeof(struct betinfo), SEEK_SET) < 0) {
1656 close(dbfd);
1657 dbfd = -1
    [all...]

Completed in 14 milliseconds