mailing list of musl libc
 help / color / mirror / code / Atom feed
605cc345332ac92f5261ddb6ea8a31e5f96d6eb7 blob 370 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
 
#include "pthread_impl.h"
#include <threads.h>

/* Not all arch have __pthread_self as a symbol. On some this results
   in some magic. So this "call" to __pthread_self is not necessary a
   tail call. In particular, other than the appearance, thrd_current
   can not be implemented as a weak symbol. */
pthread_t thrd_current()
{
	return __pthread_self();
}
debug log:

solving 1728535 ...
found 1728535 in https://inbox.vuxu.org/musl/1407144603.8274.248.camel@eris.loria.fr/ ||
	https://inbox.vuxu.org/musl/22215ff2f880382340930f78cc746565a625a806.1409423162.git.Jens.Gustedt@inria.fr/ ||
	https://inbox.vuxu.org/musl/1409177505.4476.75.camel@eris.loria.fr/ ||
	https://inbox.vuxu.org/musl/1408049748.4951.134.camel@eris.loria.fr/ ||
	https://inbox.vuxu.org/musl/1407801532.15134.96.camel@eris.loria.fr/

applying [1/5] https://inbox.vuxu.org/musl/1407144603.8274.248.camel@eris.loria.fr/
diff --git a/src/thread/thrd_current.c b/src/thread/thrd_current.c\r
new file mode 100644\r
index 0000000..1728535\r

1:7: trailing whitespace.
#include "pthread_impl.h"\r
1:8: trailing whitespace.
#include <threads.h>\r
1:9: trailing whitespace.
\r
1:10: trailing whitespace.
/* Not all arch have __pthread_self as a symbol. On some this results\r
1:11: trailing whitespace.
   in some magic. So this "call" to __pthread_self is not necessary a\r
Checking patch src/thread/thrd_current.c...
Applied patch src/thread/thrd_current.c cleanly.
warning: squelched 6 whitespace errors
warning: 11 lines add whitespace errors.

skipping https://inbox.vuxu.org/musl/22215ff2f880382340930f78cc746565a625a806.1409423162.git.Jens.Gustedt@inria.fr/ for 1728535
skipping https://inbox.vuxu.org/musl/1409177505.4476.75.camel@eris.loria.fr/ for 1728535
skipping https://inbox.vuxu.org/musl/1408049748.4951.134.camel@eris.loria.fr/ for 1728535
skipping https://inbox.vuxu.org/musl/1407801532.15134.96.camel@eris.loria.fr/ for 1728535
index at:
100644 605cc345332ac92f5261ddb6ea8a31e5f96d6eb7	src/thread/thrd_current.c

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).