LibC: Add stubs for glob and globfree

This commit is contained in:
Tim Schumacher 2021-05-27 12:43:01 +02:00 committed by Brian Gianforcaro
commit 6c650d1b8d
Notes: sideshowbarker 2024-07-17 09:35:55 +09:00
3 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,25 @@
/*
* Copyright (c) 2021, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <AK/Format.h>
#include <assert.h>
#include <glob.h>
extern "C" {
// https://pubs.opengroup.org/onlinepubs/9699919799/functions/glob.html
int glob(char const*, int, int (*)(char const* epath, int eerrno), glob_t*)
{
dbgln("FIXME: Implement glob()");
TODO();
}
void globfree(glob_t*)
{
dbgln("FIXME: Implement globfree()");
TODO();
}
}