Lines Matching refs:linkat
25 * @tc.desc : Vertify linkat process success.
38 int result = linkat(fd1, "/etc/test.txt", fd2, "/etc/linkat.txt", AT_SYMLINK_FOLLOW);
40 EXPECT_EQ("linkat_0100", access("/etc/linkat.txt", F_OK), 0);
41 system("rm -f /etc/linkat.txt");
46 * @tc.desc : Vertify linkat process fail. Beceause creating a hard linkat file with the same name.
53 if (access("/etc/linkat.txt", F_OK) != 0) {
61 int result = linkat(fd1, "/etc/test.txt", fd2, "/etc/linkat.txt", AT_SYMLINK_FOLLOW);
64 EXPECT_NE("linkat_0200", linkat(fd1, "/etc/test.txt", fd2, "/etc/linkat.txt", AT_SYMLINK_FOLLOW), 0);
66 system("rm -f /etc/linkat.txt");
71 * @tc.desc : Vertify linkat process fail. Beceause param is invalid.
76 int result = linkat(-1, NULL, -1, NULL, -1);
84 if (access("/etc/linkat.txt", F_OK) == 0) {
85 system("rm -f /etc/linkat.txt");