Home
last modified time | relevance | path

Searched refs:pszTmpDestFile (Results 1 – 2 of 2) sorted by relevance

/aoo42x/main/sal/osl/unx/
H A Dfile_misc.cxx845 sal_Char pszTmpDestFile[PATH_MAX]; in oslDoCopy() local
846 size_t size_tmp_dest_buff = sizeof(pszTmpDestFile); in oslDoCopy()
852 memset(pszTmpDestFile, 0, size_tmp_dest_buff); in oslDoCopy()
856 strncpy(pszTmpDestFile, pszDestFileName, size_tmp_dest_buff - 1); in oslDoCopy()
858 if ((strlen(pszTmpDestFile) + strlen(TMP_DEST_FILE_EXTENSION)) >= size_tmp_dest_buff) in oslDoCopy()
861 strncat(pszTmpDestFile, TMP_DEST_FILE_EXTENSION, strlen(TMP_DEST_FILE_EXTENSION)); in oslDoCopy()
865 nRet=rename(pszDestFileName,pszTmpDestFile); in oslDoCopy()
888 rename(pszTmpDestFile,pszDestFileName); in oslDoCopy()
898 unlink(pszTmpDestFile); in oslDoCopy()
/aoo42x/main/sal/osl/os2/
H A Dfile.cxx1947 sal_Char pszTmpDestFile[PATH_MAX]; in oslDoCopy() local
1948 size_t size_tmp_dest_buff = sizeof(pszTmpDestFile); in oslDoCopy()
1954 memset(pszTmpDestFile, 0, size_tmp_dest_buff); in oslDoCopy()
1958 strncpy(pszTmpDestFile, pszDestFileName, size_tmp_dest_buff - 1); in oslDoCopy()
1960 if ((strlen(pszTmpDestFile) + strlen(TMP_DEST_FILE_EXTENSION)) >= size_tmp_dest_buff) in oslDoCopy()
1963 strncat(pszTmpDestFile, TMP_DEST_FILE_EXTENSION, strlen(TMP_DEST_FILE_EXTENSION)); in oslDoCopy()
1967 nRet=rename(pszDestFileName,pszTmpDestFile); in oslDoCopy()
1990 rename(pszTmpDestFile,pszDestFileName); in oslDoCopy()
2000 unlink(pszTmpDestFile); in oslDoCopy()

Completed in 21 milliseconds