1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00
serenity/Libraries
Andreas Kling 18348cebf1 Kernel+LibC: Implement the openat() syscall
POSIX's openat() is very similar to open(), except you also provide a
file descriptor referring to a directory from which relative paths
should be resolved.

Passing it the magical fd number AT_FDCWD means "resolve from current
directory" (which is indeed also what open() normally does.)

This fixes libarchive's bsdtar, since it was trying to do something
extremely wrong in the absence of openat() support. The issue has
recently been fixed upstream in libarchive:

https://github.com/libarchive/libarchive/issues/1239

However, we should have openat() support anyway, so I went ahead and
implemented it. :^)

Fixes #748.
2019-11-10 13:51:27 +01:00
..
LibAudio SoundPlayer: Changed some small cosmetic things 2019-11-05 19:50:11 +01:00
LibC Kernel+LibC: Implement the openat() syscall 2019-11-10 13:51:27 +01:00
LibCore LibCore: Rename class Gzip -> CGZip 2019-11-10 12:52:23 +01:00
LibDraw POSIX compliance: (most) shell scripts converted to generic shell 2019-11-03 09:26:22 +01:00
LibELF LibELF: Move AK/ELF/ into Libraries/LibELF/ 2019-11-06 13:42:38 +01:00
LibGUI GWidget: Fix accidentally ignored set_relative_rect() with empty size 2019-11-10 12:57:37 +01:00
LibHTML LibHTML: Paint a magenta rectangle around the currently inspected node 2019-11-09 11:58:50 +01:00
LibIPC POSIX compliance: (most) shell scripts converted to generic shell 2019-11-03 09:26:22 +01:00
LibM LibM: Add back ampsin() since it was still used by tan() 2019-11-03 09:59:44 +01:00
LibMarkdown LibMarkdown: Include a <head> element when rendering MD to HTML 2019-10-30 20:28:44 +01:00
LibPCIDB POSIX compliance: (most) shell scripts converted to generic shell 2019-11-03 09:26:22 +01:00
LibThread POSIX compliance: (most) shell scripts converted to generic shell 2019-11-03 09:26:22 +01:00
LibVT Terminal: Clip out the scrollbar when painting the terminal buffer 2019-11-10 13:00:03 +01:00