Find Jobs
Hire Freelancers

Project 1 (Operating System) -- 2

$10-30 USD

Completed
Posted over 3 years ago

$10-30 USD

Paid on delivery
Hello my name is Naresh. I need to get this project done in C language please (if possible). Project: Linux System Calls and Library Functions Implement the task specified in Exercise 5.39 (p. 180) in your text by Robbins/Robbins. Do only questions 1–4 in the assign- ment, that is, you do not have to do breadthfirstapply. Your executable will be called mydu. This exercise deals with the implementation of the Unix application known as du. The command du displays the size of subdirectories of the tree rooted at the directories/files specified on the command-line arguments. If called with no argument, the du utility uses the current working directory. Your solution will be invoked using the following command: mydu [-h] mydu [-a] [-B M | -b | -m] [-c] [-d N] [-H] [-L] [-s] <dir1> <dir2> ... -a Write count for all files, not just directories. -B M Scale sizes by M before printing; for example, -BM prints size in units of 1,048,576 bytes. -b Print size in bytes. -c Print a grand total. -d N Print the total for a directory only if it is N or fewer levels below the command line argument. -h Print a help message or usage, and exit -H Human readable; print size in human readable format, for example, 1K, 234M, 2G. -L Dereference all symbolic links. By default, you will not dereference symbolic links. -m Same as -B 1048576. -s Display only a total for each argument. When you use perror, please print some meaningful error messages. The format for error messages should be: mydu: Error: Detailed error message where mydu is actually the name of the executable (argv[0]) and should be appropriately modified if the name of executable is changed without a need for recompilation. It is required for this project that you use version control, a Makefile, and a README. Your README file should consist, at a minimum, of a description of how I should compile and run your project, any outstanding problems that it still has, and any problems you encountered. Your Makefile should use suffix-rules or pattern-rules and have an option to clean up object files. You are free to use your own data structures and algorithms to perform the depth-first search. Your code should give proper results if the directory is empty, or if the directory does not contain any more subdirectories. Your code should properly account for the file size, possibly by using stat(2) family of functions. Do not use system(3) function for anything.
Project ID: 27340220

About the project

1 proposal
Remote project
Active 4 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Hi... I have a sound knowledge of Operating system with 3+ years of competitive programming experience in C/C++. I would like to do your project. I have read the description and I think that I am capable of doing this in the required time. Feel free to drop me a message so that we will discuss it further. I ensure you the following things; - Quality Work - In time delivery - Well Commented Code regards, Zulqar Abbas
$40 USD in 2 days
3.7 (7 reviews)
3.2
3.2

About the client

Flag of UNITED STATES
St. Louis, United States
5.0
2
Payment method verified
Member since Sep 12, 2020

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.