natFile.cc (performSetReadOnly): Fix #ifdef test.
2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu> * java/io/natFile.cc (performSetReadOnly): Fix #ifdef test. (performDelete): Fix #endif placement. From-SVN: r41703
This commit is contained in:
parent
e21382befd
commit
dad362764f
@ -1,3 +1,8 @@
|
|||||||
|
2001-04-30 Matt Kraai <kraai@alumni.carnegiemellon.edu>
|
||||||
|
|
||||||
|
* java/io/natFile.cc (performSetReadOnly): Fix #ifdef test.
|
||||||
|
(performDelete): Fix #endif placement.
|
||||||
|
|
||||||
2001-04-27 Zack Weinberg <zackw@stanford.edu>
|
2001-04-27 Zack Weinberg <zackw@stanford.edu>
|
||||||
|
|
||||||
* prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
|
* prims.cc (_Jv_ThisExecutable): Use _Jv_Malloc.
|
||||||
|
@ -227,7 +227,7 @@ java::io::File::performSetReadOnly (void)
|
|||||||
// FIXME?
|
// FIXME?
|
||||||
buf[total] = '\0';
|
buf[total] = '\0';
|
||||||
|
|
||||||
#ifdef HAVE_STAT && HAVE_CHMOD
|
#if defined (HAVE_STAT) && defined (HAVE_CHMOD)
|
||||||
struct stat sb;
|
struct stat sb;
|
||||||
if (::stat (buf, &sb))
|
if (::stat (buf, &sb))
|
||||||
return false;
|
return false;
|
||||||
@ -328,8 +328,8 @@ java::io::File::performDelete (void)
|
|||||||
#ifdef HAVE_RMDIR
|
#ifdef HAVE_RMDIR
|
||||||
if (! ::rmdir (buf))
|
if (! ::rmdir (buf))
|
||||||
return true;
|
return true;
|
||||||
#endif // HAVE_RMDIR
|
|
||||||
if (errno == ENOTDIR)
|
if (errno == ENOTDIR)
|
||||||
|
#endif // HAVE_RMDIR
|
||||||
return ::unlink (buf) == 0;
|
return ::unlink (buf) == 0;
|
||||||
#endif // HAVE_UNLINK
|
#endif // HAVE_UNLINK
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user