Lines Matching refs:stbuf
61 static int CheckDrive(char *drive, struct stat *stbuf)
76 if ( stat(drive, stbuf) < 0 ) {
104 static void AddDrive(char *drive, struct stat *stbuf)
114 if ( stbuf->st_rdev == SDL_cdmode[i] ) {
129 SDL_cdmode[i] = stbuf->st_rdev;
158 struct stat stbuf;
187 if ( CheckDrive(SDLcdrom, &stbuf) > 0 ) {
188 AddDrive(SDLcdrom, &stbuf);
220 if ( CheckDrive(drive, &stbuf) > 0 )
221 AddDrive(drive, &stbuf);