mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-11 20:16:02 +00:00
LibC: Add stubs for glob and globfree
This commit is contained in:
parent
f672b4c151
commit
6c650d1b8d
Notes:
sideshowbarker
2024-07-17 09:35:55 +09:00
Author: https://github.com/timschumi
Commit: 6c650d1b8d
Pull-request: https://github.com/SerenityOS/serenity/pull/13971
Reviewed-by: https://github.com/ADKaster ✅
Reviewed-by: https://github.com/Hendiadyoin1
Reviewed-by: https://github.com/bgianfo ✅
Reviewed-by: https://github.com/kleinesfilmroellchen
Reviewed-by: https://github.com/linusg
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