Patch level : 12.0 no-patch
Files correlati : Commento : Caricate modifiche suggerite da Alessandro (sono ovviamente da testare) git-svn-id: svn://10.65.10.50/branches/R_10_00@24289 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
388e9345fc
commit
090aa22750
@ -103,6 +103,9 @@ int seeklk(S, pos, lm, LockMode, rec)
|
|||||||
if (_lseek(S->F, LOCK_OFF + rec, SEEK_SET) == -1L)
|
if (_lseek(S->F, LOCK_OFF + rec, SEEK_SET) == -1L)
|
||||||
if ((S->IOR = CIOResult()) != NoErr) return(-1);
|
if ((S->IOR = CIOResult()) != NoErr) return(-1);
|
||||||
|
|
||||||
|
if (lm == LK_UNLCK)
|
||||||
|
_locking(S->F, LK_NBLCK, 1L);
|
||||||
|
|
||||||
if (lm == LK_UNLCK)
|
if (lm == LK_UNLCK)
|
||||||
_locking(S->F, LK_NBLCK, 1L);
|
_locking(S->F, LK_NBLCK, 1L);
|
||||||
if (_locking(S->F, lm, 1L) == -1)
|
if (_locking(S->F, lm, 1L) == -1)
|
||||||
|
@ -226,7 +226,7 @@ void CPutFile(logicname,filed,dirflg)
|
|||||||
int dirflg; /* flag per file comuni */
|
int dirflg; /* flag per file comuni */
|
||||||
|
|
||||||
{
|
{
|
||||||
CWrite(&fdir[dirflg], (RecType)filed, (long)logicname, NoLock /* non viene mai bloccato UnLock*/);
|
CWrite(&fdir[dirflg], (RecType)filed, (long)logicname, UnLock);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user