Skip to content

Commit

Permalink
calls: Change port number in unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
XuShaohua committed Aug 2, 2024
1 parent 9ab1e3b commit 50658af
Show file tree
Hide file tree
Showing 14 changed files with 44 additions and 44 deletions.
2 changes: 1 addition & 1 deletion src/calls/bind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18085;
///
/// #[must_use]
/// #[inline]
Expand Down
2 changes: 1 addition & 1 deletion src/calls/getsockname.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18088;
///
/// #[must_use]
/// #[inline]
Expand Down
2 changes: 1 addition & 1 deletion src/calls/listen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18086;
///
/// #[must_use]
/// #[inline]
Expand Down
2 changes: 1 addition & 1 deletion src/calls/shutdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18087;
///
/// #[must_use]
/// #[inline]
Expand Down
8 changes: 4 additions & 4 deletions src/platform/linux-aarch64/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ pub unsafe fn adjtimex(buf: &mut timex_t) -> Result<i32, Errno> {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18085;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -2622,7 +2622,7 @@ pub unsafe fn getsid(pid: pid_t) -> pid_t {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18088;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3414,7 +3414,7 @@ pub unsafe fn linkat<P: AsRef<Path>>(
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18086;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -7311,7 +7311,7 @@ pub unsafe fn shmget(key: key_t, size: size_t, shm_flag: i32) -> Result<i32, Err
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18087;
///
/// #[must_use]
/// #[inline]
Expand Down
8 changes: 4 additions & 4 deletions src/platform/linux-arm/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ pub unsafe fn bdflush() {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18085;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3037,7 +3037,7 @@ pub unsafe fn getsid(pid: pid_t) -> pid_t {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18088;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3910,7 +3910,7 @@ pub unsafe fn linkat<P: AsRef<Path>>(
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18086;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -8208,7 +8208,7 @@ pub unsafe fn shmget(key: key_t, size: size_t, shm_flag: i32) -> Result<i32, Err
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18087;
///
/// #[must_use]
/// #[inline]
Expand Down
8 changes: 4 additions & 4 deletions src/platform/linux-loongarch64/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ pub unsafe fn adjtimex(buf: &mut timex_t) -> Result<i32, Errno> {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18085;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -2244,7 +2244,7 @@ pub unsafe fn getsid(pid: pid_t) -> pid_t {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18088;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -2970,7 +2970,7 @@ pub unsafe fn linkat<P: AsRef<Path>>(
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18086;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -6550,7 +6550,7 @@ pub unsafe fn shmget(key: key_t, size: size_t, shm_flag: i32) -> Result<i32, Err
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18087;
///
/// #[must_use]
/// #[inline]
Expand Down
8 changes: 4 additions & 4 deletions src/platform/linux-mips/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ pub unsafe fn bdflush() {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18085;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3114,7 +3114,7 @@ pub unsafe fn getsid(pid: pid_t) -> pid_t {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18088;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -4016,7 +4016,7 @@ pub unsafe fn linkat<P: AsRef<Path>>(
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18086;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -8335,7 +8335,7 @@ pub unsafe fn shmget(key: key_t, size: size_t, shm_flag: i32) -> Result<i32, Err
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18087;
///
/// #[must_use]
/// #[inline]
Expand Down
8 changes: 4 additions & 4 deletions src/platform/linux-mips64/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ pub unsafe fn alarm(seconds: u32) -> u32 {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18085;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -2979,7 +2979,7 @@ pub unsafe fn getsid(pid: pid_t) -> pid_t {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18088;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3829,7 +3829,7 @@ pub unsafe fn linkat<P: AsRef<Path>>(
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18086;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -7997,7 +7997,7 @@ pub unsafe fn shmget(key: key_t, size: size_t, shm_flag: i32) -> Result<i32, Err
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18087;
///
/// #[must_use]
/// #[inline]
Expand Down
8 changes: 4 additions & 4 deletions src/platform/linux-ppc64/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ pub unsafe fn bdflush() {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18085;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3012,7 +3012,7 @@ pub unsafe fn getsid(pid: pid_t) -> pid_t {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18088;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3937,7 +3937,7 @@ pub unsafe fn linkat<P: AsRef<Path>>(
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18086;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -8259,7 +8259,7 @@ pub unsafe fn shmget(key: key_t, size: size_t, shm_flag: i32) -> Result<i32, Err
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18087;
///
/// #[must_use]
/// #[inline]
Expand Down
8 changes: 4 additions & 4 deletions src/platform/linux-riscv64/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ pub unsafe fn adjtimex(buf: &mut timex_t) -> Result<i32, Errno> {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18085;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -2622,7 +2622,7 @@ pub unsafe fn getsid(pid: pid_t) -> pid_t {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18088;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3414,7 +3414,7 @@ pub unsafe fn linkat<P: AsRef<Path>>(
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18086;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -7272,7 +7272,7 @@ pub unsafe fn shmget(key: key_t, size: size_t, shm_flag: i32) -> Result<i32, Err
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18087;
///
/// #[must_use]
/// #[inline]
Expand Down
8 changes: 4 additions & 4 deletions src/platform/linux-s390x/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ pub unsafe fn bdflush() {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18085;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -2908,7 +2908,7 @@ pub unsafe fn getsid(pid: pid_t) -> pid_t {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18088;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3813,7 +3813,7 @@ pub unsafe fn linkat<P: AsRef<Path>>(
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18086;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -8005,7 +8005,7 @@ pub unsafe fn shmget(key: key_t, size: size_t, shm_flag: i32) -> Result<i32, Err
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18087;
///
/// #[must_use]
/// #[inline]
Expand Down
8 changes: 4 additions & 4 deletions src/platform/linux-x86/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ pub unsafe fn bdflush() {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18085;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3037,7 +3037,7 @@ pub unsafe fn getsid(pid: pid_t) -> pid_t {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18088;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3945,7 +3945,7 @@ pub unsafe fn linkat<P: AsRef<Path>>(
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18086;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -8192,7 +8192,7 @@ pub unsafe fn shmget(key: key_t, size: size_t, shm_flag: i32) -> Result<i32, Err
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18087;
///
/// #[must_use]
/// #[inline]
Expand Down
8 changes: 4 additions & 4 deletions src/platform/linux-x86_64/call.rs
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ pub unsafe fn arch_prctl(code: i32, arg2: usize) -> Result<(), Errno> {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18085;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -2978,7 +2978,7 @@ pub unsafe fn getsid(pid: pid_t) -> pid_t {
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18088;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -3877,7 +3877,7 @@ pub unsafe fn linkat<P: AsRef<Path>>(
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18086;
///
/// #[must_use]
/// #[inline]
Expand Down Expand Up @@ -8069,7 +8069,7 @@ pub unsafe fn shmget(key: key_t, size: size_t, shm_flag: i32) -> Result<i32, Err
/// use std::mem::{size_of, transmute};
/// use std::thread;
///
/// const SERVER_PORT: u16 = 18084;
/// const SERVER_PORT: u16 = 18087;
///
/// #[must_use]
/// #[inline]
Expand Down

0 comments on commit 50658af

Please sign in to comment.