.\" -*- coding: UTF-8 -*- .\" This manpage is Copyright (C) 1992 Drew Eckhardt; .\" and Copyright (C) 1993 Michael Haardt, Ian Jackson. .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" Modified Wed Jul 21 19:42:57 1993 by Rik Faith .\" Modified Sun Jul 21 21:25:26 1996 by Andries Brouwer .\" Modified Wed Nov 6 03:46:05 1996 by Eric S. Raymond .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH ALARM 2 "3 Mayo 2017" Linux "Manual del Programador de Linux" .SH NOMBRE alarm \- activa una alarma para el envío de una señal .SH SINOPSIS .nf \fB#include \fP .PP \fBunsigned int alarm(unsigned int \fP\fIsec\fP\fB);\fP .fi .SH DESCRIPCIÓN \fBalarm\fP() se encarga de enviar una señal \fBSIGALRM\fP al proceso en \fIsec\fP segundos. .PP Si \fIsec\fP es cero, se anula cualquier alarma pendiente. .PP Además, cualquier \fBalarm\fP() previamente preparada se cancela. .SH "VALOR DEVUELTO" \fBalarm\fP() devuelve el número de segundos que quedaban para que cualquier alarma previa se disparase, o cero si no había ninguna alarma pendiente. .SH "CONFORME A" POSIX.1\-2001, POSIX.1\-2008, SVr4, 4.3BSD. .SH NOTAS \fBalarm\fP() y \fBsetitimer\fP(2) comparten el mismo cronómetro; el uso de una interferirá con el de la otra. .PP Las alarmas creadas por \fBalarm\fP() se conservan entre \fBexecve\fP(2) y los procesos creados a través de \fBfork\fP(2) no las heredan. .PP \fBsleep\fP(3) puede estar implementada usando \fBSIGALRM\fP; mezclar llamadas a \fBalarm\fP() y \fBsleep\fP(3) es una mala idea. .PP Los retardos en la planificación pueden, como siempre, provocar el retardo de la ejecución del proceso una cantidad arbitraria de tiempo. .SH "VÉASE TAMBIÉN" \fBgettimeofday\fP(2), \fBpause\fP(2), \fBselect\fP(2), \fBsetitimer\fP(2), \fBsigaction\fP(2), \fBsignal\fP(2), \fBtimer_create\fP(2), \fBtimerfd_create\fP(2), \fBsleep\fP(3), \fBtime\fP(7) .SH COLOFÓN Esta página es parte de la versión 5.10 del proyecto Linux \fIman\-pages\fP. Puede encontrar una descripción del proyecto, información sobre cómo informar errores y la última versión de esta página en \%https://www.kernel.org/doc/man\-pages/. .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Angel Sepulveda y Gerardo Aburruzaga García . .PP Esta traducción es documentación libre; lea la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License Version 3 .UE o posterior con respecto a las condiciones de copyright. No existe NINGUNA RESPONSABILIDAD. .PP Si encuentra algún error en la traducción de esta página del manual, envíe un correo electrónico a .MT debian-l10n-spanish@lists.debian.org .ME .