[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] "mormalize_inc_dirs"
From: |
Christian Jullien |
Subject: |
Re: [Tinycc-devel] "mormalize_inc_dirs" |
Date: |
Sat, 7 Nov 2015 08:18:05 +0100 |
Hum! You can:
fopen("dir-to-test/__deleteme__", "w");
If it succeeds, dir-to-test exists then call fclose and
remove("dir-to-test/__deleteme__").
Use some random name instead of __deleteme__
It does not just test that directory exists but also it is writable.
If you know that a file may exist in the directory you're looking for, use
fopen "r" on that file.
It does not totally replace stat or fstat.
Some system implement access(...) you can try.
C.
-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of
Sergey Korshunoff
Sent: samedi 7 novembre 2015 01:33
To: address@hidden
Subject: Re: [Tinycc-devel] "mormalize_inc_dirs"
> WinXP SP3 32bit, MinGW(tcc self compilation test) Using the compiled
> tcc to recompile tcc itself fails with windows.h not found.
> I have to reverting this commit to recover.
Anyone know solution for stat? From Google:
"stat" not working on Windows XP using v14_xp platform ...
stat() does not work for me on Cygwin/Windows - C / C++
Portable way to check if directory exists?
_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
- [Tinycc-devel] "mormalize_inc_dirs", Edmund Grimley Evans, 2015/11/06
- Re: [Tinycc-devel] "mormalize_inc_dirs", Roy Tam, 2015/11/06
- Re: [Tinycc-devel] "mormalize_inc_dirs", Sergey Korshunoff, 2015/11/06
- Re: [Tinycc-devel] "mormalize_inc_dirs", Roy Tam, 2015/11/06
- Re: [Tinycc-devel] "mormalize_inc_dirs", Sergey Korshunoff, 2015/11/06
- Re: [Tinycc-devel] "mormalize_inc_dirs",
Christian Jullien <=
- Re: [Tinycc-devel] "mormalize_inc_dirs", Edmund Grimley Evans, 2015/11/07
- Re: [Tinycc-devel] "mormalize_inc_dirs", avih, 2015/11/07
- Re: [Tinycc-devel] "mormalize_inc_dirs", Christian Jullien, 2015/11/07
- Re: [Tinycc-devel] "mormalize_inc_dirs", avih, 2015/11/07
- Re: [Tinycc-devel] "mormalize_inc_dirs", Sergey Korshunoff, 2015/11/07
- Re: [Tinycc-devel] "mormalize_inc_dirs", Sergey Korshunoff, 2015/11/07
- Re: [Tinycc-devel] "mormalize_inc_dirs", avih, 2015/11/07
- Re: [Tinycc-devel] "mormalize_inc_dirs", Sergey Korshunoff, 2015/11/07
- Re: [Tinycc-devel] "mormalize_inc_dirs", avih, 2015/11/07