[前][次][番号順一覧][スレッド一覧]

ruby-changes:51654

From: normal <ko1@a...>
Date: Fri, 6 Jul 2018 11:15:04 +0900 (JST)
Subject: [ruby-changes:51654] normal:r63866 (trunk): thread.c: our fake ppoll implementation is static

normal	2018-07-06 11:15:00 +0900 (Fri, 06 Jul 2018)

  New Revision: 63866

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63866

  Log:
    thread.c: our fake ppoll implementation is static
    
    Rename it to "ruby_ppoll" so it looks more obvious in debuggers.

  Modified files:
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 63865)
+++ thread.c	(revision 63866)
@@ -3961,8 +3961,8 @@ rb_thread_fd_select(int max, rb_fdset_t https://github.com/ruby/ruby/blob/trunk/thread.c#L3961
 
 #ifndef HAVE_PPOLL
 /* TODO: don't ignore sigmask */
-int
-ppoll(struct pollfd *fds, nfds_t nfds,
+static int
+ruby_ppoll(struct pollfd *fds, nfds_t nfds,
       const struct timespec *ts, const sigset_t *sigmask)
 {
     int timeout_ms;
@@ -3986,6 +3986,7 @@ ppoll(struct pollfd *fds, nfds_t nfds, https://github.com/ruby/ruby/blob/trunk/thread.c#L3986
 
     return poll(fds, nfds, timeout_ms);
 }
+#  define ppoll(fds,nfds,ts,sigmask) ruby_ppoll((fds),(nfds),(ts),(sigmask))
 #endif
 
 /*

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]