mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 18:51:43 +00:00
add prestat struct
This commit is contained in:
@ -164,7 +164,7 @@ export declare function fd_prestat_get(
|
||||
/** Input: The file descriptor about which to retrieve information. */
|
||||
fd: fd,
|
||||
/** Input: The buffer where the description is stored. */
|
||||
buf: usize // TODO: struct<prestat>
|
||||
buf: struct<prestat>
|
||||
): errno;
|
||||
|
||||
/** Return a description of the given preopened file descriptor. */
|
||||
@ -1085,6 +1085,23 @@ export namespace oflags {
|
||||
}
|
||||
export type oflags = u16;
|
||||
|
||||
// TODO: undocumented
|
||||
export namespace preopentype {
|
||||
@inline
|
||||
export const DIR: preopentype = 0;
|
||||
}
|
||||
export type preopentype = u8;
|
||||
|
||||
// TODO: undocumented
|
||||
export abstract class prestat {
|
||||
type: preopentype;
|
||||
}
|
||||
|
||||
// TODO: undocumented
|
||||
export class dirprestat extends prestat {
|
||||
name_len: usize;
|
||||
}
|
||||
|
||||
/** Flags provided to `sock_recv`. */
|
||||
export namespace riflags {
|
||||
/** Returns the message without removing it from the socket's receive queue. */
|
||||
|
Reference in New Issue
Block a user