public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Mike Frysinger <vapier@gentoo.org>
To: gdb-patches@sourceware.org
Subject: [PATCH 2/4] sim: v850: assume chown is available
Date: Sat, 29 May 2021 13:25:08 -0400	[thread overview]
Message-ID: <20210529172510.16285-2-vapier@gentoo.org> (raw)
In-Reply-To: <20210529172510.16285-1-vapier@gentoo.org>

Now that gnulib provides a wrapper, assume it always exists.
---
 sim/v850/config.in    | 3 ---
 sim/v850/configure    | 7 ++-----
 sim/v850/configure.ac | 2 +-
 sim/v850/simops.c     | 2 --
 4 files changed, 3 insertions(+), 11 deletions(-)

diff --git a/sim/v850/config.in b/sim/v850/config.in
index 74af5e5087e0..b6a4255b404b 100644
--- a/sim/v850/config.in
+++ b/sim/v850/config.in
@@ -13,9 +13,6 @@
 /* Define to 1 if you have the `chmod' function. */
 #undef HAVE_CHMOD
 
-/* Define to 1 if you have the `chown' function. */
-#undef HAVE_CHOWN
-
 /* Define to 1 if you have the <dlfcn.h> header file. */
 #undef HAVE_DLFCN_H
 
diff --git a/sim/v850/configure b/sim/v850/configure
index bc49f306a27f..29999bde7019 100755
--- a/sim/v850/configure
+++ b/sim/v850/configure
@@ -2321,7 +2321,6 @@ as_fn_append ac_func_list " utime"
 as_fn_append ac_func_list " fork"
 as_fn_append ac_func_list " execve"
 as_fn_append ac_func_list " execv"
-as_fn_append ac_func_list " chown"
 as_fn_append ac_header_list " utime.h"
 # Check that the precious variables saved in the cache have kept the same
 # value.
@@ -11220,7 +11219,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11223 "configure"
+#line 11222 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -11326,7 +11325,7 @@ else
   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
   lt_status=$lt_dlunknown
   cat > conftest.$ac_ext <<_LT_EOF
-#line 11329 "configure"
+#line 11328 "configure"
 #include "confdefs.h"
 
 #if HAVE_DLFCN_H
@@ -12057,8 +12056,6 @@ fi
 
 
 
-
-
 # Check whether --enable-werror was given.
 if test "${enable_werror+set}" = set; then :
   enableval=$enable_werror; case "${enableval}" in
diff --git a/sim/v850/configure.ac b/sim/v850/configure.ac
index f2edf1f7c480..892e78b90ff3 100644
--- a/sim/v850/configure.ac
+++ b/sim/v850/configure.ac
@@ -9,7 +9,7 @@ SIM_AC_OPTION_ALIGNMENT(,NONSTRICT_ALIGNMENT)
 SIM_AC_OPTION_RESERVED_BITS
 SIM_AC_OPTION_BITSIZE(32,31)
 
-AC_CHECK_FUNCS_ONCE(chmod utime fork execve execv chown)
+AC_CHECK_FUNCS_ONCE(chmod utime fork execve execv)
 AC_CHECK_HEADERS_ONCE(utime.h)
 
 SIM_AC_OUTPUT
diff --git a/sim/v850/simops.c b/sim/v850/simops.c
index 62a2bbcbb615..689dfe1d0313 100644
--- a/sim/v850/simops.c
+++ b/sim/v850/simops.c
@@ -1859,7 +1859,6 @@ OP_10007E0 (void)
 	  break;
 #endif
 
-#ifdef HAVE_CHOWN
 #ifdef TARGET_SYS_chown
 	case TARGET_SYS_chown:
 	  {
@@ -1870,7 +1869,6 @@ OP_10007E0 (void)
 	  }
 	  break;
 #endif
-#endif
 
 #if HAVE_CHMOD
 #ifdef TARGET_SYS_chmod
-- 
2.31.1


  reply	other threads:[~2021-05-29 17:25 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-29 17:25 [PATCH 1/4] gnulib: import chown Mike Frysinger
2021-05-29 17:25 ` Mike Frysinger [this message]
2021-05-29 17:25 ` [PATCH 3/4] gnulib: import netdb Mike Frysinger
2021-06-07 14:27   ` Tom Tromey
2021-05-29 17:25 ` [PATCH 4/4] gnulib: import select Mike Frysinger
2021-06-07 14:29   ` Tom Tromey
2021-06-08  4:52     ` Mike Frysinger
2021-06-08 12:37       ` Tom Tromey
2021-06-09 12:27       ` Pedro Alves
2021-06-09 16:52         ` Mike Frysinger
2021-06-09 18:12           ` Pedro Alves
2021-06-09 18:32             ` Mike Frysinger
2021-06-09 23:30               ` Pedro Alves
2021-06-10  0:38                 ` Mike Frysinger
2021-06-10 18:11                   ` Tom Tromey
2021-06-07 14:23 ` [PATCH 1/4] gnulib: import chown Tom Tromey
2021-06-07 14:31   ` Eli Zaretskii
2021-06-08  1:15     ` Mike Frysinger
2021-06-08  2:32       ` Eli Zaretskii
2021-06-08  4:14         ` Mike Frysinger

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=20210529172510.16285-2-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).