#include "util/exception.hh"#include "util/scoped.hh"#include "util/string_piece.hh"#include <cstddef>#include <cstdio>#include <string>#include <stdint.h>Go to the source code of this file.
Classes | |
| class | util::scoped_fd |
| struct | util::scoped_FILE_closer |
| class | util::FDException |
| class | util::EndOfFileException |
Namespaces | |
| namespace | util |
Typedefs | |
| typedef scoped< std::FILE, scoped_FILE_closer > | util::scoped_FILE |
Functions | |
| int | util::OpenReadOrThrow (const char *name) |
| int | util::CreateOrThrow (const char *name) |
| bool | util::InputPathIsStdin (StringPiece path) |
| bool | util::OutputPathIsStdout (StringPiece path) |
| uint64_t | util::SizeFile (int fd) |
| uint64_t | util::SizeOrThrow (int fd) |
| void | util::ResizeOrThrow (int fd, uint64_t to) |
| std::size_t | util::PartialRead (int fd, void *to, std::size_t amount) |
| void | util::ReadOrThrow (int fd, void *to_void, std::size_t amount) |
| std::size_t | util::ReadOrEOF (int fd, void *to_void, std::size_t amount) |
| void | util::WriteOrThrow (int fd, const void *data_void, std::size_t size) |
| void | util::WriteOrThrow (FILE *to, const void *data, std::size_t size) |
| void | util::ErsatzPRead (int fd, void *to_void, std::size_t size, uint64_t off) |
| void | util::ErsatzPWrite (int fd, const void *from_void, std::size_t size, uint64_t off) |
| void | util::FSyncOrThrow (int fd) |
| void | util::SeekOrThrow (int fd, uint64_t off) |
| void | util::AdvanceOrThrow (int fd, int64_t off) |
| void | util::SeekEnd (int fd) |
| std::FILE * | util::FDOpenOrThrow (scoped_fd &file) |
| std::FILE * | util::FDOpenReadOrThrow (scoped_fd &file) |
| void | util::NormalizeTempPrefix (std::string &base) |
| int | util::MakeTemp (const StringPiece &base) |
| std::FILE * | util::FMakeTemp (const StringPiece &base) |
| int | util::DupOrThrow (int fd) |
| std::string | util::NameFromFD (int fd) |
Variables | |
| const uint64_t | util::kBadSize = (uint64_t)-1 |
1.5.9