Truly independent web browser
Find a file
Gunnar Beutner 92749d9a76 LibC: Don't call initializers in crt0
The dynamic linker is already taking care of this for us. Now
that crt0 is statically linked into each executable and shared
library this breaks things because initializers are invoked twice.

Before this PR this didn't crash because crt0 and its _start()
function was contained in LibC and thus only LibC's initializers were
invoked several times which wasn't as much of a problem because
these initializers didn't have any side effects (such as malloc/free).

However, user programs are more likely to have constructors with side
effects, e.g.:

    std::string g_test("hello!");

This would allocate memory when the constructor is invoked. When it is
invoked again the original allocation would be leaked and another copy
of the string would get allocated. Worse still, when the destructors are
invoked twice the memory would get free'd twice which would likely
crash the program.
2021-04-16 17:56:12 +02:00
.github Meta: Include queued checks in the discord notification's checks filter 2021-04-15 09:40:46 +02:00
AK AK: Fix incorrect formatter signing of numbers between -1.0 and 0.0 2021-04-16 17:42:42 +02:00
Base Applications: Rename Serendipity => Welcome 2021-04-15 20:50:24 +02:00
Documentation Documentation: Fix the path to the disk image on WSL 2021-04-16 17:41:21 +02:00
Kernel Everything: Add -Wnon-virtual-dtor flag 2021-04-15 20:57:13 +02:00
Meta Meta: Use basename for serenity.sh help message 2021-04-15 17:47:09 +02:00
Ports Ports: Bump git to 2.31.1 2021-04-16 17:38:54 +02:00
Toolchain Toolchain+LibC: Don't link LibC against crt0 2021-04-16 17:56:12 +02:00
Userland LibC: Don't call initializers in crt0 2021-04-16 17:56:12 +02:00
.clang-format
.gitattributes
.gitignore Meta: Add .vim directory to .gitignore 2021-04-12 18:04:13 +02:00
.pre-commit-config.yaml
.prettierignore
.prettierrc
CMakeLists.txt Everything: Add -Wnon-virtual-dtor flag 2021-04-15 20:57:13 +02:00
CONTRIBUTING.md Meta: Add link to Discord in CONTRIBUTING.md 2021-04-13 18:27:36 +02:00
LICENSE
README.md Meta: Add a link to the SerenityOS Discord server in README.md 2021-04-11 22:04:13 +02:00

SerenityOS

Graphical Unix-like operating system for x86 computers.

Build status Fuzzing 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 0f85753.png

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)
  • Text console manager (TTYServer)
  • DNS client (LookupServer)
  • Network protocols server (ProtocolServer)
  • Software-mixing sound daemon (AudioServer)
  • Desktop notifications (NotificationServer)
  • HTTP server (WebServer)
  • Telnet server (TelnetServer)
  • DHCP client (DHCPClient)

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 (LibWeb)
  • JavaScript engine (LibJS)
  • Markdown (LibMarkdown)
  • Audio (LibAudio)
  • PCI database (LibPCIDB)
  • Terminal emulation (LibVT)
  • Out-of-process network protocol I/O (LibProtocol)
  • Mathematical functions (LibM)
  • ELF file handling (LibELF)
  • POSIX threading (LibPthread)
  • Higher-level threading (LibThread)
  • Transport Layer Security (LibTLS)
  • HTTP and HTTPS (LibHTTP)

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 read the documentation?

Man pages are browsable outside of SerenityOS under Base/usr/share/man.

When running SerenityOS you can use man for the terminal interface, or help for the GUI interface.

How do I build and run this?

See the SerenityOS build instructions

Before opening an issue

Please see the issue policy.

Get in touch

IRC: #serenityos on the Freenode IRC network.

Discord: SerenityOS Discord

Author

Contributors

(And many more!) The people listed above have landed more than 100 commits in the project. :^)

License

SerenityOS is licensed under a 2-clause BSD license.