mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:17:35 +00:00
LibC: Add stub for res_query
This commit is contained in:
parent
8abfcb976d
commit
04733ccb56
3 changed files with 33 additions and 0 deletions
|
@ -28,6 +28,7 @@ set(LIBC_SOURCES
|
|||
pwd.cpp
|
||||
qsort.cpp
|
||||
regex.cpp
|
||||
resolv.cpp
|
||||
scanf.cpp
|
||||
sched.cpp
|
||||
serenity.cpp
|
||||
|
|
17
Userland/Libraries/LibC/resolv.cpp
Normal file
17
Userland/Libraries/LibC/resolv.cpp
Normal file
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright (c) 2021, the SerenityOS developers
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <AK/Format.h>
|
||||
#include <resolv.h>
|
||||
|
||||
extern "C" {
|
||||
|
||||
int res_query(char const*, int, int, unsigned char*, int)
|
||||
{
|
||||
dbgln("FIXME: Implement res_query()");
|
||||
return 0;
|
||||
}
|
||||
}
|
15
Userland/Libraries/LibC/resolv.h
Normal file
15
Userland/Libraries/LibC/resolv.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
* Copyright (c) 2021, the SerenityOS developers
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
int res_query(const char* dname, int class_, int type, unsigned char* answer, int anslen);
|
||||
|
||||
__END_DECLS
|
Loading…
Add table
Add a link
Reference in a new issue