summaryrefslogtreecommitdiff
path: root/Kernel/TTY/PTYMultiplexer.h
diff options
context:
space:
mode:
authorTom <tomut@yahoo.com>2020-09-10 19:49:31 -0600
committerAndreas Kling <kling@serenityos.org>2020-09-13 21:19:15 +0200
commit7d1b8417bdf5d2818d1c9d310786cdf59650b104 (patch)
treecb708ca30c6528286ad67fddd92624f6a1920e4b /Kernel/TTY/PTYMultiplexer.h
parent1c86ab010824b3e7985c99ff0fc604b0cd42f68d (diff)
downloadserenity-7d1b8417bdf5d2818d1c9d310786cdf59650b104.zip
Kernel: Add safe_memcpy, safe_memset and safe_strnlen
These special functions can be used to safely copy/set memory or determine the length of a string, e.g. provided by user mode. In the event of a page fault, safe_memcpy/safe_memset will return false and safe_strnlen will return -1.
Diffstat (limited to 'Kernel/TTY/PTYMultiplexer.h')
0 files changed, 0 insertions, 0 deletions