diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-06-11 00:41:03 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-06-11 00:41:03 +0000 |
commit | 25b88f335af1b8c7a4428710ffd9066338b167c0 (patch) | |
tree | fd707bda1bcc8d4d609622b5da49451b5c2e3303 /bfd/libbfd.h | |
parent | e433f867b0ffb2181886a9c2b3281ad5931ef31b (diff) | |
download | gdb-25b88f335af1b8c7a4428710ffd9066338b167c0.zip gdb-25b88f335af1b8c7a4428710ffd9066338b167c0.tar.gz gdb-25b88f335af1b8c7a4428710ffd9066338b167c0.tar.bz2 |
2009-06-10 Paul Pluzhnikov <ppluzhnikov@google.com>
* bfd-in2.h: bfd_mmap prototype
* bfdio.c (bfd_mmap): New function.
* libbfd.h (bfd_iovec): Add bmmap.
* cache.c (cache_bmap): New function.
(cache_iovec): Initialize bmmap member.
* opencls.c (opncls_bmmap): New function.
(opncls_iovec): Initialize bmmap member.
Diffstat (limited to 'bfd/libbfd.h')
-rw-r--r-- | bfd/libbfd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/libbfd.h b/bfd/libbfd.h index ea1a080..7d72e3b 100644 --- a/bfd/libbfd.h +++ b/bfd/libbfd.h @@ -773,6 +773,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); }; /* Extracted from bfdwin.c. */ struct _bfd_window_internal { |