[BZ #6947]
* sysdeps/unix/sysv/linux/ulimit.c (__ulimit): Fix return value
for UL_SETFSIZE.
+ * resource/Makefile (tests): Add bug-ulimit1.
+ * resource/bug-ulimit1.c: New file.
[BZ #6974]
* sunrpc/rpc_main.c (mkfile_output): Properly handle filename
-# Copyright (C) 1991,1992,1994,1995,1997,2005 Free Software Foundation, Inc.
+# Copyright (C) 1991,1992,1994,1995,1997,2005,2008
+# 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
routines := getrlimit setrlimit getrlimit64 setrlimit64 getrusage ulimit \
vlimit vtimes getpriority setpriority nice
-tests = tst-getrlimit
+tests = tst-getrlimit bug-ulimit1
include ../Rules
--- /dev/null
+#include <ulimit.h>
+#include <stdio.h>
+
+int
+main (void)
+{
+ int retval = 0;
+ long int res;
+
+ res = ulimit (UL_SETFSIZE, 10000);
+ printf ("Result of ulimit (UL_SETFSIZE, 10000): %ld\n", res);
+ if (res != 10000)
+ retval = 1;
+
+ res = ulimit (UL_GETFSIZE);
+ printf ("Result of ulimit(UL_GETFSIZE): %ld\n", res);
+ if (res != 10000)
+ retval = 1;
+
+ return retval;
+}