* edit.h: Don't use macro `stat' - it's already a macro on

Solaris 8 with large file support.
* editcmd.c: Replace stat() with mc_stat().
* edit.c: Likewise.
This commit is contained in:
Pavel Roskin 2001-09-17 21:32:47 +00:00
parent 534e8f432a
commit b4324a149b
4 changed files with 11 additions and 5 deletions

View File

@ -1,3 +1,10 @@
2001-09-17 Pavel Roskin <proski@gnu.org>
* edit.h: Don't use macro `stat' - it's already a macro on
Solaris 8 with large file support.
* editcmd.c: Replace stat() with mc_stat().
* edit.c: Likewise.
2001-09-11 Pavel Roskin <proski@gnu.org> 2001-09-11 Pavel Roskin <proski@gnu.org>
* syntax.c (syntax_text): Remove, it's a separate file now. * syntax.c (syntax_text): Remove, it's a separate file now.

View File

@ -369,7 +369,7 @@ static int check_file_access (WEdit *edit, const char *filename, struct stat *st
return 2; return 2;
} }
} }
if (stat ((char *) filename, st) < 0) { if (mc_stat ((char *) filename, st) < 0) {
close (file); close (file);
/* The file-name is printed after the ':' */ /* The file-name is printed after the ':' */
edit_error_dialog (_ (" Error "), get_sys_error (catstrs (_ (" Cannot get size/permissions info on file: "), filename, " ", 0))); edit_error_dialog (_ (" Error "), get_sys_error (catstrs (_ (" Cannot get size/permissions info on file: "), filename, " ", 0)));
@ -2651,9 +2651,9 @@ void user_menu (WEdit *edit)
/* run shell scripts from menu */ /* run shell scripts from menu */
user_menu_cmd (edit); user_menu_cmd (edit);
if (stat (error_file, &status) == 0) { if (mc_stat (error_file, &status) == 0) {
if (!status.st_size) { /* no error messages */ if (!status.st_size) { /* no error messages */
if (stat (block_file, &status) == 0) if (mc_stat (block_file, &status) == 0)
if (!status.st_size) if (!status.st_size)
return; /* no block messages */ return; /* no block messages */
if (! nomark) /* i.e. we have marked block */ if (! nomark) /* i.e. we have marked block */

View File

@ -341,7 +341,6 @@ void user_menu (WEdit *edit);
#define close(f) mc_close(f) #define close(f) mc_close(f)
#define read(f,b,c) mc_read(f,b,c) #define read(f,b,c) mc_read(f,b,c)
#define write(f,b,c) mc_write(f,b,c) #define write(f,b,c) mc_write(f,b,c)
#define stat(f,s) mc_stat(f,s)
#define mkdir(s,m) mc_mkdir(s,m) #define mkdir(s,m) mc_mkdir(s,m)
#define itoa MY_itoa #define itoa MY_itoa

View File

@ -2269,7 +2269,7 @@ void edit_block_process_cmd (WEdit * edit, const char *shell_cmd, int block)
/* insert result block */ /* insert result block */
if (block) { if (block) {
if (stat (e, &s) == 0) { if (mc_stat (e, &s) == 0) {
if (!s.st_size) { /* no error messages */ if (!s.st_size) { /* no error messages */
if (edit_block_delete_cmd (edit)) if (edit_block_delete_cmd (edit))
return; return;