diff options
Diffstat (limited to 'src/sysdep.c')
-rw-r--r-- | src/sysdep.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/sysdep.c b/src/sysdep.c index c7d7eefc2ab..99d3ee60698 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -1472,7 +1472,7 @@ reset_sys_modes (struct tty_display_info *tty_out) { if (noninteractive) { - fflush_unlocked (stdout); + fflush (stdout); return; } if (!tty_out->term_initted) @@ -1495,11 +1495,11 @@ reset_sys_modes (struct tty_display_info *tty_out) tty_turn_off_insert (tty_out); for (int i = cursorX (tty_out); i < FrameCols (tty_out) - 1; i++) - fputc_unlocked (' ', tty_out->output); + putc (' ', tty_out->output); } cmgoto (tty_out, FrameRows (tty_out) - 1, 0); - fflush_unlocked (tty_out->output); + fflush (tty_out->output); if (tty_out->terminal->reset_terminal_modes_hook) tty_out->terminal->reset_terminal_modes_hook (tty_out->terminal); @@ -2783,7 +2783,7 @@ close_output_streams (void) /* Do not close stderr if addresses are being sanitized, as the sanitizer might report to stderr after this function is invoked. */ if (ADDRESS_SANITIZER - ? fflush_unlocked (stderr) != 0 || ferror (stderr) + ? fflush (stderr) != 0 || ferror (stderr) : close_stream (stderr) != 0) _exit (EXIT_FAILURE); } @@ -3184,7 +3184,7 @@ procfs_ttyname (int rdev) char minor[25]; /* 2 32-bit numbers + dash */ char *endp; - for (; !feof_unlocked (fdev) && !ferror_unlocked (fdev); name[0] = 0) + for (; !feof (fdev) && !ferror (fdev); name[0] = 0) { if (fscanf (fdev, "%*s %s %u %s %*s\n", name, &major, minor) >= 3 && major == MAJOR (rdev)) @@ -3234,7 +3234,7 @@ procfs_get_total_memory (void) break; case 0: - while ((c = getc_unlocked (fmem)) != EOF && c != '\n') + while ((c = getc (fmem)) != EOF && c != '\n') continue; done = c == EOF; break; |