• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /xnu-2782.1.97/tools/tests/xnu_quick_test/

Lines Matching refs:open

61 		printf("FAILURE: failed to open AppleKeyStore.\n");
420 fd = open(filepath, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC, 0777);
473 fd = open (filepath, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC);
509 fd = open(filepath, O_RDWR | O_CLOEXEC);
513 printf("%s, line %d: failed to open a class A file when unlocked, errno = %s.\n",
580 /* Try to open and truncate the file. */
582 fd = open(filepath, O_RDWR | O_TRUNC | O_CLOEXEC);
586 printf("%s, line %d: was able to open and truncate a class A file when locked.\n",
591 /* Try to open the file */
592 fd = open(filepath, O_RDWR | O_CLOEXEC);
596 printf("%s, line %d: was able to open a class A file when locked.\n",
608 fd = open(filepath, O_RDWR | O_CLOEXEC);
612 printf("%s, line %d: was unable to open a class A file when unlocked.\n",
645 /* We should also be able to read/write to the file descriptor while it is open. */
678 /* We should not be able to open a class B file under lock. */
680 fd = open(filepath, O_RDWR | O_CLOEXEC);
684 printf("%s, line %d: was able to open a class B file when locked.\n",
700 dir_fd = open(dirpath, O_RDONLY | O_CLOEXEC);
704 printf("%s, line %d: failed to open an unclassed directory when locked, errno = %s.\n",
771 fd = open(filepath, O_CREAT | O_EXCL | O_CLOEXEC, 0777);
822 fd = open(filepath, O_CREAT | O_EXCL | O_CLOEXEC, 0777);
850 fd = open(filepath, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC, 0777);
899 subdir_fd = open(subdirpath, O_RDONLY | O_CLOEXEC);
903 printf("%s, line %d: failed to open subdirectory in class %d directory, errno = %s.\n",