gsignal(3) Library Functions Manual gsignal(3) NOMBRE gsignal, ssignal - utilidades para el manejo de senales BIBLIOTECA Biblioteca Estandar C (libc, -lc) SINOPSIS #include typedef void (*sighandler_t)(int); [[deprecated]] int gsignal(int signum); [[deprecated]] sighandler_t ssignal(int signum, sighandler_t action); Requisitos de Macros de Prueba de Caracteristicas para glibc (vease feature_test_macros(7)): gsignal(), ssignal(): A partir de glibc 2.19: _DEFAULT_SOURCE En glibc 2.19 y anteriores: _SVID_SOURCE DESCRIPCION No use estas funciones bajo Linux. Debido a un error historico, bajo Linux estas funciones son sinonimos para raise(3) y signal(2), respectivamente. Elsewhere, on System V-like systems, these functions implement software signaling, entirely independent of the classical signal(2) and kill(2) functions. The function ssignal() defines the action to take when the software signal with number signum is raised using the function gsignal(), and returns the previous such action or SIG_DFL. The function gsignal() does the following: if no action (or the action SIG_DFL) was specified for signum, then it does nothing and returns 0. If the action SIG_IGN was specified for signum, then it does nothing and returns 1. Otherwise, it resets the action to SIG_DFL and calls the action function with argument signum, and returns the value returned by that function. The range of possible values signum varies (often 1-15 or 1-17). ATRIBUTOS Para obtener una explicacion de los terminos usados en esta seccion, vease attributes(7). +-----------------------------+--------------------+-------------------+ |Interfaz | Atributo | Valor | +-----------------------------+--------------------+-------------------+ |gsignal() | Seguridad del hilo | Multi-hilo seguro | +-----------------------------+--------------------+-------------------+ |ssignal() | Seguridad del hilo | MT-Safe sigintr | +-----------------------------+--------------------+-------------------+ ESTANDARES None. HISTORIAL AIX, DG/UX, HP-UX, SCO, Solaris, Tru64. They are called obsolete under most of these systems, and are broken under glibc. Some systems also have gsignal_r() and ssignal_r(). VEASE TAMBIEN kill(2), signal(2), raise(3) TRADUCCION La traduccion al espanol de esta pagina del manual fue creada por Miguel Perez Ibars Esta traduccion es documentacion libre; lea la GNU General Public License Version 3 o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. Si encuentra algun error en la traduccion de esta pagina del manual, envie un correo electronico a . Paginas de manual de Linux 6.06 31 Octubre 2023 gsignal(3)