MCPcopy Create free account
hub / github.com/dirkvranckaert/AndroidDecompiler / waitForRemove

Method waitForRemove

astyle/src/astyle_main.cpp:2338–2351  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2336}
2337
2338int ASConsole::waitForRemove(const char* newFileName) const
2339{
2340 struct stat stBuf;
2341 int seconds;
2342 // sleep a max of 20 seconds for the remove
2343 for (seconds = 1; seconds <= 20; seconds++)
2344 {
2345 sleep(1);
2346 if (stat(newFileName, &stBuf) != 0)
2347 break;
2348 }
2349 errno = 0;
2350 return seconds;
2351}
2352
2353// From The Code Project http://www.codeproject.com/string/wildcmp.asp
2354// Written by Jack Handy - jakkhandy@hotmail.com

Callers

nothing calls this directly

Calls 1

statClass · 0.85

Tested by

no test coverage detected