Truly independent web browser
Find a file
Andreas Kling ecfde5997b Kernel: Use SharedInodeVMObject for executables after all
I had the wrong idea about this. Thanks to Sergey for pointing it out!

Here's what he says (reproduced for posterity):

> Private mappings protect the underlying file from the changes made by
> you, not the other way around. To quote POSIX, "If MAP_PRIVATE is
> specified, modifications to the mapped data by the calling process
> shall be visible only to the calling process and shall not change the
> underlying object. It is unspecified whether modifications to the
> underlying object done after the MAP_PRIVATE mapping is established
> are visible through the MAP_PRIVATE mapping." In practice that means
> that the pages that were already paged in don't get updated when the
> underlying file changes, and the pages that weren't paged in yet will
> load the latest data at that moment.
> The only thing MAP_FILE | MAP_PRIVATE is really useful for is mapping
> a library and performing relocations; it's definitely useless (and
> actively harmful for the system memory usage) if you only read from
> the file.

This effectively reverts e2697c2ddd.
2020-03-01 21:16:27 +01:00
.github Meta: Add GitHub Sponsors to funding options 2019-11-02 23:32:34 +01:00
AK AK: Remove unnecessary casts to size_t, after Vector changes 2020-03-01 12:58:22 +01:00
Applications AK: Remove unnecessary casts to size_t, after Vector changes 2020-03-01 12:58:22 +01:00
Base Keymaps: Added keymap for norwegian keyboards 2020-03-01 10:53:15 +01:00
Demos LibELF: Use MAP_PRIVATE for file-backed mmaps in ELFDynamicLoader 2020-02-29 10:58:45 +01:00
DevTools ProfileViewer: Unbreak after Vector size_t changes 2020-02-29 22:06:52 +01:00
Documentation Build: Use ccache if it's available (#1315) 2020-02-27 11:44:29 +01:00
Games Minesweeper: Perform sanity check on configuration (#1300) 2020-02-26 11:32:47 +01:00
Kernel Kernel: Use SharedInodeVMObject for executables after all 2020-03-01 21:16:27 +01:00
Libraries AK: Remove unnecessary casts to size_t, after Vector changes 2020-03-01 12:58:22 +01:00
MenuApplets Build: Only look at SUBDIRS with Makefiles 2020-02-25 19:56:48 +01:00
Meta Meta: Integrate Shellcheck into Travis 2020-02-10 10:46:25 +01:00
Ports Ports: Update the C-ray renderer port 2020-02-27 09:53:36 +01:00
Servers WindowServer: Clear the current resize candidate when in menus 2020-03-01 14:21:38 +01:00
Shell Shell: Remove bogus assertion 2020-03-01 17:08:49 +01:00
Tests LibC: The exec() family of functions should not search "." by default 2020-02-01 16:14:09 +01:00
Toolchain Toolchain: Add x86_64 cross compiler build script 2020-02-27 13:00:03 +01:00
Userland ps: Add some options and slim down the default output style 2020-03-01 17:46:06 +01:00
.clang-format Meta: Tweak .clang-format to not wrap braces after enums. 2019-06-07 17:13:23 +02:00
.gitignore Demos: Add a dynamic linking demo to show off dlfcn methods 2020-01-01 17:48:41 +01:00
.travis.yml Meta: Integrate Shellcheck into Travis 2020-02-10 10:46:25 +01:00
CODE_OF_CONDUCT.md Meta: Move code of conduct (lol) to a separate file 2019-10-23 10:05:06 +02:00
CONTRIBUTING.md Meta: Reference CodingStyle doc in CONTRIBUTING.md 2020-01-08 19:41:20 +01:00
INSTALL.md Meta: Update link to build instructions in INSTALL.md 2020-01-01 17:33:32 +01:00
LICENSE Meta: Add license header to source files 2020-01-18 09:45:54 +01:00
Makefile Build: Use ccache if it's available (#1315) 2020-02-27 11:44:29 +01:00
Makefile.common Build: Build with -std=c++2a 2020-02-19 12:03:11 +01:00
Makefile.subdir Build: wrap make invocations with flock(1) 2019-12-28 21:09:33 +01:00
ReadMe.md Meta: Oops, remove duplicate mention of desktop games 2020-02-06 15:54:24 +01:00

SerenityOS

Graphical Unix-like operating system for x86 computers.

Travis CI status

About

SerenityOS is a love letter to '90s user interfaces with a custom Unix-like core. It flatters with sincerity by stealing beautiful ideas from various other systems.

Roughly speaking, the goal is a marriage between the aesthetic of late-1990s productivity software and the power-user accessibility of late-2000s *nix. This is a system by us, for us, based on the things we like.

I (Andreas) regularly post raw hacking sessions and demos on my YouTube channel.

Sometimes I write about the system on my github.io blog.

I'm also on Patreon and GitHub Sponsors if you would like to show some support that way.

Screenshot

Screenshot as of 1133aca

Kernel features

  • x86 (32-bit) kernel with pre-emptive multi-threading
  • Hardware protections (SMEP, SMAP, UMIP, NX, WP, TSD, ...)
  • IPv4 stack with ARP, TCP, UDP and ICMP protocols
  • ext2 filesystem
  • POSIX signals
  • Purgeable memory
  • /proc filesystem
  • Pseudoterminals (with /dev/pts filesystem)
  • Filesystem notifications
  • CPU and memory profiling
  • SoundBlaster 16 driver
  • VMWare/QEMU mouse integration

System services

  • Launch/session daemon (SystemServer)
  • Compositing window server (WindowServer)
  • DNS client (LookupServer)
  • Software-mixing sound daemon (AudioServer)

Libraries

  • C++ templates and containers (AK)
  • Event loop and utilities (LibCore)
  • 2D graphics library (LibGfx)
  • GUI toolkit (LibGUI)
  • Cross-process communication library (LibIPC)
  • HTML/CSS engine (LibHTML)
  • Markdown (LibMarkdown)
  • Audio (LibAudio)
  • PCI database (LibPCIDB)
  • Terminal emulation (LibVT)
  • Network protocols (HTTP) (LibProtocol)

Userland features

  • Unix-like libc and userland
  • Shell with pipes and I/O redirection
  • On-line help system (both terminal and GUI variants)
  • Web browser (Browser)
  • C++ IDE (HackStudio)
  • IRC client
  • Desktop synthesizer (Piano)
  • Various desktop apps & games
  • Color themes

How do I build and run this?

See the SerenityOS build instructions

Wanna chat?

Come hang out with us in #serenityos on the Freenode IRC network.

Author

Contributors

(And many more!) Feel free to append yourself here if you've made some sweet contributions. :)

License

SerenityOS is licensed under a 2-clause BSD license.