Richard Nyberg
1a82f0c154
White space.
il y a 19 ans
Richard Nyberg
634df68e31
Add functions find_btpd_dir.
il y a 19 ans
Richard Nyberg
8d05b64fa1
Remove unused function canon_path.
il y a 19 ans
Richard Nyberg
273294989e
Use benc_dget_mema instead of benc_dget_mem + malloc + bcopy.
il y a 19 ans
Richard Nyberg
b0c4f58f10
Use strtoul to parse length of strings.
il y a 19 ans
Richard Nyberg
d88c65e982
Added buf_swrite.
il y a 19 ans
Richard Nyberg
36a68e4b76
Check for failure to allocate memory.
il y a 19 ans
Richard Nyberg
af64140b1f
Remove som unused code I commited by mistake. Replace integer parse code
in benc_int with a call to strtoll.
il y a 19 ans
Richard Nyberg
01c92051d5
o Changed the benc_ api to make it easier to use.
o Lot of work on the cli and its communication with btpd.
il y a 19 ans
Richard Nyberg
6559fcb9a4
Make the buf api safe to continue to use even if an error has occured.
il y a 19 ans
Richard Nyberg
38418fcd2b
Add functions read_fully and write_fully. They are simpler alternatives to
read and write on blocking sockets.
il y a 19 ans
Richard Nyberg
59bed6ca87
Added vfsync and vfopen.
il y a 19 ans
Richard Nyberg
b2a877537a
White space.
il y a 19 ans
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.
il y a 19 ans
Richard Nyberg
1eea7650a2
Remove use of the ugly PRI* print macros.
il y a 19 ans
Richard Nyberg
2d2f8b0350
o Removed an unused function.
o Made bit field argument to has_bit const since the function
doesn't modify it.
il y a 19 ans
Richard Nyberg
b2bf61dbf7
Add and use rand_between.
il y a 19 ans
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
il y a 19 ans
Richard Nyberg
c11a57b8cb
Fix style. Remove unnecessary check for EINTR.
il y a 19 ans
Richard Nyberg
dd0d462afa
Import btpd-0.1.
git-svn-id: file:///home/rnyberg/svngit/btpd/releases/0.1@1 76a1f634-46fa-0310-9943-bd1476092a85
il y a 19 ans