Skip to content

Commit

Permalink
Kernel: Move headers intended for userspace use into Kernel/API/
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Jul 4, 2020
1 parent ca93c22 commit 11c4a28
Show file tree
Hide file tree
Showing 63 changed files with 61 additions and 61 deletions.
2 changes: 1 addition & 1 deletion AK/SharedBuffer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <AK/SharedBuffer.h>
#include <AK/kmalloc.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <stdio.h>
#include <serenity.h>

Expand Down
2 changes: 1 addition & 1 deletion Applications/HexEditor/HexEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include "HexEditor.h"
#include <AK/StringBuilder.h>
#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>
#include <LibGfx/Palette.h>
#include <LibGUI/Action.h>
#include <LibGUI/Clipboard.h>
Expand Down
2 changes: 1 addition & 1 deletion Applications/Terminal/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>
#include <LibCore/ArgsParser.h>
#include <LibGUI/AboutDialog.h>
#include <LibGUI/Action.h>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion Kernel/Devices/KeyboardDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
#include <AK/Types.h>
#include <Kernel/Devices/CharacterDevice.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>
#include <Kernel/Random.h>
#include <LibKeyboard/CharacterMap.h>

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Devices/PS2MouseDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <AK/CircularQueue.h>
#include <Kernel/Devices/CharacterDevice.h>
#include <Kernel/Interrupts/IRQHandler.h>
#include <Kernel/MousePacket.h>
#include <Kernel/API/MousePacket.h>
#include <Kernel/Random.h>

namespace Kernel {
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Devices/VMWareBackdoor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <Kernel/Arch/i386/CPU.h>
#include <Kernel/CommandLine.h>
#include <Kernel/Devices/VMWareBackdoor.h>
#include <Kernel/MousePacket.h>
#include <Kernel/API/MousePacket.h>
#include <Kernel/IO.h>

namespace Kernel {
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Devices/VMWareBackdoor.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include <AK/Optional.h>
#include <AK/Types.h>
#include <AK/kmalloc.h>
#include <Kernel/MousePacket.h>
#include <Kernel/API/MousePacket.h>

namespace Kernel {

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Interrupts/InterruptManagement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include <Kernel/Interrupts/PIC.h>
#include <Kernel/Interrupts/SpuriousInterruptHandler.h>
#include <Kernel/Interrupts/UnhandledInterruptHandler.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <Kernel/VM/MemoryManager.h>
#include <Kernel/VM/TypedMapping.h>

Expand Down
2 changes: 1 addition & 1 deletion Kernel/Process.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
#include <Kernel/Scheduler.h>
#include <Kernel/SharedBuffer.h>
#include <Kernel/StdLib.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <Kernel/TTY/MasterPTY.h>
#include <Kernel/TTY/TTY.h>
#include <Kernel/Thread.h>
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Process.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <Kernel/Forward.h>
#include <Kernel/Lock.h>
#include <Kernel/StdLib.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <Kernel/Thread.h>
#include <Kernel/UnixTypes.h>
#include <Kernel/VM/RangeAllocator.h>
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Ptrace.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <Kernel/KResult.h>
#include <Kernel/Process.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <LibC/sys/arch/i386/regs.h>

namespace Ptrace {
Expand Down
2 changes: 1 addition & 1 deletion Kernel/Syscall.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <Kernel/Arch/i386/CPU.h>
#include <Kernel/Process.h>
#include <Kernel/Random.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <Kernel/ThreadTracer.h>
#include <Kernel/VM/MemoryManager.h>

Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/dirent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <AK/Assertions.h>
#include <AK/StdLibExtras.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/fcntl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/ioctl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <stdarg.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/mman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <mman.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/poll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <poll.h>
#include <sys/time.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/sched.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <sched.h>

Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/serenity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <serenity.h>

Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/signal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <assert.h>
#include <errno.h>
#include <setjmp.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/stat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/stdio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <AK/ScopedValueRollback.h>
#include <AK/StdLibExtras.h>
#include <AK/kmalloc.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <assert.h>
#include <errno.h>
#include <fcntl.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/stdlib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include <AK/StdLibExtras.h>
#include <AK/Types.h>
#include <AK/Utf8View.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <alloca.h>
#include <assert.h>
#include <ctype.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/sys/ptrace.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#include <AK/LogStream.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <sys/ptrace.h>

Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/sys/select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <stdio.h>
#include <sys/select.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/sys/socket.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#include <AK/Assertions.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <stdio.h>
#include <sys/socket.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/sys/uio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <sys/uio.h>

Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/sys/wait.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <assert.h>
#include <sys/wait.h>
#include <unistd.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/termios.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <assert.h>
#include <errno.h>
#include <sys/ioctl.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/time.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <AK/String.h>
#include <AK/StringBuilder.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <assert.h>
#include <errno.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/times.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <sys/times.h>

Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/unistd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#include <AK/ScopedValueRollback.h>
#include <AK/String.h>
#include <AK/Vector.h>
#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <alloca.h>
#include <assert.h>
#include <errno.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/utime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <string.h>
#include <utime.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibC/utsname.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/Syscall.h>
#include <Kernel/API/Syscall.h>
#include <errno.h>
#include <sys/utsname.h>

Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibCore/File.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#ifdef __serenity__
# include <Kernel/Syscall.h>
# include <Kernel/API/Syscall.h>
#endif
#include <LibCore/File.h>
#include <errno.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibGUI/AbstractView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <AK/StringBuilder.h>
#include <AK/Vector.h>
#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>
#include <LibGUI/AbstractView.h>
#include <LibGUI/DragOperation.h>
#include <LibGUI/Model.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibGUI/Button.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#include <AK/StringBuilder.h>
#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>
#include <LibGUI/Action.h>
#include <LibGUI/ActionGroup.h>
#include <LibGUI/Button.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibGUI/CheckBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>
#include <LibGUI/CheckBox.h>
#include <LibGUI/Painter.h>
#include <LibGfx/CharacterBitmap.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibGUI/Event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#include <AK/StringBuilder.h>
#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>
#include <LibCore/MimeData.h>
#include <LibGUI/Event.h>

Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibGUI/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

#include <AK/StringBuilder.h>
#include <AK/Vector.h>
#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>
#include <LibCore/Event.h>
#include <LibGUI/WindowType.h>
#include <LibGfx/Point.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibGUI/IconView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#include <AK/StringBuilder.h>
#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>
#include <LibGUI/DragOperation.h>
#include <LibGUI/IconView.h>
#include <LibGUI/Model.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibGUI/ListView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>
#include <LibGUI/ListView.h>
#include <LibGUI/Model.h>
#include <LibGUI/Painter.h>
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibGUI/Shortcut.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#pragma once

#include <AK/Traits.h>
#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>

namespace GUI {

Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibGUI/TableView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/

#include <AK/StringBuilder.h>
#include <Kernel/KeyCode.h>
#include <Kernel/API/KeyCode.h>
#include <LibGUI/Action.h>
#include <LibGUI/Menu.h>
#include <LibGUI/Model.h>
Expand Down
Loading

0 comments on commit 11c4a28

Please sign in to comment.