From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH] sim: ppc: drop obsolete USE_WIN32API check
Date: Thu, 10 Nov 2022 00:14:32 +0700 [thread overview]
Message-ID: <20221109171432.12975-1-vapier@gentoo.org> (raw)
This controls only one thing: how to call mkdir(). The gnulib code
already has a mkdir module that provides this exact logic for us, so
punt the code entirely.
---
sim/ppc/config.in | 5 -----
sim/ppc/configure | 8 --------
sim/ppc/configure.ac | 10 ----------
sim/ppc/emul_unix.c | 4 ----
4 files changed, 27 deletions(-)
diff --git a/sim/ppc/configure.ac b/sim/ppc/configure.ac
index 542e8a105fbb..cd9edd0de4cd 100644
--- a/sim/ppc/configure.ac
+++ b/sim/ppc/configure.ac
@@ -381,16 +381,6 @@ if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then
fi],[sim_xor_endian=""])dnl
-case ${host} in
- *mingw32*)
- AC_DEFINE(USE_WIN32API, 1,
- [Define if we should use the Windows API, instead of the
- POSIX API. On Windows, we use the Windows API when
- building for MinGW, but the POSIX API when building
- for Cygwin.])
- ;;
-esac
-
AC_CONFIG_HEADER(config.h:config.in)
diff --git a/sim/ppc/emul_unix.c b/sim/ppc/emul_unix.c
index 57691d4befcd..1d8b7814ffc6 100644
--- a/sim/ppc/emul_unix.c
+++ b/sim/ppc/emul_unix.c
@@ -760,11 +760,7 @@ do_unix_mkdir(os_emul_data *emul,
if (WITH_TRACE && ppc_trace[trace_os_emul])
printf_filtered ("0x%lx [%s], 0%3o", (long)path_addr, path, mode);
-#ifdef USE_WIN32API
- status = mkdir(path);
-#else
status = mkdir(path, mode);
-#endif
emul_write_status(processor, status, errno);
}
#endif
--
2.38.1
reply other threads:[~2022-11-09 17:14 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221109171432.12975-1-vapier@gentoo.org \
--to=vapier@gentoo.org \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).