Lines Matching refs:open
61 printf("FAILURE: failed to open AppleKeyStore.\n");
420 fd = open(filepath, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC);
485 fd = open(filepath, O_RDWR | O_CLOEXEC);
489 printf("%s, line %d: failed to open a class A file when unlocked, errno = %s.\n",
556 /* Try to open and truncate the file. */
558 fd = open(filepath, O_RDWR | O_TRUNC | O_CLOEXEC);
562 printf("%s, line %d: was able to open and truncate a class A file when locked.\n",
567 /* Try to open the file */
568 fd = open(filepath, O_RDWR | O_CLOEXEC);
572 printf("%s, line %d: was able to open a class A file when locked.\n",
584 fd = open(filepath, O_RDWR | O_CLOEXEC);
588 printf("%s, line %d: was unable to open a class A file when unlocked.\n",
614 /* We should also be able to read/write to the file descriptor while it is open. */
647 /* We should not be able to open a class B file under lock. */
649 fd = open(filepath, O_RDWR | O_CLOEXEC);
653 printf("%s, line %d: was able to open a class B file when locked.\n",
669 dir_fd = open(dirpath, O_RDONLY | O_CLOEXEC);
673 printf("%s, line %d: failed to open an unclassed directory when locked, errno = %s.\n",
731 fd = open(filepath, O_CREAT | O_EXCL | O_CLOEXEC);
781 fd = open(filepath, O_CREAT | O_EXCL | O_CLOEXEC);
809 fd = open(filepath, O_CREAT | O_EXCL | O_RDWR | O_CLOEXEC);
858 subdir_fd = open(subdirpath, O_RDONLY | O_CLOEXEC);
862 printf("%s, line %d: failed to open subdirectory in class %d directory, errno = %s.\n",