.\" -*- coding: UTF-8 -*- '\" t .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk) .\" .\" SPDX-License-Identifier: Linux-man-pages-copyleft .\" .\" References consulted: .\" Linux libc source code .\" Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991) .\" 386BSD man pages .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu) .\" Modified 2001-04-01 by aeb .\" Modified 2003-07-23 by aeb .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH usleep 3 "31 Octubre 2023" "Páginas de manual de Linux 6.06" .SH NOMBRE usleep \- suspende la ejecución durante un intervalo de varios microsegundos .SH BIBLIOTECA Biblioteca Estándar C (\fIlibc\fP, \fI\-lc\fP) .SH SINOPSIS .nf \fB#include \fP .P \fBint usleep(useconds_t \fP\fIusec\fP\fB);\fP .fi .P .RS -4 Requisitos de Macros de Prueba de Características para glibc (véase \fBfeature_test_macros\fP(7)): .RE .P \fBusleep\fP(): .nf .\" || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED Desde glibc 2.12: (_XOPEN_SOURCE >= 500) && ! (_POSIX_C_SOURCE >= 200809L) || /* glibc >= 2.19: */ _DEFAULT_SOURCE || /* glibc <= 2.19: */ _BSD_SOURCE Antes de glibc 2.12: _BSD_SOURCE || _XOPEN_SOURCE >= 500 .fi .SH DESCRIPCIÓN The \fBusleep\fP() function suspends execution of the calling thread for (at least) \fIusec\fP microseconds. The sleep may be lengthened slightly by any system activity or by the time spent processing the call or by the granularity of system timers. .SH "VALOR DEVUELTO" Si no ocurre ningún error, devuelve cero. En caso de error se devuelve \-1, y \fIerrno\fP se configura adecuadamente. .SH ERRORES .TP \fBEINTR\fP Interrumpción de una señal; vea \fBsignal\fP(7). .TP \fBEINVAL\fP \fIusec\fP is greater than or equal to 1000000. (On systems where that is considered an error.) .SH ATRIBUTOS Para obtener una explicación de los términos usados en esta sección, véase \fBattributes\fP(7). .TS allbox; lbx lb lb l l l. Interfaz Atributo Valor T{ .na .nh \fBusleep\fP() T} Seguridad del hilo Multi\-hilo seguro .TE .SH ESTÁNDARES None. .SH HISTORIAL 4.3BSD, POSIX.1\-2001. POSIX.1\-2001 declares it obsolete, suggesting \fBnanosleep\fP(2) instead. Removed in POSIX.1\-2008. .P On the original BSD implementation, and before glibc 2.2.2, the return type of this function is \fIvoid\fP. The POSIX version returns \fIint\fP, and this is also the prototype used since glibc 2.2.2. .P Only the \fBEINVAL\fP error return is documented by SUSv2 and POSIX.1\-2001. .SH CAVEATS The interaction of this function with the \fBSIGALRM\fP signal, and with other timer functions such as \fBalarm\fP(2), \fBsleep\fP(3), \fBnanosleep\fP(2), \fBsetitimer\fP(2), \fBtimer_create\fP(2), \fBtimer_delete\fP(2), \fBtimer_getoverrun\fP(2), \fBtimer_gettime\fP(2), \fBtimer_settime\fP(2), \fBualarm\fP(3) is unspecified. .SH "VÉASE TAMBIÉN" \fBalarm\fP(2), \fBgetitimer\fP(2), \fBnanosleep\fP(2), \fBselect\fP(2), \fBsetitimer\fP(2), \fBsleep\fP(3), \fBualarm\fP(3), \fBuseconds_t\fP(3type), \fBtime\fP(7) .PP .SH TRADUCCIÓN La traducción al español de esta página del manual fue creada por Miguel Pérez Ibars y Marcos Fouces . .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 .