xref: /third_party/node/deps/uvwasi/src/uv_mapping.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/deps/uvwasi/src/
11cb0ef41Sopenharmony_ci#ifndef __UVWASI_UV_MAPPING_H__
21cb0ef41Sopenharmony_ci#define __UVWASI_UV_MAPPING_H__
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ci#include "uv.h"
51cb0ef41Sopenharmony_ci#include "wasi_types.h"
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ci#define NANOS_PER_SEC 1000000000
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ciuvwasi_errno_t uvwasi__translate_uv_error(int err);
101cb0ef41Sopenharmony_ciint uvwasi__translate_to_uv_signal(uvwasi_signal_t sig);
111cb0ef41Sopenharmony_ciuvwasi_timestamp_t uvwasi__timespec_to_timestamp(const uv_timespec_t* ts);
121cb0ef41Sopenharmony_ciuvwasi_filetype_t uvwasi__stat_to_filetype(const uv_stat_t* stat);
131cb0ef41Sopenharmony_civoid uvwasi__stat_to_filestat(const uv_stat_t* stat, uvwasi_filestat_t* fs);
141cb0ef41Sopenharmony_ciuvwasi_errno_t uvwasi__get_filetype_by_fd(uv_file fd, uvwasi_filetype_t* type);
151cb0ef41Sopenharmony_ci
161cb0ef41Sopenharmony_ci#endif /* __UVWASI_UV_MAPPING_H__ */
17

Indexes created Thu Nov 07 10:32:03 CST 2024