mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-04 02:18:37 +00:00
Authors of this port:
Petr Pavlu setup@dagobah.cz
Ivo Raisr ivosh@ivosh.net
Theo Schlossnagle theo@omniti.com
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@15426
17 lines
303 B
C
17 lines
303 B
C
#include <unistd.h>
|
|
#include <stdio.h>
|
|
#include <fcntl.h>
|
|
#include "fdleak.h"
|
|
|
|
int main (int argc, char **argv)
|
|
{
|
|
char filename[24];
|
|
|
|
CLOSE_INHERITED_FDS;
|
|
|
|
sprintf(filename, "/tmp/file.%ld", (long) getpid());
|
|
(void) DO( creat(filename, 0) );
|
|
(void) DO( unlink(filename) );
|
|
return 0;
|
|
}
|