Home
last modified time | relevance | path

Searched refs:arg (Results 1 - 25 of 28) sorted by relevance

12

/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dpty_process.rs34 command.arg("first").args(["second"]); in sdv_pty_process_test()
71 /// 3. Write `Pty` with arg.
75 let arg = "hello world!"; in sdv_pty_process_read_and_write_test()
83 pty.write_all(arg.as_bytes()).await.unwrap(); in sdv_pty_process_read_and_write_test()
92 assert_eq!(String::from_utf8_lossy(&buf).replace(['\n', '\r'], ""), arg); in sdv_pty_process_read_and_write_test()
99 /// 1. Create a `Pty` and a `Command` with arg.
101 /// 3. Write read_pty with arg.
105 let arg = "hello world!"; in sdv_pty_split_test()
115 write_pty.write_all(arg.as_bytes()).await.unwrap(); in sdv_pty_split_test()
124 assert_eq!(String::from_utf8_lossy(&buf).replace(['\n', '\r'], ""), arg); in sdv_pty_split_test()
[all...]
H A Dprocess.rs25 /// 1. Create a `Command` with arg.
31 command.arg("Hello, world!"); in sdv_process_output_test()
44 /// 1. Create a `Command` with arg.
50 command.arg("Hello, world!"); in sdv_process_status_test()
61 /// 1. Create a `Command` with arg.
68 command.arg("Hello, world!"); in sdv_process_spawn_test()
135 /// 1. Create a `Command` with arg.
142 command.arg("Hello, world!"); in sdv_process_kill_test()
153 /// 1. Create a `Command` with arg.
160 command.arg("Hell in sdv_process_try_wait_test()
[all...]
H A Dasync_fs.rs356 let arg = "hello world"; in sdv_async_fs_open_options()
357 file.write_all(arg.as_bytes()).await.unwrap(); in sdv_async_fs_open_options()
365 assert_eq!(arg.as_bytes(), buf); in sdv_async_fs_open_options()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/
H A Dmod.rs17 ($fn: ident ( $($arg: expr),* $(,)* ), $ret: expr) => {{
18 let res = unsafe { $fn($($arg, )*) };
54 ($fn: ident ( $($arg: expr),* $(,)* ), $err_fn: path, $err_val: expr) => {{
55 let res = unsafe { $fn($($arg, )*) };
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/
H A Dcommand.rs105 /// .arg("-l")
106 /// .arg("-a")
110 pub fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut Command { in arg() functions
111 self.std.arg(arg); in arg()
442 /// it only includes the arguments specified with Command::arg and
455 /// cmd.arg("first").arg("second");
544 pub fn arg0<S: AsRef<OsStr>>(&mut self, arg
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/pty_process/
H A Dcommand.rs76 /// .arg("-l")
77 /// .arg("-a")
81 pub fn arg<S: AsRef<OsStr>>(&mut self, arg: S) -> &mut PtyCommand { in arg() functions
82 self.command.arg(arg); in arg()
334 /// it only includes the arguments specified with Command::arg and
345 /// cmd.arg("first").arg("second");
449 pub fn arg0<S: AsRef<OsStr>>(&mut self, arg
[all...]
H A Dsys.rs241 let arg = "hello world!"; in ut_pty_read_write_test()
242 pty.write_all(arg.as_bytes()).unwrap(); in ut_pty_read_write_test()
246 assert_eq!(buf, arg.as_bytes()); in ut_pty_read_write_test()
/commonlibrary/utils_lite/kal/timer/src/
H A Dkal.c30 union sigval arg; member
40 tmpPtr->func(tmpPtr->arg); in KalFunction()
50 KalTimerId KalTimerCreate(KalTimerProc func, KalTimerType type, void* arg, unsigned int millisec) in KalTimerCreate() argument
62 kalTimer->arg.sival_ptr = arg; in KalTimerCreate()
/commonlibrary/ets_utils/js_concurrent_module/worker/
H A Dthread.cpp23 int ret = uv_thread_create(&tId_, [](void* arg) { in Start()
29 Thread* thread = reinterpret_cast<Thread*>(arg); in Start()
/commonlibrary/c_utils/base/include/
H A Dobserver.h71 * @brief Notifies all observers, with the data 'arg' passed to
77 * @param arg Indicates the parameters and data to be used for
81 void NotifyObservers(const ObserverArg* arg);
124 virtual void Update(const Observable* o, const ObserverArg* arg) = 0;
/commonlibrary/ets_utils/js_concurrent_module/taskpool/
H A Dthread.cpp47 int ret = uv_thread_create(&tid_, [](void* arg) { in Start()
53 Thread* thread = reinterpret_cast<Thread*>(arg); in Start()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/
H A Dmod.rs17 ($fn: ident ( $($arg: expr),* $(,)* ) ) => {{
18 let res = unsafe { libc::$fn($($arg, )*) };
/commonlibrary/c_utils/base/src/
H A Dobserver.cpp64 void Observable::NotifyObservers(const ObserverArg* arg) in NotifyObservers() argument
78 o->Update(this, arg); in NotifyObservers()
/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/bin/
H A Dylong_tokio_mem.rs25 .arg("-x") in get_memory_info()
26 .arg(cmd) in get_memory_info()
H A Dylong_tokio_spawn.rs28 .arg("-x") in get_memory_info()
29 .arg(cmd) in get_memory_info()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/sys/unix/
H A Dpipe.rs102 let arg = "Hello, world!"; in ut_process_pipe_test()
118 (&pipe).write_all(arg.as_bytes()).unwrap(); in ut_process_pipe_test()
125 assert_eq!(buf, arg.as_bytes()); in ut_process_pipe_test()
/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/
H A Dylong_tokio_process.rs33 command.arg("Hello, world!");
58 command.arg("Hello, world!");
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/
H A Dmacros.rs135 ($fn: ident ( $($arg: expr),* $(,)* ) ) => {{
136 let res = unsafe { libc::$fn($($arg, )*) };
/commonlibrary/utils_lite/kal/timer/include/
H A Dkal.h39 KalTimerId KalTimerCreate(KalTimerProc func, KalTimerType type, void* arg, unsigned int millisec);
/commonlibrary/rust/ylong_runtime/ylong_ffrt/src/
H A Dsys_event.rs30 fn ffrt_sys_event_destroy(event: FfrtSysEventHandleT, func: DestroyFunc, arg: *mut c_void); in ffrt_sys_event_destroy()
/commonlibrary/rust/ylong_runtime/ylong_runtime/examples/
H A Dylong_runtime_memory.rs39 .arg(cmd) in get_memory_info()
/commonlibrary/ets_utils/js_concurrent_module/utils/locks/
H A Dlock_request.h89 static void EnvCleanUp(void* arg);
H A Dasync_lock_manager.cpp292 napi_value arg; in Query() local
293 NAPI_CALL(env, napi_get_cb_info(env, cbinfo, &argc, &arg, nullptr, nullptr)); in Query()
295 napi_typeof(env, arg, &type); in Query()
301 std::string nameStr = NapiHelper::GetString(env, arg); in Query()
H A Dlock_request.cpp61 void LockRequest::EnvCleanUp(void *arg) in EnvCleanUp() argument
63 LockRequest *lockRequest = static_cast<LockRequest *>(arg); in EnvCleanUp()
/commonlibrary/ets_utils/js_api_module/xml/test/
H A Dtest_xml.h431 napi_value arg = nullptr; in DealNapiStrValueFunction() local
433 napi_create_string_utf8(env, pushStr.c_str(), pushStr.size(), &arg); in DealNapiStrValueFunction()
435 xmlSerializer.DealNapiStrValue(env, arg, output); in DealNapiStrValueFunction()

Completed in 9 milliseconds

12