B_FROM_POSIX_ERROR
#define B_BUFFER_OVERFLOW B_FROM_POSIX_ERROR(HAIKU_EOVERFLOW)
#define B_TOO_MANY_ARGS B_FROM_POSIX_ERROR(HAIKU_E2BIG)
#define B_FILE_TOO_LARGE B_FROM_POSIX_ERROR(HAIKU_EFBIG)
#define B_RESULT_NOT_REPRESENTABLE B_FROM_POSIX_ERROR(HAIKU_ERANGE)
#define B_DEVICE_NOT_FOUND B_FROM_POSIX_ERROR(HAIKU_ENODEV)
#define B_NOT_SUPPORTED B_FROM_POSIX_ERROR(HAIKU_EOPNOTSUPP)
#define B_BUFFER_OVERFLOW B_FROM_POSIX_ERROR(EOVERFLOW)
#define B_TOO_MANY_ARGS B_FROM_POSIX_ERROR(E2BIG)
#define B_FILE_TOO_LARGE B_FROM_POSIX_ERROR(EFBIG)
#define B_RESULT_NOT_REPRESENTABLE B_FROM_POSIX_ERROR(ERANGE)
#define B_DEVICE_NOT_FOUND B_FROM_POSIX_ERROR(ENODEV)
#define B_NOT_SUPPORTED B_FROM_POSIX_ERROR(EOPNOTSUPP)
status_t entryStatus = B_FROM_POSIX_ERROR(deupdat(fatNode, 1));
= B_FROM_POSIX_ERROR(msdosfs_lookup_ino(bsdDir, NULL, bsdName.Data(), &cluster, &offset));
status = B_FROM_POSIX_ERROR(removede(fatDir, fatNode));
status = B_FROM_POSIX_ERROR(
status = B_FROM_POSIX_ERROR(
status = B_FROM_POSIX_ERROR(
if (status != B_OK && status != B_FROM_POSIX_ERROR(EJUSTRETURN))
status = B_FROM_POSIX_ERROR(doscheckpath(fromFatNode, toDirFatNode, &dummy));
status = B_FROM_POSIX_ERROR(removede(toDirFatNode, toFatNode));
status = B_FROM_POSIX_ERROR(uniqdosname(toDirFatNode, toBsdName.Data(), toShortName));
status = B_FROM_POSIX_ERROR(removede(fromDirFatNode, fromFatNode));
RETURN_ERROR(B_FROM_POSIX_ERROR(status));
status = B_FROM_POSIX_ERROR(removede(fromDirFatNode, fromFatNode));
status = B_FROM_POSIX_ERROR(pcbmap(toDirFatNode, de_cluster(fatVolume, toDirOffset), 0,
status = B_FROM_POSIX_ERROR(
} else if ((status = B_FROM_POSIX_ERROR(bwrite(dotDotBuf))) != B_OK) {
status = B_FROM_POSIX_ERROR(detrunc(fatNode, stat->st_size, 0, NOCRED));
status = B_FROM_POSIX_ERROR(deupdat(fatNode, (bsdVolume->mnt_flag & MNT_SYNCHRONOUS) != 0));
= B_FROM_POSIX_ERROR(msdosfs_lookup_ino(bsdDir, NULL, bsdName.Data(), &cluster, &offset));
status = B_FROM_POSIX_ERROR(detrunc(existingFatNode, 0, 0, NOCRED));
if (status != B_FROM_POSIX_ERROR(EJUSTRETURN))
status = B_FROM_POSIX_ERROR(uniqdosname(fatDir, bsdName.Data(), newDirentry.de_Name));
status = B_FROM_POSIX_ERROR(createde(&newDirentry, fatDir, NULL, bsdName.Data()));
status = B_FROM_POSIX_ERROR(
status = B_FROM_POSIX_ERROR(detrunc(fatNode, 0, 0, NOCRED));
status = B_FROM_POSIX_ERROR(deextend(fatNode, static_cast<size_t>(pos) + *length, NOCRED));
status_t undoStatus = B_FROM_POSIX_ERROR(detrunc(fatNode, origSize, truncFlag, NOCRED));
RETURN_ERROR(B_FROM_POSIX_ERROR(status));
status = B_FROM_POSIX_ERROR(clusteralloc(fatVolume, 0, 1, CLUST_EOFE, &newCluster, NULL));
} else if ((status = B_FROM_POSIX_ERROR(bwrite(newData))) != B_OK) {
status = B_FROM_POSIX_ERROR(uniqdosname(fatParent, bsdName.Data(), newEntry.de_Name));
status = B_FROM_POSIX_ERROR(createde(&newEntry, fatParent, NULL, bsdName.Data()));
status_t status = B_FROM_POSIX_ERROR(
status = B_FROM_POSIX_ERROR(removede(fatParent, fatTarget));
status = B_FROM_POSIX_ERROR(
status = B_FROM_POSIX_ERROR(
RETURN_ERROR(B_FROM_POSIX_ERROR(errno));
return B_FROM_POSIX_ERROR(status);
RETURN_ERROR(B_FROM_POSIX_ERROR(errno));
RETURN_ERROR(B_FROM_POSIX_ERROR(errno));
RETURN_ERROR(B_FROM_POSIX_ERROR(errno));
status_t status = B_FROM_POSIX_ERROR(getnewvnode(NULL, bsdDevice->si_mountpt, NULL, &node));
status = B_FROM_POSIX_ERROR(fillinusemap(fatVolume));
status = B_FROM_POSIX_ERROR(markvoldirty(fatVolume, 1));
status = B_FROM_POSIX_ERROR(markvoldirty((volume), 0));
status = B_FROM_POSIX_ERROR(deget(fatVolume, dirClust, dirOffset, LK_EXCLUSIVE, &fatNode));
status_t status = B_FROM_POSIX_ERROR(
status = B_FROM_POSIX_ERROR(deupdat(fatNode, 0));
status = B_FROM_POSIX_ERROR(detrunc(fatNode, static_cast<u_long>(0), 0, NOCRED));
fatStatus = B_FROM_POSIX_ERROR(fatentry(FAT_GET, fatVolume, cluster, &cluster, 0));
status = B_FROM_POSIX_ERROR(fatentry(FAT_GET, fatVolume, cluster, &cluster, 0));
status = B_FROM_POSIX_ERROR(fatentry(FAT_GET, fatVolume, cluster, &cluster, 0));
status = B_FROM_POSIX_ERROR(msdosfs_iconv->open(windows, haiku, &fatVolume->pm_u2w));
status = B_FROM_POSIX_ERROR(msdosfs_iconv->open(haiku, windows, &fatVolume->pm_w2u));
status = B_FROM_POSIX_ERROR(msdosfs_iconv->open(dos, haiku, &fatVolume->pm_u2d));
status = B_FROM_POSIX_ERROR(msdosfs_iconv->open(haiku, dos, &fatVolume->pm_d2u));
REPORT_ERROR(B_FROM_POSIX_ERROR(status));