/external/e2fsprogs/misc/ |
mklost+found.c | 35 char path [sizeof (LPF) + 1 + 256]; local 62 strcpy (path, LPF); 63 strcat (path, "/"); 64 strcat (path, name); 65 if ((d = creat (path, 0644)) == -1) { 78 strcpy (path, LPF); 79 strcat (path, "/"); 80 strcat (path, name); 81 if (unlink (path) == -1) {
|
/external/libchrome/base/files/ |
scoped_temp_dir_unittest.cc | 35 FilePath path = dir.Take(); local 36 EXPECT_EQ(path.value(), test_path.value()); 66 // Create a path which will contain a unique temp path. 107 EXPECT_FALSE(dir.GetPath().empty()); // We should still have a valid path.
|
/external/libmicrohttpd/src/microspdy/ |
alstructures.h | 52 * HTTP path 54 char *path; member in struct:SPDY_Request
|
/external/libunwind/src/ptrace/ |
_UPT_find_proc_info.c | 42 char *path = NULL; local 66 if (tdep_get_elf_image (as, &ei, pid, ip, &segbase, &mapoff, &path, as_arg) < 0) 69 ret = tdep_find_unwind_table (edi, &ei, as, path, segbase, mapoff, ip); 70 free(path);
|
/external/libusb/examples/ |
listdevs.c | 28 uint8_t path[8]; local 42 r = libusb_get_port_numbers(dev, path, sizeof(path)); 44 printf(" path: %d", path[0]); 46 printf(".%d", path[j]);
|
/external/libxkbcommon/xkbcommon/bench/ |
compose.c | 37 char *path; local 44 path = test_get_path("compose/en_US.UTF-8/Compose"); 45 file = fopen(path, "r"); 62 free(path);
|
/external/linux-kselftest/tools/testing/selftests/efivarfs/ |
open-unlink.c | 13 static int set_immutable(const char *path, int immutable) 20 fd = open(path, O_RDONLY); 44 static int get_immutable(const char *path) 51 fd = open(path, O_RDONLY); 70 const char *path; local 75 fprintf(stderr, "usage: %s <path>\n", argv[0]); 79 path = argv[1]; 89 fd = open(path, O_WRONLY | O_CREAT, 0600); 103 rc = get_immutable(path); 108 rc = set_immutable(path, 0) [all...] |
/external/ltp/lib/ |
get_path.c | 25 * Looks for binary prog_name in $PATH. 28 * returned and absolute path to the file is filled into buf. In case buf is 29 * too short to hold the absolute path + prog_name for the file we are looking 31 * $PATH. 43 static int file_exist(const char *path) 47 if (!access(path, R_OK) && !stat(path, &st) && S_ISREG(st.st_mode)) 55 const char *path = (const char *)getenv("PATH"); local 56 const char *start = path; [all...] |
/external/ltp/testcases/kernel/containers/userns/ |
userns_helper.h | 46 char path[BUFSIZ]; local 51 sprintf(path, "/proc/%d/uid_map", cpid); 53 sprintf(path, "/proc/%d/gid_map", cpid); 58 fd = SAFE_OPEN(cleanup, path, O_WRONLY, 0644);
|
/external/ltp/testcases/kernel/syscalls/chroot/ |
chroot01.c | 58 char path[] = "/tmp"; variable 60 char path[] = "/data/local/tmp"; variable 81 TEST(chroot(path));
|
/external/ltp/testcases/kernel/syscalls/execle/ |
execle01.c | 55 char path[2048]; local 61 if (tst_get_path("execle01_child", path, sizeof(path))) 62 tst_brkm(TCONF, NULL, "Couldn't find execle01_child in $PATH"); 67 execle(path, "execle01_child", "canary", NULL, env);
|
/external/ltp/testcases/kernel/syscalls/execv/ |
execv01.c | 55 char path[2048]; local 61 if (tst_get_path("execv01_child", path, sizeof(path))) 62 tst_brkm(TCONF, NULL, "Couldn't find execv01_child in $PATH"); 67 execv(path, args);
|
/external/ltp/testcases/kernel/syscalls/execve/ |
execve01.c | 56 char path[2048]; local 62 if (tst_get_path("execve01_child", path, sizeof(path))) 63 tst_brkm(TCONF, NULL, "Couldn't find execve01_child in $PATH"); 68 execve(path, args, env);
|
/external/mockftpserver/MockFtpServer/src/main/java/org/mockftpserver/fake/command/ |
DeleCommandHandler.java | 40 String path = getRealPath(session, command.getRequiredParameter(0));
local 43 verifyFileSystemCondition(getFileSystem().isFile(path), path, "filesystem.isNotAFile");
local 46 verifyWritePermission(session, getFileSystem().getParent(path));
48 getFileSystem().delete(path);
49 sendReply(session, ReplyCodes.DELE_OK, "dele", list(path));
|
RmdCommandHandler.java | 40 String path = getRealPath(session, command.getRequiredParameter(0));
local 43 verifyFileSystemCondition(getFileSystem().exists(path), path, "filesystem.doesNotExist");
local 44 verifyFileSystemCondition(getFileSystem().isDirectory(path), path, "filesystem.isNotADirectory");
local 45 verifyFileSystemCondition(getFileSystem().listNames(path).size() == 0, path, "filesystem.directoryIsNotEmpty");
local 48 verifyWritePermission(session, getFileSystem().getParent(path));
50 getFileSystem().delete(path);
51 sendReply(session, ReplyCodes.RMD_OK, "rmd", list(path));
[all...] |
/external/pdfium/fpdfsdk/ |
fpdfeditpath_embeddertest.cpp | 18 FPDF_PAGEOBJECT path = FPDFPageObj_CreateNewPath(400, 100); local 19 EXPECT_TRUE(FPDFPath_SetFillColor(path, i, i, i, i)); 20 EXPECT_TRUE(FPDFPath_SetStrokeColor(path, i, i, i, i)); 21 EXPECT_TRUE(FPDFPath_SetDrawMode(path, FPDF_FILLMODE_ALTERNATE, 0)); 22 EXPECT_TRUE(FPDFPath_LineTo(path, 400, 200)); 23 EXPECT_TRUE(FPDFPath_LineTo(path, 300, 100)); 24 EXPECT_TRUE(FPDFPath_Close(path)); 26 FPDFPage_InsertObject(page, path); 39 FPDF_PAGEOBJECT path = FPDFPage_GetObject(page, i); local 40 ASSERT(path); [all...] |
/external/pdfium/xfa/fwl/theme/ |
cfwl_comboboxtp.cpp | 30 CXFA_GEPath path; local 32 path.AddRectangle(rect.left, rect.top, rect.width, rect.height); 46 pParams->m_pGraphics->FillPath(&path, FXFILL_WINDING, &pParams->m_matrix); 66 CXFA_GEPath path; local 67 path.AddRectangle(pParams->m_rtPart.left, pParams->m_rtPart.top, 71 pParams->m_pGraphics->FillPath(&path, FXFILL_WINDING, &pParams->m_matrix);
|
/external/perfetto/src/base/ |
temp_file_unittest.cc | 28 bool PathExists(const std::string& path) { 30 return stat(path.c_str(), &stat_buf) == 0; 34 std::string path; local 38 path = tf.path(); 40 ASSERT_NE("", path); 42 ASSERT_TRUE(PathExists(path)); 46 ASSERT_EQ("", tf.path()); 48 ASSERT_EQ(path, moved_tf.path()); 89 std::string path; local 104 std::string path; local [all...] |
/external/perfetto/src/ftrace_reader/test/ |
cpu_reader_support.cc | 36 std::string path = "src/ftrace_reader/test/data/" + name + "/"; local 37 FtraceProcfs ftrace(path);
|
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowContentUris.java | 22 String path = contentUri.getLastPathSegment(); local 23 if (path == null) return -1; 24 return Long.parseLong(path);
|
/external/robolectric-shadows/resources/src/main/java/org/robolectric/manifest/ |
PathPermissionData.java | 4 public final String path; field in class:PathPermissionData 10 PathPermissionData(String path, String pathPrefix, String pathPattern, String readPermission, String writePermission) { 11 this.path = path;
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowContentUris.java | 21 String path = contentUri.getLastPathSegment(); local 22 if (path == null) return -1; 23 return Long.parseLong(path);
|
/external/robolectric-shadows/utils/src/test/java/org/robolectric/util/ |
TempDirectoryTest.java | 6 import java.nio.file.Path; 17 Path path = tempDir.create("dir1"); local 18 Path path2 = tempDir.create("dir2"); 19 assertThat(path.getParent()).isEqualTo(path2.getParent());
|
/external/selinux/libselinux/src/ |
canonicalize_context.c | 15 char path[PATH_MAX]; local 25 snprintf(path, sizeof path, "%s/context", selinux_mnt); 26 fd = open(path, O_RDWR | O_CLOEXEC);
|
compute_av.c | 19 char path[PATH_MAX]; local 29 snprintf(path, sizeof path, "%s/access", selinux_mnt); 30 fd = open(path, O_RDWR | O_CLOEXEC);
|