~sircmpwn/hare-linux

219baa71182baf208463d5096fad07a95efdac9f — Alexey Yerin 2 years ago 03fd771
Fix undefined references throughout stdlib

Signed-off-by: Alexey Yerin <yyp@disroot.org>
2 files changed, 9 insertions(+), 9 deletions(-)

M io_uring/sqe.ha
M io_uring/uring.ha
M io_uring/sqe.ha => io_uring/sqe.ha +6 -6
@@ 148,7 148,7 @@ export fn fsync(

// Adds a request to poll a file descriptor for the given set of poll events.
// This will only happen once, the poll request must be submitted with a new SQE
// to re-poll the file descriptor later. The caller must call [[setuser]] to
// to re-poll the file descriptor later. The caller must call [[set_user]] to
// provide a user data field in order to use [[poll_remove]] to remove this poll
// request later.
export fn poll_add(


@@ 163,7 163,7 @@ export fn poll_add(
};

// Removes an existing poll request by matching the SQE's user_data field. See
// [[setuser]].
// [[set_user]].
export fn poll_remove(sqe: *sqe, user_data: *void, flags: flags...) void = {
	preprw(sqe, op::POLL_REMOVE, -1, null, 0, 0, flags...);
	set_user(sqe, user_data);


@@ 228,7 228,7 @@ export fn recv(
// Prepares a timeout operation for an [[sqe]]. "ts" should be a timespec
// describing the desired timeout, and "events" may optionally be used to define
// a number of completion events to wake after (or zero to wake only after the
// timeout expires). The caller must call [[setuser]] to provide a user data
// timeout expires). The caller must call [[set_user]] to provide a user data
// field in order to use [[timeout_remove]] to cancel this timeout later.
export fn timeout(
	sqe: *sqe,


@@ 242,7 242,7 @@ export fn timeout(
};

// Removes an existing timeout request by matching the SQE's user_data field.
// See [[setuser]].
// See [[set_user]].
export fn timeout_remove(
	sqe: *sqe,
	user_data: *void,


@@ 254,7 254,7 @@ export fn timeout_remove(
};

// Updates an existing timeout request by matching the SQE's user_data field.
// See [[setuser]].
// See [[set_user]].
export fn timeout_update(
	sqe: *sqe,
	user_data: *void,


@@ 271,7 271,7 @@ export fn timeout_update(
// Prepares a timeout operation for an [[sqe]] which is linked to the previous
// SQE, effectively setting an upper limit on how long that SQE can take to
// complete. "ts" should be a timespec describing the desired timeout. The
// caller must call [[setuser]] to provide a user data field in order to use
// caller must call [[set_user]] to provide a user data field in order to use
// [[timeout_remove]] to cancel this timeout later.
export fn link_timeout(
	sqe: *sqe,

M io_uring/uring.ha => io_uring/uring.ha +3 -3
@@ 207,7 207,7 @@ export type cqring_flags = enum u32 {
	EVENTFD_DISABLED = 1 << 0,
};

// Flags for [[setup]].
// Flags for setup operation.
export type setup_flags = enum u32 {
	NONE = 0,
	// io_context is polled


@@ 252,7 252,7 @@ export type features = enum u32 {
	POLL_32BITS = 1 << 6,
};

// Flags for [[enter]].
// Flags for enter operation.
export type enter_flags = enum uint {
	NONE = 0,
	GETEVENTS = 1 << 0,


@@ 260,7 260,7 @@ export type enter_flags = enum uint {
	SQ_WAIT = 1 << 2,
};

// Operations for [[register]].
// Register operations.
export type regop = enum uint {
	REGISTER_BUFFERS,
	UNREGISTER_BUFFERS,