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:
parent
f672b4c151
commit
6c650d1b8d
3 changed files with 61 additions and 0 deletions
25
Userland/Libraries/LibC/glob.cpp
Normal file
25
Userland/Libraries/LibC/glob.cpp
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue