forked from Imagelibrary/binutils-gdb
2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
* bfdio.c (bfd_iovec): Add comments for bmmap. * bfd-in2.h: Regenerated.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* bfdio.c (bfd_iovec): Add comments for bmmap.
|
||||||
|
* bfd-in2.h: Regenerated.
|
||||||
|
|
||||||
2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
|
2009-07-10 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* Makefile.am: Run "make dep-am".
|
* Makefile.am: Run "make dep-am".
|
||||||
|
|||||||
@@ -463,7 +463,6 @@ extern int bfd_seek (bfd *, file_ptr, int);
|
|||||||
extern file_ptr bfd_tell (bfd *);
|
extern file_ptr bfd_tell (bfd *);
|
||||||
extern int bfd_flush (bfd *);
|
extern int bfd_flush (bfd *);
|
||||||
extern int bfd_stat (bfd *, struct stat *);
|
extern int bfd_stat (bfd *, struct stat *);
|
||||||
extern void *bfd_mmap (bfd *, void *, bfd_size_type, int, int, file_ptr);
|
|
||||||
|
|
||||||
/* Deprecated old routines. */
|
/* Deprecated old routines. */
|
||||||
#if __GNUC__
|
#if __GNUC__
|
||||||
@@ -1123,6 +1122,9 @@ long bfd_get_mtime (bfd *abfd);
|
|||||||
|
|
||||||
file_ptr bfd_get_size (bfd *abfd);
|
file_ptr bfd_get_size (bfd *abfd);
|
||||||
|
|
||||||
|
void *bfd_mmap (bfd *abfd, void *addr, bfd_size_type len,
|
||||||
|
int prot, int flags, file_ptr offset);
|
||||||
|
|
||||||
/* Extracted from bfdwin.c. */
|
/* Extracted from bfdwin.c. */
|
||||||
/* Extracted from section.c. */
|
/* Extracted from section.c. */
|
||||||
typedef struct bfd_section
|
typedef struct bfd_section
|
||||||
|
|||||||
@@ -158,7 +158,8 @@ DESCRIPTION
|
|||||||
. 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);
|
||||||
. void* (*bmmap) (struct bfd *abfd, void *addr, bfd_size_type len,
|
. {* 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);
|
. int prot, int flags, file_ptr offset);
|
||||||
.};
|
.};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user