Home
last modified time | relevance | path

Searched refs:tmpname (Results 1 – 25 of 34) sorted by relevance

12

/third_party/python/Lib/test/
Dtest_tarfile.py44 tmpname = os.path.join(TEMPDIR, "tmp.tar") variable
328 with open(tmpname, "wb"):
332 self.assertFalse(tarfile.is_tarfile(tmpname))
335 self.assertFalse(tarfile.is_tarfile(pathlib.Path(tmpname)))
338 with open(tmpname, "rb") as fobj:
364 with tarfile.open(tmpname, self.mode.replace("r", "w")):
367 tar = tarfile.open(tmpname, self.mode)
386 with open(tmpname, "wb"):
388 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname, self.mode)
389 self.assertRaises(tarfile.ReadError, tarfile.open, tmpname)
[all …]
/third_party/ltp/testcases/kernel/mem/mmapstress/
Dmmapstress07.c43 static char *tmpname; variable
50 (void)unlink(tmpname); \
81 (void)unlink(tmpname); in cleanup()
118 tmpname = argv[1];
153 if ((rofd = open64(tmpname, O_RDONLY | O_CREAT, 0777)) == -1) {
155 if ((rofd = open(tmpname, O_RDONLY | O_CREAT, 0777)) == -1) {
161 if ((rwfd = open64(tmpname, O_RDWR)) == -1) {
163 if ((rwfd = open(tmpname, O_RDWR)) == -1) {
288 if (unlink(tmpname) == -1) {
Dmmapstress02.c44 #define CLEANERROR(M) (void)unlink(tmpname); ERROR(M)
51 static char tmpname[] = "fileXXXXXX"; variable
75 (void)unlink(tmpname); in cleanup()
98 if ((fd = mkstemp(tmpname)) == -1) { in main()
166 if (unlink(tmpname) == -1) { in main()
Dmmapstress05.c71 if (unlink(tmpname)) { \
89 static char tmpname[] = "fileXXXXXX"; variable
100 (void)unlink(tmpname); in cleanup()
140 if ((fd = mkstemp(tmpname)) == -1) { in main()
/third_party/wayland_standard/cursor/
Dos-compatibility.c68 create_tmpfile_cloexec(char *tmpname) in create_tmpfile_cloexec() argument
73 fd = mkostemp(tmpname, O_CLOEXEC); in create_tmpfile_cloexec()
75 unlink(tmpname); in create_tmpfile_cloexec()
77 fd = mkstemp(tmpname); in create_tmpfile_cloexec()
80 unlink(tmpname); in create_tmpfile_cloexec()
/third_party/ltp/testcases/kernel/syscalls/fcntl/
Dfcntl15.c43 static char tmpname[10] = "testfile"; variable
74 fd = SAFE_OPEN(tmpname, file_flag, file_mode); in lock_region_two()
87 fd = SAFE_OPEN(tmpname, file_flag, file_mode); in do_test()
126 fd[0] = SAFE_OPEN(tmpname, file_flag, file_mode); in run_test()
137 fd[1] = SAFE_OPEN(tmpname, file_flag, file_mode); in run_test()
170 SAFE_UNLINK(tmpname); in run_test()
Dfcntl16.c273 static char tmpname[40]; variable
420 sprintf(tmpname, "fcntl4.%d", parent); in setup()
455 fd = SAFE_OPEN(cleanup, tmpname, file_flag, file_mode); in run_test()
470 unlink(tmpname); in run_test()
484 unlink(tmpname); in run_test()
555 unlink(tmpname); in run_test()
569 unlink(tmpname); in run_test()
642 unlink(tmpname); in run_test()
Dfcntl14.c539 static char tmpname[40]; variable
570 sprintf(tmpname, "fcntl2.%d", parent); in setup()
782 fd = SAFE_OPEN(cleanup, tmpname, file_flag, file_mode); in run_test()
899 unlink(tmpname); in run_test()
1018 fd = SAFE_OPEN(cleanup, tmpname, O_CREAT | O_RDWR | O_TRUNC, in main()
1042 unlink(tmpname); in main()
1055 fd = SAFE_OPEN(cleanup, tmpname, O_CREAT | O_RDWR | O_TRUNC, in main()
1150 unlink(tmpname); in main()
/third_party/weston/tests/
Dbad-buffer-test.c69 create_tmpfile_cloexec(char *tmpname) in create_tmpfile_cloexec() argument
74 fd = mkostemp(tmpname, O_CLOEXEC); in create_tmpfile_cloexec()
76 unlink(tmpname); in create_tmpfile_cloexec()
78 fd = mkstemp(tmpname); in create_tmpfile_cloexec()
81 unlink(tmpname); in create_tmpfile_cloexec()
/third_party/mesa3d/src/util/
Danon_file.c73 create_tmpfile_cloexec(char *tmpname) in create_tmpfile_cloexec() argument
78 fd = mkostemp(tmpname, O_CLOEXEC); in create_tmpfile_cloexec()
80 fd = mkstemp(tmpname); in create_tmpfile_cloexec()
91 unlink(tmpname); in create_tmpfile_cloexec()
/third_party/weston/shared/
Dos-compatibility.c115 create_tmpfile_cloexec(char *tmpname) in create_tmpfile_cloexec() argument
120 fd = mkostemp(tmpname, O_CLOEXEC); in create_tmpfile_cloexec()
122 unlink(tmpname); in create_tmpfile_cloexec()
124 fd = mkstemp(tmpname); in create_tmpfile_cloexec()
127 unlink(tmpname); in create_tmpfile_cloexec()
/third_party/openssl/crypto/asn1/
Dasn_mime.c802 char *tmpname = NULL, *tmpval = NULL, *p; in mime_hdr_new() local
805 if ((tmpname = OPENSSL_strdup(name)) == NULL) in mime_hdr_new()
807 for (p = tmpname; *p; p++) in mime_hdr_new()
819 mhdr->name = tmpname; in mime_hdr_new()
826 OPENSSL_free(tmpname); in mime_hdr_new()
834 char *tmpname = NULL, *tmpval = NULL, *p; in mime_hdr_addparam() local
838 tmpname = OPENSSL_strdup(name); in mime_hdr_addparam()
839 if (!tmpname) in mime_hdr_addparam()
841 for (p = tmpname; *p; p++) in mime_hdr_addparam()
853 mparam->param_name = tmpname; in mime_hdr_addparam()
[all …]
/third_party/openssl/crypto/dh/
Ddh_meth.c65 char *tmpname = OPENSSL_strdup(name); in DH_meth_set1_name() local
67 if (tmpname == NULL) { in DH_meth_set1_name()
73 dhm->name = tmpname; in DH_meth_set1_name()
/third_party/ltp/testcases/kernel/fs/ftest/
Dftest02.c87 static char tmpname[MAXPATHLEN]; variable
127 sprintf(tmpname, "/ftest02.%d", getpid()); in main()
128 strcat(dirname, tmpname); in main()
130 sprintf(tmpname, "/ftest02h.%d", getpid()); in main()
131 strcat(homedir, tmpname); in main()
/third_party/openssl/crypto/dsa/
Ddsa_meth.c73 char *tmpname = OPENSSL_strdup(name); in DSA_meth_set1_name() local
75 if (tmpname == NULL) { in DSA_meth_set1_name()
81 dsam->name = tmpname; in DSA_meth_set1_name()
/third_party/gettext/gettext-tools/examples/hello-c++-kde/admin/
Dcvs.sh409 tmpname="$PWD/messages.log"
434 ) 2>&1 | grep -v '^make\[1\]' > $tmpname
435 test -s $tmpname && { echo $subdir ; cat "$tmpname"; }
440 rm -f $tmpname
/third_party/toybox/kconfig/
Dconfdata.c403 char dirname[128], tmpname[128], newname[128]; in conf_write() local
435 sprintf(tmpname, "%s.tmpconfig.%d", dirname, (int)getpid()); in conf_write()
436 out = fopen(tmpname, "w"); in conf_write()
438 *tmpname = 0; in conf_write()
558 if (*tmpname) { in conf_write()
562 if (rename(tmpname, newname)) in conf_write()
/third_party/openssl/crypto/rsa/
Drsa_meth.c65 char *tmpname = OPENSSL_strdup(name); in RSA_meth_set1_name() local
67 if (tmpname == NULL) { in RSA_meth_set1_name()
73 meth->name = tmpname; in RSA_meth_set1_name()
/third_party/alsa-utils/iecset/
Diecset.c324 char tmpname[32]; in main() local
341 sprintf(tmpname, "hw:%d", i); in main()
342 dev = tmpname; in main()
/third_party/skia/third_party/externals/libpng/contrib/tools/
Dpngcp.c2225 char *tmpname, tmpbuf[(sizeof dp->namebuf) + 4]; in cp_one_file() local
2237 tmpname = tmpbuf; in cp_one_file()
2241 tmpname = NULL; /* stdout */ in cp_one_file()
2246 write_png(dp, tmpname); in cp_one_file()
2256 if (destname != NULL && rename(tmpname, destname) != 0) in cp_one_file()
2257 display_log(dp, APP_ERROR, "rename %s %s failed (%s)", tmpname, in cp_one_file()
2264 else if (tmpname != NULL && unlink(tmpname) != 0) in cp_one_file()
2265 display_log(dp, APP_WARNING, "unlink %s failed (%s)", tmpname, in cp_one_file()
/third_party/libpng/contrib/tools/
Dpngcp.c2225 char *tmpname, tmpbuf[(sizeof dp->namebuf) + 4]; in cp_one_file() local
2237 tmpname = tmpbuf; in cp_one_file()
2241 tmpname = NULL; /* stdout */ in cp_one_file()
2246 write_png(dp, tmpname); in cp_one_file()
2256 if (destname != NULL && rename(tmpname, destname) != 0) in cp_one_file()
2257 display_log(dp, APP_ERROR, "rename %s %s failed (%s)", tmpname, in cp_one_file()
2264 else if (tmpname != NULL && unlink(tmpname) != 0) in cp_one_file()
2265 display_log(dp, APP_WARNING, "unlink %s failed (%s)", tmpname, in cp_one_file()
/third_party/flutter/skia/third_party/externals/libpng/contrib/tools/
Dpngcp.c2225 char *tmpname, tmpbuf[(sizeof dp->namebuf) + 4]; in cp_one_file() local
2237 tmpname = tmpbuf; in cp_one_file()
2241 tmpname = NULL; /* stdout */ in cp_one_file()
2246 write_png(dp, tmpname); in cp_one_file()
2256 if (destname != NULL && rename(tmpname, destname) != 0) in cp_one_file()
2257 display_log(dp, APP_ERROR, "rename %s %s failed (%s)", tmpname, in cp_one_file()
2264 else if (tmpname != NULL && unlink(tmpname) != 0) in cp_one_file()
2265 display_log(dp, APP_WARNING, "unlink %s failed (%s)", tmpname, in cp_one_file()
/third_party/flutter/glfw/src/
Dwl_window.c256 createTmpfileCloexec(char* tmpname) in createTmpfileCloexec() argument
260 fd = mkostemp(tmpname, O_CLOEXEC); in createTmpfileCloexec()
262 unlink(tmpname); in createTmpfileCloexec()
/third_party/wayland-ivi-extension/weston-ivi-shell/src/
Divi-controller.c457 char *tmpname; local
464 tmpname = malloc(strlen(runtimedir) + sizeof(template));
465 if (tmpname == NULL)
468 fd = mkstemp(strcat(strcpy(tmpname, runtimedir), template));
471 free(tmpname);
475 unlink(tmpname);
476 free(tmpname);
/third_party/gstreamer/gstplugins_base/gst-libs/gst/pbutils/
Dgstdiscoverer.c656 gchar *tmpname; in uridecodebin_pad_added_cb() local
676 tmpname = g_strdup_printf ("discoverer-queue-%s", padname); in uridecodebin_pad_added_cb()
677 ps->queue = gst_element_factory_make ("queue", tmpname); in uridecodebin_pad_added_cb()
678 g_free (tmpname); in uridecodebin_pad_added_cb()
679 tmpname = g_strdup_printf ("discoverer-sink-%s", padname); in uridecodebin_pad_added_cb()
680 ps->sink = gst_element_factory_make ("fakesink", tmpname); in uridecodebin_pad_added_cb()
681 g_free (tmpname); in uridecodebin_pad_added_cb()

12