MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / waitForRemove

Method waitForRemove

other_src/astyle/src/astyle_main.cpp:2271–2284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2269}
2270
2271int ASConsole::waitForRemove(const char* newFileName) const
2272{
2273 struct stat stBuf;
2274 int seconds;
2275 // sleep a max of 20 seconds for the remove
2276 for (seconds = 1; seconds <= 20; seconds++)
2277 {
2278 sleep(1);
2279 if (stat(newFileName, &stBuf) != 0)
2280 break;
2281 }
2282 errno = 0;
2283 return seconds;
2284}
2285
2286// From The Code Project http://www.codeproject.com/string/wildcmp.asp
2287// Written by Jack Handy - jakkhandy@hotmail.com

Callers

nothing calls this directly

Calls 1

statClass · 0.70

Tested by

no test coverage detected