… | … | ||
---|---|---|---|
771 | 771 | ||
772 | X_LOCK (preadwritelock); | 772 | X_LOCK (preadwritelock); |
773 | ooffset = lseek (fd, 0, SEEK_CUR); | 773 | ooffset = lseek (fd, 0, SEEK_CUR); |
774 | lseek (fd, offset, SEEK_SET); | 774 | lseek (fd, offset, SEEK_SET); |
775 | res = write (fd, buf, count); | 775 | res = write (fd, buf, count); |
776 | lseek (fd, offset, SEEK_SET); | 776 | lseek (fd, ooffset, SEEK_SET); |
777 | X_UNLOCK (preadwritelock); | 777 | X_UNLOCK (preadwritelock); |
778 | 778 | ||
779 | return res; | 779 | return res; |
780 | } | 780 | } |
781 | #endif | 781 | #endif |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |