summaryrefslogtreecommitdiff
path: root/AK/MappedFile.h
AgeCommit message (Collapse)Author
2021-04-22Everything: Move to SPDX license identifiers in all files.Brian Gianforcaro
SPDX License Identifiers are a more compact / standardized way of representing file license information. See: https://spdx.dev/resources/use/#identifiers This was done with the `ambr` search and replace tool. ambr --no-parent-ignore --key-from-file --rep-from-file key.txt rep.txt *
2021-01-12LibC+Everywhere: Remove open_with_path_length() in favor of open()Andreas Kling
This API was a mostly gratuitous deviation from POSIX that gave up some portability in exchange for avoiding the occasional strlen(). I don't think that was actually achieving anything valuable, so let's just chill out and have the same open() API as everyone else. :^)
2021-01-10AK: Make MappedFile heap-allocated and ref-countedAndreas Kling
Let's adapt this class a bit better to how it's actually being used. Instead of having valid/invalid states and storing an error in case it's invalid, a MappedFile is now always valid, and the factory function that creates it will return an OSError if mapping fails.
2020-08-01AK: Make MappedFile store why it is invalidAnotherTest
This makes AK::MappedFile save the errno either open() or mmap() failed with.
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2019-09-30ByteBuffer: Remove pointer() in favor of data()Andreas Kling
We had two ways to get the data inside a ByteBuffer. That was silly.
2019-08-05AK: Do not keep an open FD in MmappedFileSergey Bugaev
We only need an open FD while establishing the mapping, and can close it immediately after mmap() call.
2019-07-11AK: Make MappedFile non-copyable.Andreas Kling
2019-06-03StringViewize a bunch of things -- mostly LibGUIRobin Burchell
2019-05-28Add clang-format fileRobin Burchell
Also run it across the whole tree to get everything using the One True Style. We don't yet run this in an automated fashion as it's a little slow, but there is a snippet to do so in makeall.sh.
2019-04-03PNGLoader: Use MappedFile.Andreas Kling
2019-04-03Font: Clean up AK::MappedFile and use it for mapping font files.Andreas Kling
2019-01-31Big, possibly complete sweep of naming changes.Andreas Kling
2018-12-04Import a simple text editor I started working on.Andreas Kling
2018-10-10Import all this stuff into a single repo called Serenity.Andreas Kling