Lines Matching refs:stbuf
66 static int CheckDrive(char *drive, struct stat *stbuf)
72 if ( stat(drive, stbuf) < 0 ) {
78 if ( S_ISCHR(stbuf->st_mode) || S_ISBLK(stbuf->st_mode) ) {
102 static void AddDrive(char *drive, struct stat *stbuf)
111 if ( stbuf->st_rdev == SDL_cdmode[i] ) {
126 SDL_cdmode[i] = stbuf->st_rdev;
148 struct stat stbuf;
176 if ( CheckDrive(SDLcdrom, &stbuf) > 0 ) {
177 AddDrive(SDLcdrom, &stbuf);
205 switch (CheckDrive(drive, &stbuf)) {
208 AddDrive(drive, &stbuf);
221 if ( CheckDrive(drive, &stbuf) > 0 ) {
222 AddDrive(drive, &stbuf);