1
Fork 0
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:
Kenneth Myhra 2021-08-11 19:33:26 +02:00 committed by Linus Groh
parent 8abfcb976d
commit 04733ccb56
3 changed files with 33 additions and 0 deletions

View file

@ -28,6 +28,7 @@ set(LIBC_SOURCES
pwd.cpp pwd.cpp
qsort.cpp qsort.cpp
regex.cpp regex.cpp
resolv.cpp
scanf.cpp scanf.cpp
sched.cpp sched.cpp
serenity.cpp serenity.cpp

View 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;
}
}

View 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