diff options
| author | Robert Haas <rhaas@postgresql.org> | 2016-03-08 10:09:50 -0500 |
|---|---|---|
| committer | Robert Haas <rhaas@postgresql.org> | 2016-03-08 10:09:50 -0500 |
| commit | 070140ee48e8524493f882a278b5ced255b34b65 (patch) | |
| tree | 9522e28cf3fd5ebbacba892ccebc014110caf455 /src/include | |
| parent | 77a1d1e79892a20ed15a67be42b96949b8546bf6 (diff) | |
Add some functions to fd.c for the convenience of extensions.
For example, if you want to perform an ioctl() on a file descriptor
opened through the fd.c routines, there's no way to do that without
being able to get at the underlying fd.
KaiGai Kohei
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/storage/fd.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/include/storage/fd.h b/src/include/storage/fd.h index 4a3fccbaa9b..6faa8ad8a61 100644 --- a/src/include/storage/fd.h +++ b/src/include/storage/fd.h @@ -75,6 +75,9 @@ extern int FileSync(File file); extern off_t FileSeek(File file, off_t offset, int whence); extern int FileTruncate(File file, off_t offset); extern char *FilePathName(File file); +extern int FileGetRawDesc(File file); +extern int FileGetRawFlags(File file); +extern int FileGetRawMode(File file); /* Operations that allow use of regular stdio --- USE WITH CAUTION */ extern FILE *AllocateFile(const char *name, const char *mode); |
