Find Jobs
Hire Freelancers

write 2 functions on sun solaris(proc file system)

$30-5000 USD

In Progress
Posted about 21 years ago

$30-5000 USD

Paid on delivery
must be done on sun Solaris using c languge some implementations of unix such as sun solaris 2 provide a proc filesystem which maps the image of each process in the system to a file in the /proc [login to view URL] process has a corresponding file named by its process ID. look at the man page on proc .it has all the details. 1-Write a function get_prstatus which has the prototype int get_prstatus(int pid , prstatus_t *sp) the get_prstatus sets the prstatus_t structure pointed to by sp for the process with process ID pid the function return 0 on success and -1 [login to view URL] outline of the get_prstatus producer is *Open /proc/pid for read only *Execute the system call ioctl(fildes,code,s)with code equal to PIOCSTATUS and s being a pointer to a prstatus_t structure *Close the file check for errors on each of the system calls in get_prstatus .do not exit from the function on error--return an error code .be sure to close open file--even if returning an error. 2_ write the function output_prstatus with prototype int output_prstatus(FILE *fp,prstatus_t s ); the output prstatus_t functions writes the contents of s in an easily readable format to the file fp do not worry about the members of type sigset_t. ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2)steps for running the program. ## Platform i wiil run it on ssh secure shell client . xp,melinum,nt,2000
Project ID: 2913696

About the project

1 proposal
Remote project
Active 21 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
See private message.
$29.75 USD in 14 days
5.0 (4 reviews)
2.2
2.2

About the client

Flag of UNITED STATES
United States
5.0
73
Member since Sep 7, 2001

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.