mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
* 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:
parent
534e8f432a
commit
b4324a149b
@ -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>
|
||||
|
||||
* syntax.c (syntax_text): Remove, it's a separate file now.
|
||||
|
@ -369,7 +369,7 @@ static int check_file_access (WEdit *edit, const char *filename, struct stat *st
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
if (stat ((char *) filename, st) < 0) {
|
||||
if (mc_stat ((char *) filename, st) < 0) {
|
||||
close (file);
|
||||
/* The file-name is printed after the ':' */
|
||||
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 */
|
||||
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 (stat (block_file, &status) == 0)
|
||||
if (mc_stat (block_file, &status) == 0)
|
||||
if (!status.st_size)
|
||||
return; /* no block messages */
|
||||
if (! nomark) /* i.e. we have marked block */
|
||||
|
@ -341,7 +341,6 @@ void user_menu (WEdit *edit);
|
||||
#define close(f) mc_close(f)
|
||||
#define read(f,b,c) mc_read(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 itoa MY_itoa
|
||||
|
||||
|
@ -2269,7 +2269,7 @@ void edit_block_process_cmd (WEdit * edit, const char *shell_cmd, int block)
|
||||
|
||||
/* insert result block */
|
||||
if (block) {
|
||||
if (stat (e, &s) == 0) {
|
||||
if (mc_stat (e, &s) == 0) {
|
||||
if (!s.st_size) { /* no error messages */
|
||||
if (edit_block_delete_cmd (edit))
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user