1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

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
parent f672b4c151
commit 6c650d1b8d
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();
}
}