Line 24... |
Line 24... |
Otherwise, a value of -1 is returned (and @code{bfd_error} is set). */
|
Otherwise, a value of -1 is returned (and @code{bfd_error} is set). */
|
int (*bseek) (struct bfd *abfd, file_ptr offset, int whence);
|
int (*bseek) (struct bfd *abfd, file_ptr offset, int whence);
|
int (*bclose) (struct bfd *abfd);
|
int (*bclose) (struct bfd *abfd);
|
int (*bflush) (struct bfd *abfd);
|
int (*bflush) (struct bfd *abfd);
|
int (*bstat) (struct bfd *abfd, struct stat *sb);
|
int (*bstat) (struct bfd *abfd, struct stat *sb);
|
|
/* Just like mmap: (void*)-1 on failure, mmapped address on success. */
|
|
void *(*bmmap) (struct bfd *abfd, void *addr, bfd_size_type len,
|
|
int prot, int flags, file_ptr offset);
|
@};
|
@};
|
@end example
|
@end example
|
|
|
@findex bfd_get_mtime
|
@findex bfd_get_mtime
|
@subsubsection @code{bfd_get_mtime}
|
@subsubsection @code{bfd_get_mtime}
|
Line 68... |
Line 71... |
exhausted" error when it tries to allocate 15 bazillon bytes
|
exhausted" error when it tries to allocate 15 bazillon bytes
|
of space for the 15 bazillon byte table it is about to read.
|
of space for the 15 bazillon byte table it is about to read.
|
This function at least allows us to answer the question, "is the
|
This function at least allows us to answer the question, "is the
|
size reasonable?".
|
size reasonable?".
|
|
|
|
@findex bfd_mmap
|
|
@subsubsection @code{bfd_mmap}
|
|
@strong{Synopsis}
|
|
@example
|
|
void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len,
|
|
int prot, int flags, file_ptr offset);
|
|
@end example
|
|
@strong{Description}@*
|
|
Return mmap()ed region of the file, if possible and implemented.
|
|
|
|
|
No newline at end of file
|
No newline at end of file
|