Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PKUFlyingPig/CS110L
/ functions
Functions
179 in github.com/PKUFlyingPig/CS110L
⨍
Functions
179
◇
Types & classes
34
Method
address
(&self)
proj-2/balancebeam/tests/common/error_server.rs:92
Function
child_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
Method
colorized_name
TODO: delete this line for Milestone 5
week3/inspect-fds/src/open_file.rs:142
Method
compute_norm
(&self)
week3/linked_list/src/linked_list.rs:133
Method
compute_norm
(&self)
week3/linked_list/src/linked_list.rs:139
Method
drop
(&mut self)
week3/linked_list/src/linked_list.rs:66
Method
eq
(&self, other: &Node<T>)
week3/linked_list/src/linked_list.rs:86
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
week3/linked_list/src/linked_list.rs:49
Method
fmt
(&self, f: &mut fmt::Formatter)
week3/inspect-fds/src/ps_utils.rs:19
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
week3/inspect-fds/src/open_file.rs:28
Method
fmt
(&self, f: &mut fmt::Formatter<'_>)
proj-1/deet/src/dwarf_data.rs:19
Method
from
(error: std::io::Error)
week3/inspect-fds/src/ps_utils.rs:29
Method
from
(err: gimli_wrapper::Error)
proj-1/deet/src/dwarf_data.rs:25
Method
from
(err: gimli::Error)
proj-1/deet/src/gimli_wrapper.rs:264
Method
from_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
Method
from_file
(path: &str)
proj-1/deet/src/dwarf_data.rs:31
Method
from_tokens
(tokens: &Vec<&str>)
proj-1/deet/src/debugger_command.rs:10
Function
main
()
week1/part-2-warmup/src/main.rs:5
Function
main
()
week1/part-3-hangman/src/main.rs:46
Function
main
()
week1/part-1-hello-world/src/main.rs:1
Function
main
()
proj-2/balancebeam/src/main.rs:73
Function
main
()
simple-server/src/main.rs:10
Function
main
()
week3/linked_list/src/main.rs:5
Function
main
week3/inspect-fds/multi_pipe_test.c:4
Function
main
week3/inspect-fds/nothing.c:1
Function
main
week3/inspect-fds/zombie_test.c:4
Function
main
()
week3/inspect-fds/src/main.rs:7
Function
main
proj-1/deet/samples/segfault.c:14
Function
main
proj-1/deet/samples/exit.c:3
Function
main
proj-1/deet/samples/sleepy_print.c:5
Function
main
proj-1/deet/samples/function_calls.c:23
Function
main
proj-1/deet/samples/hello.c:3
Function
main
proj-1/deet/samples/count.c:3
Function
main
()
proj-1/deet/src/main.rs:11
Function
main
()
week6/parallel_map/src/main.rs:56
Function
main
()
week5/farm/src/main.rs:79
Function
main
()
week2/rwc/src/main.rs:4
Function
main
()
week2/rdiff/src/main.rs:64
Method
new
()
proj-2/balancebeam/tests/common/error_server.rs:31
Method
new
( upstreams: &[&str], active_health_check_interval: Option<usize>, max_requests_per_mi
proj-2/balancebeam/tests/common/balancebeam.rs:22
Method
new
()
proj-2/balancebeam/tests/common/echo_server.rs:43
Method
new
(value: T, next: Option<Box<Node<T>>>)
week3/linked_list/src/linked_list.rs:15
Method
new
(pid: usize, ppid: usize, command: String)
week3/inspect-fds/src/process.rs:13
Method
new
(name: String, cursor: usize, access_mode: AccessMode)
week3/inspect-fds/src/open_file.rs:50
Method
new
(name: String, size: usize)
proj-1/deet/src/dwarf_data.rs:158
Method
new
Initializes the debugger.
proj-1/deet/src/debugger.rs:21
Method
new
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
Method
new
Returns a Grid of the specified size, with all elements pre-initialized to zero.
week2/rdiff/src/grid.rs:10
Method
new_at_address
(bind_addr_string: String)
proj-2/balancebeam/tests/common/error_server.rs:37
Method
new_at_address
(bind_addr_string: String)
proj-2/balancebeam/tests/common/echo_server.rs:48
Method
parse_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
Method
parse_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
Method
path_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
Function
read_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
Method
stop
(self: Box<Self>)
proj-2/balancebeam/tests/common/error_server.rs:81
Method
target_bin_path
()
proj-2/balancebeam/tests/common/balancebeam.rs:14
Function
test_active_health_checks_check_http_status
()
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:141
Function
test_active_health_checks_restore_failed_upstream
()
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:202
Function
test_add_n
()
week1/part-2-warmup/src/main.rs:45
Function
test_add_n_inplace
()
week1/part-2-warmup/src/main.rs:50
Function
test_dedup
()
week1/part-2-warmup/src/main.rs:57
Function
test_exit_status_invalid_target
()
week3/inspect-fds/src/main.rs:59
Function
test_exit_status_valid_target
()
week3/inspect-fds/src/main.rs:43
Function
test_get_target_invalid_command
()
week3/inspect-fds/src/ps_utils.rs:162
Function
test_get_target_invalid_pid
()
week3/inspect-fds/src/ps_utils.rs:172
Function
test_get_target_success
()
week3/inspect-fds/src/ps_utils.rs:152
Function
test_grid
()
week2/rdiff/src/grid.rs:76
Function
test_lcs
()
week2/rdiff/src/main.rs:96
Function
test_list_fds
()
week3/inspect-fds/src/process.rs:79
Function
test_list_fds_zombie
()
week3/inspect-fds/src/process.rs:92
Function
test_load_distribution
()
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:42
Function
test_multiple_requests_per_connection
()
proj-2/balancebeam/tests/01_single_upstream_tests.rs:51
Function
test_openfile_from_fd
()
week3/inspect-fds/src/open_file.rs:168
Function
test_openfile_from_fd_invalid_fd
()
week3/inspect-fds/src/open_file.rs:181
Function
test_passive_health_checks
()
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:127
Function
test_rate_limiting
()
proj-2/balancebeam/tests/02_multiple_upstream_tests.rs:245
Function
test_read_file_lines
()
week2/rdiff/src/main.rs:84
Function
test_simple_connections
()
proj-2/balancebeam/tests/01_single_upstream_tests.rs:16
Function
write_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
← previous
101–179 of 179, ranked by callers