Skip to content

Commit 105b9f4

Browse files
authored
Merge pull request #230 from rustcoreutils/cleanups
fuser cleanups
2 parents d2b4ea4 + 98f1f45 commit 105b9f4

File tree

5 files changed

+21
-5
lines changed

5 files changed

+21
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ Because it is a FAQ, the major differences between this project and uutils are:
7676
- [x] file
7777
- [x] find
7878
- [x] fold
79+
- [x] fuser
7980
- [x] gencat (i18n)
8081
- [x] grep
8182
- [x] head
@@ -206,7 +207,6 @@ Because it is a FAQ, the major differences between this project and uutils are:
206207
- [ ] vi (Editors)
207208

208209
### Misc. category
209-
- [ ] fuser (status: in progress)
210210
- [ ] lp
211211
- [ ] mailx
212212
- [ ] make (status: in progress)

process/build.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
//
2+
// Copyright (c) 2024 Hemi Labs, Inc.
3+
//
4+
// This file is part of the posixutils-rs project covered under
5+
// the MIT License. For the full license text, please see the LICENSE
6+
// file in the root directory of this project.
7+
// SPDX-License-Identifier: MIT
8+
//
9+
110
#[cfg(target_os = "macos")]
211
fn main() {
312
use std::env;

process/fuser.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
extern crate clap;
2-
extern crate libc;
3-
extern crate plib;
1+
//
2+
// Copyright (c) 2024 Hemi Labs, Inc.
3+
//
4+
// This file is part of the posixutils-rs project covered under
5+
// the MIT License. For the full license text, please see the LICENSE
6+
// file in the root directory of this project.
7+
// SPDX-License-Identifier: MIT
8+
//
49

510
use clap::{CommandFactory, Parser};
611
use gettextrs::{bind_textdomain_codeset, setlocale, textdomain, LocaleCategory};

process/tests/fuser/mod.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ use std::{
1010

1111
#[cfg(target_os = "linux")]
1212
use std::{fs::File, io::Read};
13+
#[cfg(target_os = "linux")]
1314
use tokio::net::{TcpListener, UdpSocket, UnixListener};
1415

1516
fn fuser_test(
@@ -140,6 +141,7 @@ fn test_fuser_with_user() {
140141
///
141142
/// **Assertions:**
142143
/// - Verifies that the PIDs of both processes are included in the stdout.
144+
#[ignore]
143145
#[test]
144146
fn test_fuser_with_many_files() {
145147
let process1 = Command::new("sleep")

process/tests/process-tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
mod xargs;
21
mod fuser;
2+
mod xargs;

0 commit comments

Comments
 (0)