Find Jobs
Hire Freelancers

Linux Programming/C Programming

$10-30 CAD

Closed
Posted about 10 years ago

$10-30 CAD

Paid on delivery
Implement the ls command using the stat kernel function. The program should work as follows: 1. Capture the long and short options specified using getopt_long (7 marks) 2. Verify that your program is able to correctly capture all options. (3 marks) 3. Process each of the non-flag related arguments as if they are files in a subroutine - the pattern should be similar to the example used in the demos of the cat command. 4. For any file that fails to stat use perror to report on the problem – and make sure that this feature is tested. (15 marks – note that there are 19 marks available) 5. If there are no non-flag related arguments, process the entire current directory. (5) 6. Create a bash script containing a suite of test commands for your program. Explain your test strategy. (5 marks) 7. Include a commented program listing, sample output and a status report describing which features work, do not work fully (describe your problem) or do not work at all. The standard flags you should capture are the following: a) –a --all (1) b) –i (1) c) –L (1) d) –s --size (1) e) –F --classify (2) Capture the following new flags that were designed for this assignment f) –P octal | symbolic display the file permissions either as octal or symbolic (3) g) --minSize nnn do not display files that are smaller than nnn bytes (1) h) - -maxSize nnn do not display files that are larger than nnn bytes (1) i) – time ctime | mtime | atime display the time specified. Note that the - - time flag can appear multiply so that all times are shown. (2) j) -g show the group number in decimal (1) k) - - group show the group name (2) l) -u show the userid as a number (1) m) - - author show the users’s real name (ie: James Bond) (2) n) –n show the number of hard links (1) Note: Unlike the real ls, if a file is a directory you do not have to show it’s contents. Nor are we asking for the -l (long) option which would display most fields. Your routine do¬¬¬_ls will consist mostly of if statements – if the option is present then display the feature. The minSize and maxSize features should be tested first. If the file is too big or too small then simply return right away, displaying noting.
Project ID: 5425235

About the project

10 proposals
Remote project
Active 10 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
10 freelancers are bidding on average $96 CAD for this job
User Avatar
Hi there, I have over 7 years experience working on HTML, Wordpress, Magento, Database administration, OpenCart, Website Design, Logo / Banner Design Joomla, CSS and Linux Administration. I have read the project description very well, and i would like to complete this project. lets complete this project
$53 CAD in 1 day
4.9 (793 reviews)
8.2
8.2
User Avatar
Hello there, I can help you with this project. I have lots of experience with Linux programming. Please check out my profile for reviews on other jobs I've finished, and contact me if you are interested. Looking forward to hear from you.
$79 CAD in 1 day
5.0 (47 reviews)
5.7
5.7
User Avatar
I have done something like this before, so I have sort of previous experience with this. I have a good understanding on shell scripting and C.
$25 CAD in 2 days
5.0 (2 reviews)
3.6
3.6
User Avatar
A proposal has not yet been provided
$587 CAD in 9 days
5.0 (2 reviews)
3.3
3.3
User Avatar
Hi! I have lots of experience doing similar assignments on this website. Please contact me for further discussion. Thanks
$45 CAD in 1 day
4.7 (4 reviews)
3.0
3.0
User Avatar
I have a lot of experience in C programming using Linux system functions, as well as processing CLI arguments, short and log options. I believe I can complete your project quickly and effectively. This is actually my first bit as a freelancer. I assure you I will put much effort into this job and earn that first feedback from you. Regards, Vjekoslav Giacometti
$35 CAD in 4 days
5.0 (1 review)
2.2
2.2
User Avatar
Hi. I am an expert in C/C++ and Linux programming. I got all your requirements. Let me help you do this project. Thank you so much for your attention.
$35 CAD in 7 days
5.0 (1 review)
1.1
1.1
User Avatar
Hi I can help you for this project. Give me a chance. I have 2.5 years of exp in this field. Thanks Nikhil
$25 CAD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
Etobicoke, Canada
5.0
83
Payment method verified
Member since Aug 12, 2013

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.