use unlink() instead of remove()
This commit is contained in:
parent
1a9ef50edf
commit
026a471d51
|
|
@ -1,3 +1,10 @@
|
|||
2011-08-21 Robert Larice
|
||||
* src/main.c ,
|
||||
* src/frontend/runcoms.c ,
|
||||
* src/frontend/runcoms2.c :
|
||||
use unlink() instead of remove()
|
||||
thanks to Marcel Hendrix
|
||||
|
||||
2011-08-20 Robert Larice
|
||||
* src/spicelib/devices/adms/admst/ngspice.xml :
|
||||
#7/7 use a subdirectory "ngspice" for includes to create a uniq namespace
|
||||
|
|
|
|||
|
|
@ -343,7 +343,7 @@ dosim(
|
|||
if (rawfileFp){
|
||||
if (ftell(rawfileFp)==0) {
|
||||
(void) fclose(rawfileFp);
|
||||
(void) remove(wl->wl_word);
|
||||
(void) unlink(wl->wl_word);
|
||||
} else {
|
||||
(void) fclose(rawfileFp);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -145,7 +145,7 @@ com_resume(wordlist *wl)
|
|||
if (rawfileFp){
|
||||
if (ftell(rawfileFp)==0) {
|
||||
(void) fclose(rawfileFp);
|
||||
(void) remove(last_used_rawfile);
|
||||
(void) unlink(last_used_rawfile);
|
||||
} else {
|
||||
(void) fclose(rawfileFp);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1235,7 +1235,7 @@ main(int argc, char **argv)
|
|||
}
|
||||
|
||||
#if defined(HAS_WINDOWS) || defined(_MSC_VER) || defined(__MINGW32__)
|
||||
if (tempfile && tpf && remove(tpf))
|
||||
if (tempfile && tpf && unlink(tpf))
|
||||
perror("Could not delete temp file");
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue