1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85
|
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (C) 1996 Andries Brouwer (aeb@cwi.nl)
.\"
.\" 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.
.\"
.\" Moved to man3, aeb, 980612
.\"
.\" Translated 22 Jul 1998 by Juan Jos Lpez Mellado (laveneno@hotmail.com)
.\" Translation revised Wed Dec 30 1998 by Juan Piernas <piernas@ditec.um.es>
.\"
.TH ULIMIT 3 "12 Junio 1998" "Linux 2.0" "Manual del Programador de Linux"
.SH NOMBRE
ulimit \- obtiene y modifica los lmites del usuario
.SH SINOPSIS
.B #include <ulimit.h>
.sp
.BI "long ulimit(int " cmd ", long " newlimit );
.SH DESCRIPCIN
Atencin: Esta rutina est obsoleta. glibc no proporcionar el fichero de
cabecera. En lugar de ulimit debe usarse getrlimit(2),
setrlimit(2) y sysconf(3).
Para la orden del shell
.BR ulimit ,
vea
.BR bash (1).
La funcin
.B ulimit
obtendr o modificar algn lmite para el proceso actual.
El argumento
.I cmd
puede tener uno de los siguientes valores.
.TP
.B UL_GETFSIZE
Devuelve el lmite de tamao de un fichero, en unidades de
512 bytes.
.TP
.B UL_SETFSIZE
Poner el lmite de tamao de un fichero.
.TP
.B 3
(No implementado en Linux.)
Retorna la direccin mxima posible del segmento de datos.
.TP
.B 4
(Implementado pero sin una constante simblica asociada.)
Devuelve el mximo nmero de ficheros que el proceso puede abrir.
.SH "VALOR DEVUELTO"
Si tiene xito,
.B ulimit
devuelve un valor no negativo.
Si hay error, se devuelve un \-1, y se modifica
.I errno
con el valor correspondiente.
.SH ERRORES
.TP
.B EPERM
Un proceso no root ha intentado incrementar un lmite.
.SH "CONFORME A"
SVID.
.SH "VASE TAMBIN"
.BR bash (1),
.BR getrlimit (2),
.BR setrlimit (2),
.BR sysconf (3)
|