Home
last modified time | relevance | path

Searched refs:tmpfilename (Results 1 – 4 of 4) sorted by relevance

/external/libevent/test/
Dregress_main.c125 char tmpfilename[32]; in regress_make_tmpfile() local
128 strcpy(tmpfilename, "/tmp/eventtmp.XXXXXX"); in regress_make_tmpfile()
132 fd = mkstemp(tmpfilename); in regress_make_tmpfile()
141 unlink(tmpfilename); in regress_make_tmpfile()
146 char tmpfilename[MAX_PATH]; in regress_make_tmpfile()
154 r = GetTempFileNameA(tmpfilepath, "LIBEVENT", 0, tmpfilename); in regress_make_tmpfile()
157 h = CreateFileA(tmpfilename, GENERIC_READ|GENERIC_WRITE, in regress_make_tmpfile()
165 *filename_out = strdup(tmpfilename); in regress_make_tmpfile()
Dregress_buffer.c930 char *tmpfilename = NULL; in test_evbuffer_add_file() local
1012 fd = regress_make_tmpfile(data, datalen, &tmpfilename); in test_evbuffer_add_file()
1117 if (tmpfilename) { in test_evbuffer_add_file()
1118 unlink(tmpfilename); in test_evbuffer_add_file()
1119 free(tmpfilename); in test_evbuffer_add_file()
1139 char *tmpfilename = NULL; in test_evbuffer_file_segment_add_cleanup_cb() local
1145 fd = regress_make_tmpfile("file_segment_test_file", 22, &tmpfilename); in test_evbuffer_file_segment_add_cleanup_cb()
1181 if (tmpfilename) { in test_evbuffer_file_segment_add_cleanup_cb()
1182 unlink(tmpfilename); in test_evbuffer_file_segment_add_cleanup_cb()
1183 free(tmpfilename); in test_evbuffer_file_segment_add_cleanup_cb()
/external/ltp/testcases/kernel/syscalls/sendmsg/
Dsendmsg01.c622 static char tmpfilename[1024]; variable
630 strcpy(tmpfilename, "sockXXXXXX"); in setup4()
631 tfd = mkstemp(tmpfilename); in setup4()
/external/python/cpython3/Tools/clinic/
Dclinic.py1898 tmpfilename = os.path.join(tmpdir, os.path.basename(filename))
1899 with open(tmpfilename, "wb") as f:
1901 os.replace(tmpfilename, output or filename)