Richard Nyberg
00e242ce2b
Add bts_filename which gets the current filename from a bt_stream.
пре 18 година
Richard Nyberg
f20c481b11
There's no need to fsync here, so remove the call. This should improve
write performance.
пре 18 година
Richard Nyberg
45bf9f2658
Allow empty files in torrents. Create them in stat_and_adjust and let the
stream abstraction skip past them.
пре 18 година
Richard Nyberg
13607e007a
Remove unused function bts_hashes.
пре 18 година
Richard Nyberg
334c94db46
There is no spoon^H^H^H^Htruct metainfo. Use struct mi_file instead.
пре 18 година
Richard Nyberg
b2a877537a
White space.
пре 19 година
Richard Nyberg
a3933c0761
Unify the write and read structs. There was no good reason to keep them
separate. Improve the bts_seek so that it only calls close or lseek if
necessary. Otherwise it's a nop. Hide bts_seek and instead make the offset
explicit in calls to bts_get or bts_put.
пре 19 година
Richard Nyberg
c285b374f8
The mega whitespace patch.
Tabs have been converted to spaces and trailing whitespace have been removed.
I have fixed my emacs settings now :P
пре 19 година
Richard Nyberg
c11a57b8cb
Fix style. Remove unnecessary check for EINTR.
пре 19 година
Richard Nyberg
dd0d462afa
Import btpd-0.1.
git-svn-id: file:///home/rnyberg/svngit/btpd/releases/0.1@1 76a1f634-46fa-0310-9943-bd1476092a85
пре 19 година