gen/FreeBSD/clock.3 freebsd lib/libc/gen/clock.3 5b882020081a138285227631c46a406c08e17bc8
gen/FreeBSD/ctermid.3 freebsd lib/libc/gen/ctermid.3 5b882020081a138285227631c46a406c08e17bc8
gen/FreeBSD/getbsize.c freebsd lib/libc/gen/getbsize.c 5b882020081a138285227631c46a406c08e17bc8
+gen/FreeBSD/raise3 freebsd lib/libc/gen/raise.3 6b42c90c1ff5f7c35431eced41b6213401521d3d
gen/FreeBSD/readpassphrase.c freebsd lib/libc/gen/readpassphrase.c 1f19a8fc755a14865a5a5b67d5fa895c4b7cf622
gen/FreeBSD/readpassphrase.3 freebsd lib/libc/gen/readpassphrase.3 e0a2d4f15ed9e93fcb62544ed65f7a98e2339c3b
gen/FreeBSD/times.3 freebsd lib/libc/gen/times.3 5b882020081a138285227631c46a406c08e17bc8
.\" SUCH DAMAGE.
.\"
.\" @(#)raise.3 8.1 (Berkeley) 6/4/93
-.\" $FreeBSD: src/lib/libc/gen/raise.3,v 1.8 2007/01/09 00:27:55 imp Exp $
+.\" $FreeBSD$
.\"
-.Dd June 4, 1993
+.Dd September 21, 2016
.Dt RAISE 3
.Os
.Sh NAME
.Nm raise
-.Nd send a signal to the current process
+.Nd send a signal to the current thread
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
.Fn raise
function sends the signal
.Fa sig
-to the current process.
+to the current thread.
.Sh RETURN VALUES
.Rv -std raise
.Sh ERRORS
library functions
.Xr getpid 2
and
-.Xr kill 2 .
+.Xr pthread_kill 2 .
.Sh SEE ALSO
-.Xr kill 2
+.Xr kill 2 ,
+.Xr pthread_kill 2
.Sh STANDARDS
The
.Fn raise
#if TARGET_OS_IPHONE
/* <rdar://problem/13875458> */
-#if defined(__OPEN_SOURCE__) || !__LP64__
#include <wordexp.h>
int wordexp(const char *restrict words __unused, wordexp_t *restrict pwordexp __unused, int flags __unused) {
return WRDE_NOSPACE;
void wordfree(wordexp_t *pwordexp __unused) {
}
-#else
-struct __not_an_empty_c_file;
-#endif
#else
#define _POSIX_SEM_VALUE_MAX 32767
#define _POSIX_SIGQUEUE_MAX 32
#define _POSIX_TIMER_MAX 32
+
+#define _POSIX_CLOCKRES_MIN 20000000
#endif /* __DARWIN_C_LEVEL >= 199309L */
#if __DARWIN_C_LEVEL >= 199506L
#endif /* __DARWIN_UNIX03 */
if (!command) { /* just checking... */
+#if TARGET_OS_IPHONE
+ return(0);
+#else
if (access(_PATH_BSHELL, F_OK) == -1) /* if no sh or no access */
return(0);
else
return(1);
+#endif
}
if ((err = posix_spawnattr_init(&attr)) != 0) {