1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 20:55:07 +00:00
serenity/Kernel/Limits.h
Andreas Kling beda478821 Kernel: Make syscalls that take a buffer size use ssize_t instead of size_t.
Dealing with the unsigned overflow propagation here just seems unreasonably
error prone. Let's limit ourselves to 2GB buffer sizes instead.
2019-02-25 21:21:12 +01:00

9 lines
139 B
C

#pragma once
#include "UnixTypes.h"
inline static const off_t maxFileOffset = 2147483647;
static const ssize_t GoodBufferSize = 4096;