Home
last modified time | relevance | path

Searched refs:tmpfd (Results 1 – 2 of 2) sorted by relevance

/xnu-12377.1.9/tests/
H A Dtime.c73 int tmpfd = create_tmpfile(); variable
76 int ret = fstat(tmpfd, &stbuf);
85 ret = futimes(tmpfd, amtimes);
88 ret = fstat(tmpfd, &stbuf);
H A Dkqueue_file_tests.c285 int res = -1, tmpfd, tmpfd2; in execute_action() local
302 if ((tmpfd = creat((char*)args[0], 0755)) == -1) { in execute_action()
307 ftruncate(tmpfd, 1); /* So that mmap() doesn't fool us */ in execute_action()
308 close(tmpfd); in execute_action()
315 if ((tmpfd = open((char*)args[0], O_RDONLY)) == -1) { in execute_action()
320 res = read(tmpfd, &c, 1); in execute_action()
322 close(tmpfd); in execute_action()
325 if ((tmpfd = open((char*)args[0], O_RDWR)) == -1) { in execute_action()
330 res = write(tmpfd, TEST_STRING, strlen(TEST_STRING)); in execute_action()
336 close(tmpfd); in execute_action()
[all …]