MCPcopy Create free account

hub / github.com/rust-lang/libc / functions

Functions806 in github.com/rust-lang/libc

↓ 2 callersFunctionctest_field_ptr__VecU16__x
ctest/tests/input/macro.out.c:105
↓ 2 callersFunctionctest_field_ptr__VecU16__y
ctest/tests/input/macro.out.c:112
↓ 2 callersFunctionctest_field_ptr__VecU8__x
ctest/tests/input/macro.out.c:91
↓ 2 callersFunctionctest_field_ptr__VecU8__y
ctest/tests/input/macro.out.c:98
↓ 2 callersFunctionctest_offset_of__VecU16__x
ctest/tests/input/macro.out.c:70
↓ 2 callersFunctionctest_offset_of__VecU16__y
ctest/tests/input/macro.out.c:78
↓ 2 callersFunctionctest_offset_of__VecU8__x
ctest/tests/input/macro.out.c:54
↓ 2 callersFunctionctest_offset_of__VecU8__y
ctest/tests/input/macro.out.c:62
↓ 2 callersFunctionctest_roundtrip__VecU16
ctest/tests/input/macro.out.c:158
↓ 2 callersFunctionctest_roundtrip__VecU8
ctest/tests/input/macro.out.c:137
↓ 2 callersFunctionctest_roundtrip__volatile_char
ctest/tests/input/simple.out.with-skips.c:76
↓ 2 callersFunctionctest_signededness_of__volatile_char
ctest/tests/input/simple.out.with-skips.c:45
↓ 2 callersFunctionctest_size_of__Byte
ctest/tests/input/simple.out.with-renames.c:65
↓ 2 callersFunctionctest_size_of__Color
ctest/tests/input/simple.out.with-renames.c:74
↓ 2 callersFunctionctest_size_of__Person
ctest/tests/input/simple.out.with-renames.c:77
↓ 2 callersFunctionctest_size_of__VecU16__x
ctest/tests/input/macro.out.c:74
↓ 2 callersFunctionctest_size_of__VecU16__y
ctest/tests/input/macro.out.c:82
↓ 2 callersFunctionctest_size_of__VecU8__x
ctest/tests/input/macro.out.c:58
↓ 2 callersFunctionctest_size_of__VecU8__y
ctest/tests/input/macro.out.c:66
↓ 2 callersFunctionctest_size_of__Word
ctest/tests/input/simple.out.with-renames.c:80
↓ 2 callersFunctionctest_size_of__in6_addr
ctest/tests/input/hierarchy.out.c:41
↓ 2 callersFunctionenv_flag
Return true if the env is set to a value other than `0`.
build.rs:339
↓ 2 callersMethodextension
Return the file extension of the programming language.
ctest/src/lib.rs:108
↓ 2 callersFunctionextract_single_link_name
(attrs: &[syn::Attribute])
ctest/src/ffi_items.rs:115
↓ 2 callersFunctionget_build_target
Search for the target to build for, specified manually or through an environment variable. This function will check the following places for the targ
ctest/src/lib.rs:122
↓ 2 callersMethodheader_with_defines
Add a header to be included as part of the generated C file, as well as defines for it. The generated C test will be compiled by a C compiler, and th
ctest/src/generator.rs:149
↓ 2 callersMethodis_rhs
True if this type is added to the RHS in a cdecl (arrays, function pointers).
ctest/src/cdecl.rs:59
↓ 2 callersMethodmap_rust_name_to_c
(&self, name: &'name str)
ctest/src/translator.rs:293
↓ 2 callersFunctionoutput
Executes a command, returning stdout and stderr combined and it's status.
ctest-test/tests/all.rs:23
↓ 2 callersFunctionpread
(_fd: c_int, _buf: *mut c_void, _count: size_t, _offset: off64_t)
src/vxworks/mod.rs:2419
↓ 2 callersFunctionpwrite
(_fd: c_int, _buf: *const c_void, _count: size_t, _offset: off64_t)
src/vxworks/mod.rs:2423
↓ 2 callersMethodrename_fn
Configures the name of a function in the generated C code. # Examples ```no_run use ctest::TestGenerator; let mut cfg = TestGenerator::new(); cfg.r
ctest/src/generator.rs:871
↓ 2 callersFunctionrustc_version_cmd
Run `rustc --version` and capture the output, adjusting arguments as needed if `clippy-driver` is used instead.
build.rs:198
↓ 2 callersMethodskip_c_enum
Configures whether tests for a C enum are generated. A C enum consists of a type alias, as well as constants that have the same type. Tests for both
ctest/src/generator.rs:644
↓ 2 callersMethodskip_private
Non public items are not tested if `skip` is `true`. # Examples ```no_run use ctest::TestGenerator; let mut cfg = TestGenerator::new(); cfg.skip_pr
ctest/src/generator.rs:287
↓ 2 callersMethodtarget
Configures the target to compile C code for. Note that for Cargo builds this defaults to `$TARGET` and it's not necessary to call. # Examples ```no
ctest/src/generator.rs:192
↓ 2 callersFunctiontest_linux
This also covers the L4Re targets since they have a similar API surface
libc-test/build.rs:3666
↓ 2 callersFunctiontest_linux_like_apis
This function tests APIs that are incompatible to test when other APIs are included (e.g. because including both sets of headers clashes)
libc-test/build.rs:4881
↓ 2 callersFunctiontest_solarish
(target: &str)
libc-test/build.rs:917
↓ 2 callersFunctiontry_command_output
Attempt to execute a command and collect its output, If the command fails for whatever reason, return `None`.
libc-test/build.rs:5642
↓ 2 callersMethodvolatile_fn_arg
Indicate that a function argument should be marked `volatile`. # Examples ```no_run use ctest::{TestGenerator, VolatileItemKind}; let mut cfg = Tes
ctest/src/generator.rs:382
↓ 2 callersMethodvolatile_fn_return_type
Indicate that a function's return type should be marked `volatile`. # Examples ```no_run use ctest::{TestGenerator, VolatileItemKind}; let mut cfg
ctest/src/generator.rs:408
↓ 2 callersMethodvolatile_static
Indicate that a static should be marked `volatile`. # Examples ```no_run use ctest::{TestGenerator, VolatileItemKind}; let mut cfg = TestGenerator:
ctest/src/generator.rs:359
↓ 2 callersMethodwrite_to
(self, s: &mut String)
ctest/src/cdecl.rs:157
↓ 2 callersFunctionxtrace
(args: list[str])
ci/style.py:172
↓ 2 callersFunctionxtrace
Print commands before running them.
ci/verify-build.py:223
↓ 1 callersFunctionCPU_COUNT_S
(size: usize, cpuset: &cpu_set_t)
src/teeos/mod.rs:1337
↓ 1 callersFunction__CMSG_LEN
(cmsg: *const cmsghdr)
src/fuchsia/mod.rs:3175
↓ 1 callersFunction__test_const_A
Define a function that returns a pointer to the value of the constant to test. This will later be called on the Rust side via FFI.
ctest/tests/input/simple.out.c:13
↓ 1 callersMethodarray_arg
Indicate that a function pointer argument is an array. This closure should return true if a pointer argument to a function should be generated with `
ctest/src/generator.rs:439
↓ 1 callersFunctioncdecl_impl
C declarations are read from the declaration out, left to right, switching directions when a `)` is hit. So, to reverse this, we build from the declar
ctest/src/cdecl.rs:102
↓ 1 callersFunctioncfsetspeed
(termios: *mut crate::termios, speed: crate::speed_t)
src/unix/solarish/compat.rs:37
↓ 1 callersFunctioncheck_dup_targets
Ensure there are no duplicate targets in the list.
ci/verify-build.py:251
↓ 1 callersMethodcheck_file
Reads and parses the file at the given path and checks for any style violations.
libc-test/tests/style_lib/mod.rs:137
↓ 1 callersMethodcheck_ret_ty
Validate that we aren't returning an array or a function without indirection, which isn't allowed in C.
ctest/src/cdecl.rs:48
↓ 1 callersFunctioncheck_same
Check that the value returned from the Rust and C side in a certain test is equivalent. Internally it will remember which checks failed and how many
ctest/tests/input/simple.out.rs:22
↓ 1 callersFunctioncheck_same_bytes
(rust: &[u8], c: &[u8], attr: &str)
ctest/templates/test.rs:42
↓ 1 callersFunctioncheck_same_bytes
(rust: &[u8], c: &[u8], attr: &str)
ctest/tests/input/hierarchy.out.rs:38
↓ 1 callersFunctioncheck_semver_file
(fpath: Path)
ci/style.py:134
↓ 1 callersFunctioncmsg_nxthdr
libc-test/src/cmsg.c:13
↓ 1 callersFunctionconst_A
Test that the string constant is the same in both Rust and C. While fat pointers can't be translated, we instead of * const c_char.
ctest/tests/input/simple.out.rs:45
↓ 1 callersFunctionconst_test_ident
(ident: &str)
ctest/src/template.rs:579
↓ 1 callersMethodconstants
Return a list of all constants found.
ctest/src/ffi_items.rs:68
↓ 1 callersMethodcontains_struct
Return whether the type has parsed a struct with the given identifier.
ctest/src/ffi_items.rs:41
↓ 1 callersMethodcontains_union
Return whether the type has parsed a union with the given identifier.
ctest/src/ffi_items.rs:48
↓ 1 callersFunctioncstr_test_ident
(ident: &str)
ctest/src/template.rs:575
↓ 1 callersFunctionctest_align_of__Byte
ctest/tests/input/simple.out.with-renames.c:66
↓ 1 callersFunctionctest_align_of__Color
ctest/tests/input/simple.out.with-renames.c:75
↓ 1 callersFunctionctest_align_of__Person
ctest/tests/input/simple.out.with-renames.c:78
↓ 1 callersFunctionctest_align_of__Word
ctest/tests/input/simple.out.with-renames.c:81
↓ 1 callersFunctionctest_align_of__gregset_t
ctest/tests/input/simple.out.with-renames.c:72
↓ 1 callersFunctionctest_align_of__in6_addr
ctest/tests/input/hierarchy.out.c:42
↓ 1 callersFunctionctest_const_BLUE
()
ctest/tests/input/simple.out.with-renames.rs:145
↓ 1 callersFunctionctest_const_GREEN
()
ctest/tests/input/simple.out.with-renames.rs:166
↓ 1 callersFunctionctest_const_ON
()
ctest/tests/input/hierarchy.out.rs:82
↓ 1 callersFunctionctest_const_RED
()
ctest/tests/input/simple.out.with-renames.rs:124
↓ 1 callersFunctionctest_const__BLUE
ctest/tests/input/simple.out.with-renames.c:52
↓ 1 callersFunctionctest_const__GREEN
ctest/tests/input/simple.out.with-renames.c:58
↓ 1 callersFunctionctest_const__ON
ctest/tests/input/hierarchy.out.c:34
↓ 1 callersFunctionctest_const__RED
ctest/tests/input/simple.out.with-renames.c:46
↓ 1 callersFunctionctest_const_cstr_A
()
ctest/tests/input/simple.out.with-renames.rs:76
↓ 1 callersFunctionctest_const_cstr_B
()
ctest/tests/input/simple.out.with-renames.rs:97
↓ 1 callersFunctionctest_const_cstr__A
ctest/tests/input/simple.out.with-renames.c:27
↓ 1 callersFunctionctest_const_cstr__B
ctest/tests/input/simple.out.with-renames.c:33
↓ 1 callersFunctionctest_field_ptr_Person_age
()
ctest/tests/input/simple.out.with-renames.rs:483
↓ 1 callersFunctionctest_field_ptr_Person_favorite_color
()
ctest/tests/input/simple.out.with-renames.rs:517
↓ 1 callersFunctionctest_field_ptr_Person_job
()
ctest/tests/input/simple.out.with-renames.rs:500
↓ 1 callersFunctionctest_field_ptr_Person_name
()
ctest/tests/input/simple.out.with-renames.rs:466
↓ 1 callersFunctionctest_field_ptr_VecU16_x
()
ctest/tests/input/macro.out.edition-2024.rs:261
↓ 1 callersFunctionctest_field_ptr_VecU16_x
()
ctest/tests/input/macro.out.rs:261
↓ 1 callersFunctionctest_field_ptr_VecU16_y
()
ctest/tests/input/macro.out.edition-2024.rs:278
↓ 1 callersFunctionctest_field_ptr_VecU16_y
()
ctest/tests/input/macro.out.rs:278
↓ 1 callersFunctionctest_field_ptr_VecU8_x
()
ctest/tests/input/macro.out.edition-2024.rs:227
↓ 1 callersFunctionctest_field_ptr_VecU8_x
()
ctest/tests/input/macro.out.rs:227
↓ 1 callersFunctionctest_field_ptr_VecU8_y
()
ctest/tests/input/macro.out.edition-2024.rs:244
↓ 1 callersFunctionctest_field_ptr_VecU8_y
()
ctest/tests/input/macro.out.rs:244
↓ 1 callersFunctionctest_field_ptr_Word_byte
()
ctest/tests/input/simple.out.with-renames.rs:551
↓ 1 callersFunctionctest_field_ptr_Word_word
()
ctest/tests/input/simple.out.with-renames.rs:534
↓ 1 callersFunctionctest_field_ptr__Person__age
ctest/tests/input/simple.out.with-renames.c:163
↓ 1 callersFunctionctest_field_ptr__Person__favorite_color
ctest/tests/input/simple.out.with-renames.c:177
← previousnext →101–200 of 806, ranked by callers