Home
last modified time | relevance | path

Searched refs:scorepath (Results 1 – 6 of 6) sorted by relevance

/openbsd-src/games/canfield/cfscores/
H A Dcfscores.c54 char scorepath[PATH_MAX]; variable
71 ret = snprintf(scorepath, sizeof(scorepath), "%s/%s", home, in main()
76 dbfd = open(scorepath, O_RDONLY); in main()
78 err(2, "%s", scorepath); in main()
97 warn("lseek %s", scorepath); in printuser()
/openbsd-src/games/tetris/
H A Dtetris.c65 char scorepath[PATH_MAX]; variable
165 ret = snprintf(scorepath, sizeof(scorepath), "%s/%s", home, in main()
236 if (unveil(scorepath, "rwc") == -1) in main()
237 err(1, "unveil %s", scorepath); in main()
H A Dscores.c109 sd = open(scorepath, mint, 0666); in getscores()
115 err(1, "cannot open %s for %s", scorepath, human); in getscores()
118 err(1, "cannot fdopen %s for %s", scorepath, human); in getscores()
122 err(1, "error reading %s", scorepath); in getscores()
126 errx(1, "scorefile %s corrupt", scorepath); in getscores()
H A Dtetris.h174 extern char scorepath[PATH_MAX];
/openbsd-src/games/snake/
H A Dsnake.c99 char scorepath[PATH_MAX]; variable
968 ret = snprintf(scorepath, sizeof(scorepath), "%s/%s", home, in readscores()
973 rawscores = open(scorepath, modint, 0666); in readscores()
977 err(1, "cannot open %s", scorepath); in readscores()
980 err(1, "cannot fdopen %s", scorepath); in readscores()
983 err(1, "error reading %s", scorepath); in readscores()
/openbsd-src/games/canfield/canfield/
H A Dcanfield.c1627 char scorepath[PATH_MAX]; in initall() local
1637 ret = snprintf(scorepath, sizeof(scorepath), "%s/%s", home, in initall()
1642 dbfd = open(scorepath, O_RDWR | O_CREAT, 0644); in initall()