Index: testsuites/libtests/POSIX/.cvsignore
===================================================================
--- testsuites/libtests/POSIX/.cvsignore	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/.cvsignore	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,1 @@
+Makefile.in
Index: testsuites/libtests/POSIX/COPYING
===================================================================
--- testsuites/libtests/POSIX/COPYING	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/COPYING	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,8 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
Index: testsuites/libtests/POSIX/Makefile.am
===================================================================
--- testsuites/libtests/POSIX/Makefile.am	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/Makefile.am	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,101 @@
+CC = @CC@ $(GCCSPECS)
+
+check_PROGRAMS =
+
+check_PROGRAMS += calloc
+calloc_SOURCES = calloc.c
+
+check_PROGRAMS += close
+close_SOURCES = close.c
+
+check_PROGRAMS += dup2
+dup2_SOURCES = dup2.c
+
+check_PROGRAMS += fcntl
+fcntl_SOURCES = fcntl.c
+
+check_PROGRAMS += fork
+fork_SOURCES = fork.c
+
+check_PROGRAMS += free
+free_SOURCES = free.c
+
+check_PROGRAMS += fstat
+fstat_SOURCES = fstat.c
+
+# FIXME: BSD-proprietary
+# check_PROGRAMS += getdents
+# getdents_SOURCES = getdents.c
+
+check_PROGRAMS += getlogin
+getlogin_SOURCES = getlogin.c
+
+check_PROGRAMS += getpwnam
+getpwnam_SOURCES = getpwnam.c
+
+check_PROGRAMS += getpwuid
+getpwuid_SOURCES = getpwuid.c
+
+check_PROGRAMS += getuid
+getuid_SOURCES = getuid.c
+
+# FIXME: BSD-proprietary
+# check_PROGRAMS += issetugid
+# issetugid_SOURCES = issetugid.c
+
+check_PROGRAMS += lseek
+lseek_SOURCES = lseek.c
+
+check_PROGRAMS += longjmp
+longjmp_SOURCES = longjmp.c
+
+check_PROGRAMS += lstat
+lstat_SOURCES = lstat.c
+
+check_PROGRAMS += kill
+kill_SOURCES = kill.c
+
+check_PROGRAMS += malloc
+malloc_SOURCES = malloc.c
+
+check_PROGRAMS += nanosleep
+nanosleep_SOURCES = nanosleep.c
+
+check_PROGRAMS += open
+open_SOURCES = open.c
+
+check_PROGRAMS += pipe
+pipe_SOURCES = pipe.c
+
+check_PROGRAMS += posix_memalign
+posix_memalign_SOURCES = posix_memalign.c
+
+check_PROGRAMS += read
+read_SOURCES = read.c
+
+check_PROGRAMS += realloc
+realloc_SOURCES = realloc.c
+
+check_PROGRAMS += setjmp
+setjmp_SOURCES = setjmp.c
+
+check_PROGRAMS += sigfillset
+sigfillset_SOURCES = sigfillset.c
+
+check_PROGRAMS += sigprocmask
+sigprocmask_SOURCES = sigprocmask.c
+
+check_PROGRAMS += stat
+stat_SOURCES = stat.c
+
+check_PROGRAMS += unlink
+unlink_SOURCES = unlink.c
+
+check_PROGRAMS += vfork
+vfork_SOURCES = vfork.c
+
+check_PROGRAMS += waitpid
+waitpid_SOURCES = waitpid.c
+
+check_PROGRAMS += write
+write_SOURCES = write.c
Index: testsuites/libtests/POSIX/README
===================================================================
--- testsuites/libtests/POSIX/README	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/README	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,25 @@
+This testsuite consists of a collection of (non-functional) programs snippets 
+to check an RTEMS toolchain consisting of 
+* GCC (libgcc etc.)
+* binutils
+* newlib (libc)
+* RTEMS (librtemscpu + librtemsbsp)
+for IEEE Std 1003.1-2008 (aka. POSIX[1]) compliance by link-tests.
+
+All of these programs are supposed to be compilable without any warning,
+independently of the configuration being used in any of the components
+involved.
+
+NB: 
+- Using "advanced GCC warning flags" may trigger warnings. Such warnings
+  should be avoided if possible.
+
+- These program snippets are not supposed to be functional.
+
+- This suite only checks for a subset of POSIX library calls, which are
+  known to have been critical in RTEMS/GCC/newlib interaction at some point
+  in RTEMS/GCC/newlib's history.
+
+References:
+[1] The Open Group Base Specifications Issue 7, IEEE Std 1003.1â¢-2008,
+    http://www.opengroup.org/onlinepubs/9699919799
Index: testsuites/libtests/POSIX/calloc.c
===================================================================
--- testsuites/libtests/POSIX/calloc.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/calloc.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <stdlib.h>
+
+int
+main (void)
+{
+  void *foo = calloc (42, 43);
+
+  return (foo != NULL);
+}
Index: testsuites/libtests/POSIX/close.c
===================================================================
--- testsuites/libtests/POSIX/close.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/close.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <unistd.h>
+
+int
+main (void)
+{
+  close (42);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/dup2.c
===================================================================
--- testsuites/libtests/POSIX/dup2.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/dup2.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <unistd.h>
+
+int
+main (void)
+{
+  int oldfd = 42;
+  int newfd = 43;
+
+  dup2 (oldfd, newfd);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/fcntl.c
===================================================================
--- testsuites/libtests/POSIX/fcntl.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/fcntl.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <unistd.h>
+#include <fcntl.h>
+
+int
+main (void)
+{
+  fcntl (42, 43);
+  fcntl (42, 43, 44);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/fork.c
===================================================================
--- testsuites/libtests/POSIX/fork.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/fork.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <unistd.h>
+
+int
+main (void)
+{
+  fork ();
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/free.c
===================================================================
--- testsuites/libtests/POSIX/free.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/free.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <stdlib.h>
+
+int
+main (void)
+{
+  free ((void *) 42);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/fstat.c
===================================================================
--- testsuites/libtests/POSIX/fstat.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/fstat.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
+int
+main (void)
+{
+  struct stat buf;
+  int fd = 42;
+  fstat (fd, &buf);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/getdents.c
===================================================================
--- testsuites/libtests/POSIX/getdents.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/getdents.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <dirent.h>
+
+int
+main (void)
+{
+  int status;
+  int fd = 42;
+
+  status = getdents (fd, "/tmp/foo", 0);
+}
Index: testsuites/libtests/POSIX/getlogin.c
===================================================================
--- testsuites/libtests/POSIX/getlogin.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/getlogin.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <unistd.h>
+
+int
+main (void)
+{
+  char *login;
+  login = getlogin ();
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/getpwnam.c
===================================================================
--- testsuites/libtests/POSIX/getpwnam.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/getpwnam.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/types.h>
+#include <pwd.h>
+
+int
+main (void)
+{
+  struct passwd *pass;
+  pass = getpwnam ("root");
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/getpwuid.c
===================================================================
--- testsuites/libtests/POSIX/getpwuid.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/getpwuid.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/types.h>
+#include <pwd.h>
+
+int
+main (void)
+{
+  struct passwd *pass;
+  pass = getpwnam (0);
+
+  return (pass != NULL);
+}
Index: testsuites/libtests/POSIX/getuid.c
===================================================================
--- testsuites/libtests/POSIX/getuid.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/getuid.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <unistd.h>
+#include <sys/types.h>
+
+int
+main (void)
+{
+  uid_t uid;
+  uid = getuid ();
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/issetugid.c
===================================================================
--- testsuites/libtests/POSIX/issetugid.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/issetugid.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <unistd.h>
+
+int
+main (void)
+{
+  int status;
+  status = issetugid ();
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/kill.c
===================================================================
--- testsuites/libtests/POSIX/kill.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/kill.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <signal.h>
+
+int
+main (void)
+{
+  pid_t pid = 0;
+
+  kill (pid, SIGHUP);
+  kill (pid, SIGKILL);
+  kill (pid, SIGTERM);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/longjmp.c
===================================================================
--- testsuites/libtests/POSIX/longjmp.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/longjmp.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <setjmp.h>
+
+int
+main (void)
+{
+  jmp_buf buf;
+  longjmp (buf, 0);
+  return 0;
+}
Index: testsuites/libtests/POSIX/lseek.c
===================================================================
--- testsuites/libtests/POSIX/lseek.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/lseek.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/types.h>
+#include <unistd.h>
+
+int
+main (void)
+{
+  off_t res;
+  int fd = 42;
+
+  res = lseek (fd, 0, SEEK_SET);
+  res = lseek (fd, 1, SEEK_CUR);
+  res = lseek (fd, 2, SEEK_END);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/lstat.c
===================================================================
--- testsuites/libtests/POSIX/lstat.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/lstat.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
+int
+main (void)
+{
+  struct stat buf;
+  int status;
+
+  status = lstat ("/tmp/foo", &buf);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/malloc.c
===================================================================
--- testsuites/libtests/POSIX/malloc.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/malloc.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <stdlib.h>
+
+int
+main (void)
+{
+  void *ptr = malloc (42);
+
+  return (ptr != NULL);
+}
Index: testsuites/libtests/POSIX/nanosleep.c
===================================================================
--- testsuites/libtests/POSIX/nanosleep.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/nanosleep.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <time.h>
+
+int
+main (void)
+{
+  struct timespec req = { 0, 42 };
+  struct timespec rem;
+  int status;
+
+  status = nanosleep (&req, &rem);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/open.c
===================================================================
--- testsuites/libtests/POSIX/open.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/open.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,23 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
+
+int
+main (void)
+{
+  int fd1;
+  int fd2;
+
+  fd1 = open ("/tmp/foo1", O_RDWR | O_APPEND);
+  fd2 = open ("/tmp/foo2", O_CREAT, S_IWUSR);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/pipe.c
===================================================================
--- testsuites/libtests/POSIX/pipe.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/pipe.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <unistd.h>
+
+int
+main (void)
+{
+  int filedes[2];
+  int status;
+
+  status = pipe (filedes);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/posix_memalign.c
===================================================================
--- testsuites/libtests/POSIX/posix_memalign.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/posix_memalign.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <stdlib.h>
+
+int
+main (void)
+{
+  void *a;
+  int ret = posix_memalign (&a, sizeof (void *) * 2, 42);
+
+  return ret;
+}
Index: testsuites/libtests/POSIX/read.c
===================================================================
--- testsuites/libtests/POSIX/read.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/read.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <unistd.h>
+
+int
+main (void)
+{
+  int fd = 42;
+  char buf[4];
+  ssize_t len;
+
+  len = read (fd, &buf, 4);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/realloc.c
===================================================================
--- testsuites/libtests/POSIX/realloc.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/realloc.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <stdlib.h>
+
+int
+main (void)
+{
+  realloc (NULL, 42);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/setjmp.c
===================================================================
--- testsuites/libtests/POSIX/setjmp.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/setjmp.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,17 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <setjmp.h>
+
+int
+main (void)
+{
+  jmp_buf buf;
+  setjmp (buf);
+  return 0;
+}
Index: testsuites/libtests/POSIX/sigfillset.c
===================================================================
--- testsuites/libtests/POSIX/sigfillset.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/sigfillset.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <signal.h>
+
+int
+main (void)
+{
+  sigset_t set;
+  int status;
+  status = sigfillset (&set);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/sigprocmask.c
===================================================================
--- testsuites/libtests/POSIX/sigprocmask.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/sigprocmask.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <signal.h>
+
+int
+main (void)
+{
+  int status;
+  sigset_t set1, set2;
+
+  status = sigprocmask (SIG_BLOCK, &set1, &set2);
+  status = sigprocmask (SIG_UNBLOCK, &set1, &set2);
+  status = sigprocmask (SIG_SETMASK, &set1, &set2);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/stat.c
===================================================================
--- testsuites/libtests/POSIX/stat.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/stat.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,22 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
+int
+main (void)
+{
+  struct stat buf;
+  int status;
+
+  status = stat ("/tmp/foo", &buf);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/unlink.c
===================================================================
--- testsuites/libtests/POSIX/unlink.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/unlink.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,18 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <unistd.h>
+
+int
+main (void)
+{
+  int status;
+  status = unlink ("/tmp/foo");
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/vfork.c
===================================================================
--- testsuites/libtests/POSIX/vfork.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/vfork.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/types.h>
+#include <unistd.h>
+
+int
+main (void)
+{
+  pid_t pid;
+  pid = vfork ();
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/waitpid.c
===================================================================
--- testsuites/libtests/POSIX/waitpid.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/waitpid.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,20 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <sys/types.h>
+#include <sys/wait.h>
+
+int
+main (void)
+{
+  int status;
+  pid_t pid;
+  pid = waitpid (-1, &status, WNOHANG);
+
+  return 0;
+}
Index: testsuites/libtests/POSIX/write.c
===================================================================
--- testsuites/libtests/POSIX/write.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
+++ testsuites/libtests/POSIX/write.c	(revision 60d47abfcfa901aafd85ba49b12d5994d7ef9aae)
@@ -0,0 +1,21 @@
+/*
+ * Copyright (c) 2009 by
+ * Ralf CorsÃ©pius, Ulm, Germany. All rights reserved.
+ *
+ * Permission to use, copy, modify, and distribute this software
+ * is freely granted, provided that this notice is preserved.
+ */
+
+#include <unistd.h>
+
+int
+main (void)
+{
+  char string[] = "1234";
+  size_t count = 4;
+  ssize_t ret;
+
+  ret = write (0, &string, count);
+
+  return 0;
+}
