Lines Matching refs:nRet

439     int nRet=0;  in osl_psz_createDirectory()  local
442 nRet = mkdir(pszPath,mode); in osl_psz_createDirectory()
444 if ( nRet < 0 ) in osl_psz_createDirectory()
446 nRet=errno; in osl_psz_createDirectory()
447 return oslTranslateFileError(OSL_FET_ERROR, nRet); in osl_psz_createDirectory()
459 int nRet=0; in osl_psz_removeDirectory() local
461 nRet = rmdir(pszPath); in osl_psz_removeDirectory()
463 if ( nRet < 0 ) in osl_psz_removeDirectory()
465 nRet=errno; in osl_psz_removeDirectory()
466 return oslTranslateFileError(OSL_FET_ERROR, nRet); in osl_psz_removeDirectory()
718 int nRet=0; in osl_psz_removeFile() local
721 nRet = lstat(pszPath,&aStat); in osl_psz_removeFile()
722 if ( nRet < 0 ) in osl_psz_removeFile()
724 nRet=errno; in osl_psz_removeFile()
725 return oslTranslateFileError(OSL_FET_ERROR, nRet); in osl_psz_removeFile()
733 nRet = unlink(pszPath); in osl_psz_removeFile()
734 if ( nRet < 0 ) in osl_psz_removeFile()
736 nRet=errno; in osl_psz_removeFile()
737 return oslTranslateFileError(OSL_FET_ERROR, nRet); in osl_psz_removeFile()
750 int nRet = 0; in osl_psz_moveFile() local
752 nRet = rename(pszPath,pszDestPath); in osl_psz_moveFile()
754 if ( nRet < 0 ) in osl_psz_moveFile()
756 nRet=errno; in osl_psz_moveFile()
757 return oslTranslateFileError(OSL_FET_ERROR, nRet); in osl_psz_moveFile()
773 int nRet=0; in osl_psz_copyFile() local
781 nRet = lstat(pszPath,&aFileStat); in osl_psz_copyFile()
783 if ( nRet < 0 ) in osl_psz_copyFile()
785 nRet=errno; in osl_psz_copyFile()
786 return oslTranslateFileError(OSL_FET_ERROR, nRet); in osl_psz_copyFile()
802 nRet = stat(pszDestPath,&aFileStat); in osl_psz_copyFile()
803 if ( nRet < 0 ) in osl_psz_copyFile()
805 nRet=errno; in osl_psz_copyFile()
807 if ( nRet == ENOENT ) in osl_psz_copyFile()
815 if ( nRet == 0 && S_ISDIR(aFileStat.st_mode) ) in osl_psz_copyFile()
856 int nRet=0; in oslDoCopy() local
877 nRet=rename(pszDestFileName,pszTmpDestFile); in oslDoCopy()
884 nRet = oslDoCopyFile(pszSourceFileName,pszDestFileName,nSourceSize, nMode); in oslDoCopy()
889 nRet = oslDoCopyLink(pszSourceFileName,pszDestFileName); in oslDoCopy()
894 nRet=ENOSYS; in oslDoCopy()
897 if ( nRet > 0 && DestFileExists == 1 ) in oslDoCopy()
903 if ( nRet > 0 ) in oslDoCopy()
905 return oslTranslateFileError(OSL_FET_ERROR, nRet); in oslDoCopy()
922 int nRet=0; in oslChangeFileModes() local
925 nRet = chmod(pszFileName,nMode); in oslChangeFileModes()
926 if ( nRet < 0 ) in oslChangeFileModes()
928 nRet=errno; in oslChangeFileModes()
929 return oslTranslateFileError(OSL_FET_ERROR, nRet); in oslChangeFileModes()
934 nRet=utime(pszFileName,&aTimeBuffer); in oslChangeFileModes()
935 if ( nRet < 0 ) in oslChangeFileModes()
937 nRet=errno; in oslChangeFileModes()
938 return oslTranslateFileError(OSL_FET_ERROR, nRet); in oslChangeFileModes()
946 nRet=chown(pszFileName,nUID,nGID); in oslChangeFileModes()
947 if ( nRet < 0 ) in oslChangeFileModes()
949 nRet=errno; in oslChangeFileModes()
964 int nRet=0; in oslDoCopyLink() local
972 nRet = readlink(pszSourceFileName,pszLinkContent,PATH_MAX); in oslDoCopyLink()
974 if ( nRet < 0 ) in oslDoCopyLink()
976 nRet=errno; in oslDoCopyLink()
977 return nRet; in oslDoCopyLink()
980 pszLinkContent[ nRet ] = 0; in oslDoCopyLink()
982 nRet = symlink(pszLinkContent,pszDestFileName); in oslDoCopyLink()
984 if ( nRet < 0 ) in oslDoCopyLink()
986 nRet=errno; in oslDoCopyLink()
987 return nRet; in oslDoCopyLink()
1001 int nRet=0; in oslDoCopyFile() local
1006 nRet=errno; in oslDoCopyFile()
1007 return nRet; in oslDoCopyFile()
1014 nRet=errno; in oslDoCopyFile()
1016 return nRet; in oslDoCopyFile()
1049 nRet = errno; in oslDoCopyFile()
1051 nRet = ENOSPC; in oslDoCopyFile()
1055 if ( close( DestFileFD ) == -1 && nRet == 0 ) in oslDoCopyFile()
1056 nRet = errno; in oslDoCopyFile()
1058 return nRet; in oslDoCopyFile()