X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=bfd%2Fdoc%2Fbfdio.texi;fp=bfd%2Fdoc%2Fbfdio.texi;h=9b4952fa956d95c964f77cdfb3830189879182ff;hp=7a7fe3c48de9fbfcf02c69e1425ac97a91e58a50;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/bfd/doc/bfdio.texi b/bfd/doc/bfdio.texi index 7a7fe3c..9b4952f 100644 --- a/bfd/doc/bfdio.texi +++ b/bfd/doc/bfdio.texi @@ -26,6 +26,9 @@ struct bfd_iovec int (*bclose) (struct bfd *abfd); int (*bflush) (struct bfd *abfd); 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 @@ -70,3 +73,13 @@ 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 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. +