MCPcopy Create free account

hub / github.com/PKUFlyingPig/CS110L / functions

Functions179 in github.com/PKUFlyingPig/CS110L

Methodaddress
(&self)
proj-2/balancebeam/tests/common/error_server.rs:92
Functionchild_traceme
This function calls ptrace with PTRACE_TRACEME to enable debugging on a process. You should use pre_exec with Command to call this in the child proces
proj-1/deet/src/inferior.rs:31
Methodcolorized_name
TODO: delete this line for Milestone 5
week3/inspect-fds/src/open_file.rs:142
Methodcompute_norm
(&self)
week3/linked_list/src/linked_list.rs:133
Methodcompute_norm
(&self)
week3/linked_list/src/linked_list.rs:139
Methoddrop
(&mut self)
week3/linked_list/src/linked_list.rs:66
Methodeq
(&self, other: &Node<T>)
week3/linked_list/src/linked_list.rs:86
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
week3/linked_list/src/linked_list.rs:49
Methodfmt
(&self, f: &mut fmt::Formatter)
week3/inspect-fds/src/ps_utils.rs:19
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
week3/inspect-fds/src/open_file.rs:28
Methodfmt
(&self, f: &mut fmt::Formatter<'_>)
proj-1/deet/src/dwarf_data.rs:19
Methodfrom
(error: std::io::Error)
week3/inspect-fds/src/ps_utils.rs:29
Methodfrom
(err: gimli_wrapper::Error)
proj-1/deet/src/dwarf_data.rs:25
Methodfrom
(err: gimli::Error)
proj-1/deet/src/gimli_wrapper.rs:264
Methodfrom_fd
Given a specified process and fd number, this function reads /proc/{pid}/fd/{fdnum} and /proc/{pid}/fdinfo/{fdnum} to populate an OpenFile struct. It
week3/inspect-fds/src/open_file.rs:127
Methodfrom_file
(path: &str)
proj-1/deet/src/dwarf_data.rs:31
Methodfrom_tokens
(tokens: &Vec<&str>)
proj-1/deet/src/debugger_command.rs:10
Functionmain
()
week1/part-2-warmup/src/main.rs:5
Functionmain
()
week1/part-3-hangman/src/main.rs:46
Functionmain
()
week1/part-1-hello-world/src/main.rs:1
Functionmain
()
proj-2/balancebeam/src/main.rs:73
Functionmain
()
simple-server/src/main.rs:10
Functionmain
()
week3/linked_list/src/main.rs:5
Functionmain
week3/inspect-fds/multi_pipe_test.c:4
Functionmain
week3/inspect-fds/nothing.c:1
Functionmain
week3/inspect-fds/zombie_test.c:4
Functionmain
()
week3/inspect-fds/src/main.rs:7
Functionmain
proj-1/deet/samples/segfault.c:14
Functionmain
proj-1/deet/samples/exit.c:3
Functionmain
proj-1/deet/samples/sleepy_print.c:5
Functionmain
proj-1/deet/samples/function_calls.c:23
Functionmain
proj-1/deet/samples/hello.c:3
Functionmain
proj-1/deet/samples/count.c:3
Functionmain
()
proj-1/deet/src/main.rs:11
Functionmain
()
week6/parallel_map/src/main.rs:56
Functionmain
()
week5/farm/src/main.rs:79
Functionmain
()
week2/rwc/src/main.rs:4
Functionmain
()
week2/rdiff/src/main.rs:64
Methodnew
()
proj-2/balancebeam/tests/common/error_server.rs:31
Methodnew
( upstreams: &[&str], active_health_check_interval: Option<usize>, max_requests_per_mi
proj-2/balancebeam/tests/common/balancebeam.rs:22
Methodnew
()
proj-2/balancebeam/tests/common/echo_server.rs:43
Methodnew
(value: T, next: Option<Box<Node<T>>>)
week3/linked_list/src/linked_list.rs:15
Methodnew
(pid: usize, ppid: usize, command: String)
week3/inspect-fds/src/process.rs:13
Methodnew
(name: String, cursor: usize, access_mode: AccessMode)
week3/inspect-fds/src/open_file.rs:50
Methodnew
(name: String, size: usize)
proj-1/deet/src/dwarf_data.rs:158
Methodnew
Initializes the debugger.
proj-1/deet/src/debugger.rs:21
Methodnew
Attempts to start a new inferior process. Returns Some(Inferior) if successful, or None if an error is encountered.
proj-1/deet/src/inferior.rs:45
Methodnew
Returns a Grid of the specified size, with all elements pre-initialized to zero.
week2/rdiff/src/grid.rs:10
Methodnew_at_address
(bind_addr_string: String)
proj-2/balancebeam/tests/common/error_server.rs:37
Methodnew_at_address
(bind_addr_string: String)
proj-2/balancebeam/tests/common/echo_server.rs:48
Methodparse_access_mode
This file takes the contents of /proc/{pid}/fdinfo/{fdnum} for some file descriptor and extracts the access mode for that open file using the "flags:"
week3/inspect-fds/src/open_file.rs:97
Methodparse_cursor
This file takes the contents of /proc/{pid}/fdinfo/{fdnum} for some file descriptor and extracts the cursor position of that file descriptor (technica
week3/inspect-fds/src/open_file.rs:79
Methodpath_to_name
This function takes a path of an open file and returns a more human-friendly name for that file. For regular files, this will simply return the suppl
week3/inspect-fds/src/open_file.rs:64
Functionread_from_stream
This function reads and returns an HTTP response from a stream, returning an Error if the server closes the connection prematurely or sends an invalid
proj-2/balancebeam/src/response.rs:161
Methodstop
(self: Box<Self>)
proj-2/balancebeam/tests/common/error_server.rs:81
Methodtarget_bin_path
()
proj-2/balancebeam/tests/common/balancebeam.rs:14
Functiontest_active_health_checks_check_http_status
()
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:141
Functiontest_active_health_checks_restore_failed_upstream
()
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:202
Functiontest_add_n
()
week1/part-2-warmup/src/main.rs:45
Functiontest_add_n_inplace
()
week1/part-2-warmup/src/main.rs:50
Functiontest_dedup
()
week1/part-2-warmup/src/main.rs:57
Functiontest_exit_status_invalid_target
()
week3/inspect-fds/src/main.rs:59
Functiontest_exit_status_valid_target
()
week3/inspect-fds/src/main.rs:43
Functiontest_get_target_invalid_command
()
week3/inspect-fds/src/ps_utils.rs:162
Functiontest_get_target_invalid_pid
()
week3/inspect-fds/src/ps_utils.rs:172
Functiontest_get_target_success
()
week3/inspect-fds/src/ps_utils.rs:152
Functiontest_grid
()
week2/rdiff/src/grid.rs:76
Functiontest_lcs
()
week2/rdiff/src/main.rs:96
Functiontest_list_fds
()
week3/inspect-fds/src/process.rs:79
Functiontest_list_fds_zombie
()
week3/inspect-fds/src/process.rs:92
Functiontest_load_distribution
()
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:42
Functiontest_multiple_requests_per_connection
()
proj-2/balancebeam/tests/01_single_upstream_tests.rs:51
Functiontest_openfile_from_fd
()
week3/inspect-fds/src/open_file.rs:168
Functiontest_openfile_from_fd_invalid_fd
()
week3/inspect-fds/src/open_file.rs:181
Functiontest_passive_health_checks
()
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:127
Functiontest_rate_limiting
()
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:245
Functiontest_read_file_lines
()
week2/rdiff/src/main.rs:84
Functiontest_simple_connections
()
proj-2/balancebeam/tests/01_single_upstream_tests.rs:16
Functionwrite_to_stream
This function serializes a response to bytes and writes those bytes to the provided stream. You will need to modify this function in Milestone 2.
proj-2/balancebeam/src/response.rs:181
← previous101–179 of 179, ranked by callers