diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2022-04-01 20:58:27 +0300 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-04-01 21:24:45 +0100 |
commit | 086969277e74d8ba065bf8145d3aeb0dec0bfee5 (patch) | |
tree | 02b3699a66735ef806d9b46353491f18f8e4e7b4 /Userland/Libraries/LibC/sys/mman.cpp | |
parent | 0376c127f6e98e03607700d0b3f5154b7014b2f8 (diff) | |
download | serenity-086969277e74d8ba065bf8145d3aeb0dec0bfee5.zip |
Everywhere: Run clang-format
Diffstat (limited to 'Userland/Libraries/LibC/sys/mman.cpp')
-rw-r--r-- | Userland/Libraries/LibC/sys/mman.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Userland/Libraries/LibC/sys/mman.cpp b/Userland/Libraries/LibC/sys/mman.cpp index ff40f87e17..9dd9d4ef3a 100644 --- a/Userland/Libraries/LibC/sys/mman.cpp +++ b/Userland/Libraries/LibC/sys/mman.cpp @@ -13,7 +13,7 @@ extern "C" { -void* serenity_mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset, size_t alignment, const char* name) +void* serenity_mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset, size_t alignment, char const* name) { Syscall::SC_mmap_params params { addr, size, alignment, prot, flags, fd, offset, { name, name ? strlen(name) : 0 } }; ptrdiff_t rc = syscall(SC_mmap, ¶ms); @@ -30,7 +30,7 @@ void* mmap(void* addr, size_t size, int prot, int flags, int fd, off_t offset) return serenity_mmap(addr, size, prot, flags, fd, offset, PAGE_SIZE, nullptr); } -void* mmap_with_name(void* addr, size_t size, int prot, int flags, int fd, off_t offset, const char* name) +void* mmap_with_name(void* addr, size_t size, int prot, int flags, int fd, off_t offset, char const* name) { return serenity_mmap(addr, size, prot, flags, fd, offset, PAGE_SIZE, name); } @@ -60,7 +60,7 @@ int mprotect(void* addr, size_t size, int prot) __RETURN_WITH_ERRNO(rc, rc, -1); } -int set_mmap_name(void* addr, size_t size, const char* name) +int set_mmap_name(void* addr, size_t size, char const* name) { if (!name) { errno = EFAULT; @@ -83,7 +83,7 @@ int posix_madvise(void* address, size_t len, int advice) return madvise(address, len, advice); } -void* allocate_tls(const char* initial_data, size_t size) +void* allocate_tls(char const* initial_data, size_t size) { ptrdiff_t rc = syscall(SC_allocate_tls, initial_data, size); if (rc < 0 && rc > -EMAXERRNO) { @@ -94,14 +94,14 @@ void* allocate_tls(const char* initial_data, size_t size) } // https://pubs.opengroup.org/onlinepubs/9699919799/functions/mlock.html -int mlock(const void*, size_t) +int mlock(void const*, size_t) { dbgln("FIXME: Implement mlock()"); return 0; } // https://pubs.opengroup.org/onlinepubs/9699919799/functions/munlock.html -int munlock(const void*, size_t) +int munlock(void const*, size_t) { dbgln("FIXME: Implement munlock()"); return 0; |