mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 10:21:20 +00:00
no real point in having them in corecheck/tests since they're not testing anything that Nulgrind doesn't provide. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4048
18 lines
323 B
C
18 lines
323 B
C
#include <sys/socket.h>
|
|
#include <unistd.h>
|
|
int
|
|
main (int argc, char **argv)
|
|
{
|
|
int fds[2];
|
|
|
|
/*
|
|
* Fedora Core 1's Perl opens /dev/pts/2 as fd 10. Let's close it
|
|
* now to get consistent results across different releases.
|
|
*/
|
|
|
|
close(10);
|
|
|
|
socketpair(AF_UNIX, SOCK_STREAM, PF_UNIX, fds);
|
|
return 0;
|
|
}
|