struct stat st;
int r;
+#if defined(_WIN32) && !defined(__CYGWIN__)
+ (void)mode; /* UNUSED */
+#endif
assertion_count(file, line);
r = lstat(pathname, &st);
if (r != 0) {
struct stat st;
int r;
+#if defined(_WIN32) && !defined(__CYGWIN__)
+ (void)mode; /* UNUSED */
+#endif
assertion_count(file, line);
r = lstat(pathname, &st);
if (r != 0 || !S_ISREG(st.st_mode)) {
const char *pathname, const char *contents)
{
#if defined(_WIN32) && !defined(__CYGWIN__)
+ (void)pathname; /* UNUSED */
+ (void)contents; /* UNUSED */
assertion_count(file, line);
/* Windows sort-of has real symlinks, but they're only usable
* by privileged users and are crippled even then, so there's
{
assertion_count(file, line);
#if defined(_WIN32) && !defined(__CYGWIN__)
+ (void)mode; /* UNUSED */
if (0 == _mkdir(dirname))
return (1);
#else
#if defined(_WIN32) && !defined(__CYGWIN__)
/* TODO: Rework this to set file mode as well. */
FILE *f;
+ (void)mode; /* UNUSED */
assertion_count(file, line);
f = fopen(path, "wb");
if (f == NULL) {
struct stat st;
int r;
+#if defined(_WIN32) && !defined(__CYGWIN__)
+ (void)mode; /* UNUSED */
+#endif
assertion_count(file, line);
r = lstat(pathname, &st);
if (r != 0) {
struct stat st;
int r;
+#if defined(_WIN32) && !defined(__CYGWIN__)
+ (void)mode; /* UNUSED */
+#endif
assertion_count(file, line);
r = lstat(pathname, &st);
if (r != 0 || !S_ISREG(st.st_mode)) {
const char *pathname, const char *contents)
{
#if defined(_WIN32) && !defined(__CYGWIN__)
+ (void)pathname; /* UNUSED */
+ (void)contents; /* UNUSED */
assertion_count(file, line);
/* Windows sort-of has real symlinks, but they're only usable
* by privileged users and are crippled even then, so there's
{
assertion_count(file, line);
#if defined(_WIN32) && !defined(__CYGWIN__)
+ (void)mode; /* UNUSED */
if (0 == _mkdir(dirname))
return (1);
#else
#if defined(_WIN32) && !defined(__CYGWIN__)
/* TODO: Rework this to set file mode as well. */
FILE *f;
+ (void)mode; /* UNUSED */
assertion_count(file, line);
f = fopen(path, "wb");
if (f == NULL) {