diff options
author | Gary Benson <gbenson@redhat.com> | 2015-04-21 12:07:54 +0100 |
---|---|---|
committer | Gary Benson <gbenson@redhat.com> | 2015-04-21 12:09:24 +0100 |
commit | 819843c7029916120aa2929f80e0d7276177a7fb (patch) | |
tree | f00b335b1e3b2af0368862d09736e8e135f2da27 /gdb/common/fileio.h | |
parent | 43236bb2551a9783ff0de5e95bf75f905300eb06 (diff) | |
download | fsf-binutils-gdb-819843c7029916120aa2929f80e0d7276177a7fb.zip fsf-binutils-gdb-819843c7029916120aa2929f80e0d7276177a7fb.tar.gz fsf-binutils-gdb-819843c7029916120aa2929f80e0d7276177a7fb.tar.bz2 |
Introduce new shared function fileio_to_host_openflags
This commit introduces a new shared function to replace identical
functions in GDB and gdbserver.
Diffstat (limited to 'gdb/common/fileio.h')
-rw-r--r-- | gdb/common/fileio.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/common/fileio.h b/gdb/common/fileio.h index 69a735f..b0f27ab 100644 --- a/gdb/common/fileio.h +++ b/gdb/common/fileio.h @@ -27,6 +27,11 @@ extern int host_to_fileio_error (int error); +/* Convert File-I/O open flags FFLAGS to host format, storing + the result in *FLAGS. Return 0 on success, -1 on error. */ + +extern int fileio_to_host_openflags (int fflags, int *flags); + /* Pack a host-format integer into a byte buffer in big-endian format. BYTES specifies the size of the integer to pack in bytes. */ |