summaryrefslogtreecommitdiff
path: root/rpmio/rpmio.h
AgeCommit message (Collapse)AuthorFilesLines
2012-03-14Fix ufdCopy() for large (> 2GB) filesPanu Matilainen1-1/+1
- Files can be (much) larger than INT32_MAX, change the return type to off_t and fix + simplify the calculations. Fixes the other half of RhBug:790396 and makes ufdCopy() usable for other purposes too.
2011-07-11Just pass fd pointers around instead of "cookies" cast to fdPanu Matilainen1-1/+1
- There's not a whole lot of point passing our own data structure around in void pointers and re-re-re-re-re-recasting them to fd's again all over the place. Just pass the damn fd to begin with.
2011-07-08Eliminate the uuugly and stupid fdGetFILE() from the APIPanu Matilainen1-5/+0
2011-07-07Remember path (or other description) in fd's, add getterPanu Matilainen1-0/+5
- If opened by path, we obviously want to use that. Otherwise generate a description lazily on first Fdescr() call: on Linux we can grab something relatively meaningful by looking up from /proc (this is why we want to be lazy here...). If that's not available or fails, just generate a string on the current fdno. Actual paths are returned as is, other descriptions are bracketed, (eg "[mumble 123]"). - This makes it possible to give more meaningful error messages in places where we only get an fd from somebody (related to RhBug:522160)
2011-07-07Eliminate fdNew() from the APIPanu Matilainen1-4/+0
- Nobody should be able to create file descriptors which are not attached to a file/descriptor of some kind, the only sane fd constructors are Fopen(), Fdopen() and fdDup(). - The same applies to fdFree() but its a bit more complicated, punting that till later...
2011-05-03Remove obsolete timedRead() from APIJindrich Novy1-7/+0
2011-03-23Avoid timedRead() usageJindrich Novy1-1/+1
- it is to be removed in the next soname bump
2011-03-23Remove libio support to suppress timedRead()Jindrich Novy1-17/+1
2010-03-29Lose long since unused fdReadable() and fdWritable()Panu Matilainen1-8/+0
- these have been unused since rpm 4.6.0, and can be implemented without access to rpmio internals too if somebody cares...
2010-03-22Lose the useless rpmio refcounting debug junkPanu Matilainen1-3/+3
- the rpmio API always had this goo, should've gotten rid of it back in commit dbdbe8010cd944f026a5a4e5d071eb31d29d81c4 but .. oh well
2009-10-15Add ftell() clone to FD_tPanu Matilainen1-0/+5
2008-07-07Kick out ftpStrerror() and related error code definesPanu Matilainen1-32/+0
- our url-retrieval error codes depend on the helper used which is configurable via macros so hardcoding eg curl codes wont work either - need to figure out something better, pass helper error messages through FD_t or something...
2008-07-04Remove unused ufdGetFile() from librpmioPanu Matilainen1-4/+0
2008-04-24Remove meaningless extern on function declarations in headersPanu Matilainen1-3/+3
2008-03-06Make rpmio vectors read-onlyPanu Matilainen1-1/+1
2008-01-30Move FD_t to rpmtypes.h, used all over ..Panu Matilainen1-4/+1
2007-12-14More misc size_t issuesPanu Matilainen1-1/+1
2007-12-08Switch to <rpm/foo.h> style for public headersPanu Matilainen1-1/+1
- adjust include paths accordingly
2007-12-03Use regular POSIX functions instead of "RPC" clonesPanu Matilainen1-97/+0
- we only care about local files
2007-11-30rpmrpc doxygen groupings..Panu Matilainen1-17/+17
2007-11-23Bunch of rpmio doxygen groupingsPanu Matilainen1-18/+18
2007-11-23Expand private include file names to be relative to $(top_srcdir)Ralf Corsépius1-1/+1
2007-11-23Export FD statistics enums + fdOp() methodPanu Matilainen1-0/+19
2007-11-23Move rpmioMkpath from rpmio.h to rpmfileutil.hPanu Matilainen1-10/+0
2007-11-22Move pgpDig typedefs to a more obvious place..Panu Matilainen1-8/+0
2007-11-23Move the xstr*() string variants from rpmio.h to rpmstring.hPanu Matilainen1-39/+0
2007-10-29Export rpmio fdGetFILE()Panu Matilainen1-0/+5
2007-10-29Remove leftover commentPanu Matilainen1-2/+0
2007-10-09Hide rpmio vectors from API, only internal needsPanu Matilainen1-146/+0
2007-10-09Remove timedRead() definePanu Matilainen1-1/+3
2007-10-09Remove unused legacy rpmio fd*() interfacesPanu Matilainen1-20/+0
- fdFileno(), fdOpen(), fdRead(), fdWrite(), fdClose() gone...
2007-10-09Remove unused rpmio fdFdopen() functionPanu Matilainen1-4/+0
2007-10-08'Adjust extern C {} blocks.'Ralf Corsépius1-4/+4
2007-10-05Make fdFileno an external function.Ralf Corsépius1-4/+1
2007-10-01Fix minor typo.Ralf Corsépius1-1/+1
2007-09-22Take out __FILE__, __LINE__ from DBGREFS.Ralf Corsépius1-1/+1
2007-09-21Remove fdLink, fdFree, fdNew defines.Ralf Corsépius1-6/+3
2007-09-21Remove fdClose, fdOpen, fdRead, fdWrite defines.Ralf Corsépius1-8/+4
2007-09-12Rip out internal http and ftp transports.Panu Matilainen1-8/+0
2007-09-11Remove splint tags.Ralf Corsépius1-276/+93
2007-09-03Remove __LCLINT__-ifdef'ed blocks.Ralf Corsépius1-1/+1
2007-07-12Fread() and Fwrite() can return negative values, change type to reflect thatPanu Matilainen1-2/+2
2007-07-10Remove const type-qualifiers from function return types everywhere.Panu Matilainen1-1/+1
They're meaningless in C and cause tonne of build warnings.
2005-07-02GCC fidgets, add parentheses around timedRead vector.jbj1-1/+1
CVS patchset: 7864 CVS date: 2005/07/02 18:54:08
2005-01-17Build on macosx.jbj1-1/+1
CVS patchset: 7701 CVS date: 2005/01/17 23:58:09
2004-11-29- detect and return errors from neon through Ferror.jbj1-11/+21
CVS patchset: 7619 CVS date: 2004/11/29 14:29:22
2004-03-02- permit globs in macrofiles: directive (#117217).jbj1-0/+11
CVS patchset: 7139 CVS date: 2004/03/02 01:31:01
2003-06-24Sanity.jbj1-1/+1
CVS patchset: 6918 CVS date: 2003/06/24 19:29:36
2003-05-08- don't use error string after gzclose (Dmitry V. Levin).jbj1-12/+12
Spliddles for rpmio, drill h_errno all the way through. CVS patchset: 6826 CVS date: 2003/05/08 20:39:29
2003-04-01Splint fiddles.jbj1-4/+4
CVS patchset: 6724 CVS date: 2003/04/01 22:20:45