From dc32d4fe06d8a2e4826c55b423d514a00612426b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 18 Apr 2000 17:42:52 +0000 Subject: Update. 2000-04-18 Ulrich Drepper * sysdeps/unix/sysv/aix/xstat64.c: Define STX_NORMAL and STX_64. * sysdeps/unix/sysv/aix/xstat.c: Define STX_NORMAL. * sysdeps/unix/sysv/aix/sys/param.h: Define NGROUPS. * sysdeps/unix/sysv/aix/setreuid.c: Define ID_EFFECTIVE and ID_REAL. * sysdeps/unix/sysv/aix/setregid.c: Likewise. * sysdeps/unix/sysv/aix/setuid.c: Define ID_REAL. * sysdeps/unix/sysv/aix/setgid.c: Likewise. * sysdeps/unix/sysv/aix/seteuid.c: Define ID_EFFECTIVE. * sysdeps/unix/sysv/aix/setegid.c: Likewise. * sysdeps/unix/sysv/aix/sbrk.c: Update parameter type. * sysdeps/unix/sysv/aix/nanosleep.c (struct timestruc_t): Define it here. * sysdeps/unix/sysv/aix/msync.c: New file. * sysdeps/unix/sysv/aix/msgsnd.c: New file. * sysdeps/unix/sysv/aix/net/if.h: New file. * sysdeps/unix/sysv/aix/pipe.c: New file. * sysdeps/unix/sysv/aix/poll.c: New file. * sysdeps/unix/sysv/aix/rename.c: New file. * sysdeps/unix/sysv/aix/rmdir.c: New file. * sysdeps/unix/sysv/aix/select.c: New file. * sysdeps/unix/sysv/aix/semctl.c: New file. * sysdeps/unix/sysv/aix/semget.c: New file. * sysdeps/unix/sysv/aix/semop.c: New file. * sysdeps/unix/sysv/aix/sendto.c: New file. * sysdeps/unix/sysv/aix/setgroups.c: New file. * sysdeps/unix/sysv/aix/setpgid.c: New file. * sysdeps/unix/sysv/aix/setpgrp.c: New file. * sysdeps/unix/sysv/aix/setpriority.c: New file. * sysdeps/unix/sysv/aix/setrlimit.c: New file. * sysdeps/unix/sysv/aix/setrlimit64.c: New file. * sysdeps/unix/sysv/aix/setsid.c: New file. * sysdeps/unix/sysv/aix/setsockopt.c: New file. * sysdeps/unix/sysv/aix/shmat.c: New file. * sysdeps/unix/sysv/aix/shmctl.c: New file. * sysdeps/unix/sysv/aix/shmdt.c: New file. * sysdeps/unix/sysv/aix/shmget.c: New file. * sysdeps/unix/sysv/aix/sigaltstack.c: New file. * sysdeps/unix/sysv/aix/sigstack.c: New file. * sysdeps/unix/sysv/aix/socket.c: New file. * sysdeps/unix/sysv/aix/socketpair.c: New file. * sysdeps/unix/sysv/aix/speed.c: New file. * sysdeps/unix/sysv/aix/symlink.c: New file. * sysdeps/unix/sysv/aix/sync.c: New file. * sysdeps/unix/sysv/aix/tcgetattr.c: New file. * sysdeps/unix/sysv/aix/tcsetattr.c: New file. * sysdeps/unix/sysv/aix/times.c: New file. * sysdeps/unix/sysv/aix/ulimit.c: New file. * sysdeps/unix/sysv/aix/umask.c: New file. * sysdeps/unix/sysv/aix/unlink.c: New file. * sysdeps/unix/sysv/aix/ustat.c: New file. * sysdeps/unix/sysv/aix/utimes.c: New file. --- sysdeps/unix/sysv/aix/ulimit.c | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 sysdeps/unix/sysv/aix/ulimit.c (limited to 'sysdeps/unix/sysv/aix/ulimit.c') diff --git a/sysdeps/unix/sysv/aix/ulimit.c b/sysdeps/unix/sysv/aix/ulimit.c new file mode 100644 index 0000000000..c72a527c0a --- /dev/null +++ b/sysdeps/unix/sysv/aix/ulimit.c @@ -0,0 +1,37 @@ +/* Copyright (C) 1999, 2000 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public License as + published by the Free Software Foundation; either version 2 of the + License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public + License along with the GNU C Library; see the file COPYING.LIB. If not, + write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ + +#include +#include + +long int +__ulimit (int cmd, ...) +{ + va_list va; + long int arg; + long int res; + + va_start (va, cmd); + arg = va_arg (va, long int); + + res = ulimit (cmd, arg); + + va_end (va); + + return res; +} -- cgit v1.2.3