.\" -*- coding: UTF-8 -*- .\" This manpage is Copyright (C) 1992 Drew Eckhardt; .\" and Copyright (C) 1993 Michael Haardt, Ian Jackson. .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" 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 "2023년 3월 30일" "Linux man\-pages 6.05.01" .SH 이름 alarm \- 시그널 전달을 위한 알람을 설정한다. .SH 라이브러리 표준 C 라이브러리 (\fIlibc\fP, \fI\-lc\fP) .SH 요약 .nf \fB#include \fP .PP \fBunsigned int alarm(unsigned int \fP\fIseconds\fP\fB);\fP .fi .SH 설명 \fBalarm\fP() arranges for a \fBSIGALRM\fP signal to be delivered to the calling process in \fIseconds\fP seconds. .PP If \fIseconds\fP is zero, any pending alarm is canceled. .PP 어떤 경우에도 이전에 설정된 \fBalarm\fP()은 은 취소된다. .SH 반환값 \fBalarm\fP()은 이전에 설정된 알람이 시그널을 전달할 때까지 남은 시간을 초 단위의 숫자로 반환하거나, 이전에 설정된 알람이 없다면 0을 반환한다. .SH 표준 POSIX.1\-2008. .SH 이력 POSIX.1\-2001, SVr4, 4.3BSD. .SH 주의 \fBalarm\fP() 과 \fBsetitimer\fP(2)는 같은 타이머를 공유한다; 한 쪽을 호출하면 다른 쪽을 간섭할 것이다. .PP Alarms created by \fBalarm\fP() are preserved across \fBexecve\fP(2) and are not inherited by children created via \fBfork\fP(2). .PP \fBsleep\fP(3) may be implemented using \fBSIGALRM\fP; mixing calls to \fBalarm\fP() and \fBsleep\fP(3) is a bad idea. .PP 스케줄링 지연이 임의의 시간 동안 프로세스의 수행을 지연시킬 수도 있다. .SH "추가 참조" \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) .PP .SH 번역 이 매뉴얼 페이지의 한국어 번역은 다음에 의해 편집되었습니다: 임종균 . .PP 이 번역은 무료 문서입니다. 저작권 조건에 대해서는 .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License 버전 3 .UE 이상을 읽으십시오. 책임이 없습니다. .PP 이 매뉴얼 페이지의 번역에서 오류를 발견하면 .MT translation-team-ko@googlegroups.com .ME 로 이메일을 보내주십시오.