Searched refs:tempname (Results 1 – 4 of 4) sorted by relevance
/busybox-1.35.0/scripts/ |
D | trylink | 50 tempname="$(mktemp tmp.XXXXXXXXXX)" 51 echo "int main(int argc,char**argv){return argv?argc:0;}" >"$tempname".c 54 $CC $CFLAGS $LDFLAGS $1 "$tempname".c -o "$tempname" >/dev/null 2>&1 56 rm -f "$tempname" "$tempname".c "$tempname".o 61 tempname="$(mktemp tmp.XXXXXXXXXX)" 68 " >"$tempname".c 69 ! $CC $CFLAGS "$tempname".c -c -o "$tempname".o >/dev/null 2>&1 71 rm -f "$tempname" "$tempname".c "$tempname".o
|
/busybox-1.35.0/editors/ |
D | patch_toybox.c | 178 void replace_tempfile(int fdin, int fdout, char **tempname) in replace_tempfile() argument 180 char *temp = xstrdup(*tempname); in replace_tempfile() 188 rename(*tempname, temp); in replace_tempfile() 189 free(*tempname); in replace_tempfile() 191 *tempname = NULL; in replace_tempfile() 196 int copy_tempfile(int fdin, char *name, char **tempname) in copy_tempfile() argument 201 *tempname = xasprintf("%sXXXXXX", name); in copy_tempfile() 202 fd = mkstemp(*tempname); in copy_tempfile() 214 void delete_tempfile(int fdin, int fdout, char **tempname) in delete_tempfile() argument 218 unlink(*tempname); in delete_tempfile() [all …]
|
D | patch.c | 107 char *tempname; member 153 if (TT.tempname) { in finish_oldfile() 163 if (!ENABLE_LONG_OPTS || TT.tempname[0]) { /* not --dry-run? */ in finish_oldfile() 164 temp = xstrdup(TT.tempname); in finish_oldfile() 166 rename(TT.tempname, temp); in finish_oldfile() 168 free(TT.tempname); in finish_oldfile() 171 TT.tempname = NULL; in finish_oldfile() 194 if (!ENABLE_LONG_OPTS || TT.tempname[0]) { /* not --dry-run? */ in fail_hunk() 195 unlink(TT.tempname); in fail_hunk() 196 free(TT.tempname); in fail_hunk() [all …]
|
/busybox-1.35.0/networking/ |
D | ftpd.c | 956 char *tempname; in handle_upload_common() local 968 tempname = NULL; in handle_upload_common() 971 tempname = xstrdup(" FILE: uniq.XXXXXX"); in handle_upload_common() 972 local_file_fd = mkstemp(tempname + 7); in handle_upload_common() 986 free(tempname); in handle_upload_common() 997 remote_fd = get_remote_transfer_fd(tempname ? tempname : " Ok to send data"); in handle_upload_common() 998 free(tempname); in handle_upload_common()
|