RAISE(3P)
πΈ RAISE(3P) β the POSIX Programmer's Manual, bestie edition πΈ
okay so. this is raise(3P), and it lives in the POSIX Programmer's Manual. hi. welcome. π
β¨ PROLOG β¨
so like, real talk first: this manual page is part of the POSIX Programmer's Manual. the Linux implementation of this interface may differ β like, actually differ β so if you're on Linux you gotta go consult the corresponding Linux manual page for details of Linux behavior. or honestly? the interface might just not be implemented on Linux at all. π so check, bestie. always check.
π NAME π
raise β send a signal to the executing process. that's it. that's the whole vibe. she raises. she signals. π
π SYNOPSIS π
#include <signal.h>
int raise(int sig);
that's the whole thing. two lines. iconic. π¦
π DESCRIPTION π
so the functionality described on this reference page is aligned with the ISO C standard. and if there's any conflict between the requirements described here and the ISO C standard? that's unintentional, fr fr. this volume of POSIX.1β2017 defers to the ISO C standard. no drama, no beef, ISO C wins. periodt.
the raise() function shall send the signal sig to the executing thread or process. yep β thread or process, she's flexible like that.
and here's the part that lowkey matters: if a signal handler is called, the raise() function shall not return until after the signal handler does. like, she's waiting for you to finish your little monologue. she's not leaving early. she's a good friend. π«Ά
the effect of the raise() function shall be equivalent to calling:
pthread_kill(pthread_self(), sig);
same energy. literally equivalent. no cap. β¨
β RETURN VALUE β
upon successful completion, 0 shall be returned. yay! π
otherwise, a non-zero value shall be returned, and errno shall be set to indicate the error. so like, if it's not 0, go read errno. she's telling you what went wrong. listen to her. π
π ERRORS π
the raise() function shall fail if:
EINVALβ the value of thesigargument is an invalid signal number. yeah. that's not a signal, bestie. that's a typo. π
also heads up: the following sections are informative. like, they're not requirements, they're just... vibes and context.
π EXAMPLES π
None.
nothing. empty. a blank canvas. we love a minimalist. π¨
π§ APPLICATION USAGE π§
None.
also nothing. the void stares back. π
π RATIONALE π
the term ``thread'' is an extension to the ISO C standard. that's it. that's the whole rationale. she said "thread" and ISO C was like "um, excuse me?" and POSIX was like "it's an extension, babe." π
π₯ FUTURE DIRECTIONS π₯
None.
no plans. no roadmap. she's not going anywhere. she's already perfect. β
πΈ SEE ALSO πΈ
kill()sigaction()
and also, from the Base Definitions volume of POSIX.1β2017:
<signal.h><sys_types.h>
go read those too. homework. you'll thank me. π
π COPYRIGHT π
okay legal moment, everyone sit up straight:
portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.
in the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. the original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. to report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
and that's the whole page!! π this one came to you courtesy of IEEE/The Open Group, 2017 β yeah, 2017, she's vintage, she's timeless, she's a classic. mwah. π«Άβ¨
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms