ladybird/Userland/Libraries/LibC/ulimit.cpp

27 lines
509 B
C++
Raw Normal View History

/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Format.h>
#include <assert.h>
2020-04-05 16:10:57 +00:00
#include <sys/resource.h>
#include <ulimit.h>
extern "C" {
long ulimit([[maybe_unused]] int cmd, [[maybe_unused]] long newlimit)
{
dbgln("FIXME: Implement getrusage()");
TODO();
return -1;
}
2020-04-05 16:10:57 +00:00
int getrusage([[maybe_unused]] int who, [[maybe_unused]] struct rusage* usage)
2020-04-05 16:10:57 +00:00
{
dbgln("FIXME: Implement getrusage()");
2020-04-05 16:10:57 +00:00
return -1;
}
}