New User Special Price Expires in

Let's log you in.

Sign in with Facebook


Don't have a StudySoup account? Create one here!


Create a StudySoup account

Be part of our community, it's free to join!

Sign up with Facebook


Create your account
By creating an account you agree to StudySoup's terms and conditions and privacy policy

Already have a StudySoup account? Login here

Operating Systems

by: Mireya Heidenreich

Operating Systems CS 3733

Mireya Heidenreich
GPA 3.55


Almost Ready


These notes were just uploaded, and will be ready to view shortly.

Purchase these notes here, or revisit this page.

Either way, we'll remind you when they're ready :)

Preview These Notes for FREE

Get a free preview of these Notes, just enter your email below.

Unlock Preview
Unlock Preview

Preview these materials now for free

Why put in your email? Get access to more of this material and other relevant free materials for your school

View Preview

About this Document

Class Notes
25 ?




Popular in Course

Popular in ComputerScienence

This 1 page Class Notes was uploaded by Mireya Heidenreich on Thursday October 29, 2015. The Class Notes belongs to CS 3733 at University of Texas at San Antonio taught by Staff in Fall. Since its upload, it has received 9 views. For similar materials see /class/231405/cs-3733-university-of-texas-at-san-antonio in ComputerScienence at University of Texas at San Antonio.

Similar to CS 3733 at UTSA

Popular in ComputerScienence


Reviews for Operating Systems


Report this Material


What is Karma?


Karma is the currency of StudySoup.

You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!

Date Created: 10/29/15
154 Chapter 5 Files and Directories Exercise 57 Run Program 53 for different directories Compare the output with that from running the ls shell command for the same directories Why are they differ ent Answer The ls command sorts lenames in alphabetical order The readdir func tion displays lenames in the order in which they occur in the directory le Program 53 does not allocate a struct dirent variable to hold the directory infor mation Rather readdir returns a pointer to a static struct dirent structure This return structure implies that readdir is not threadsafe POSIX includes readdirir as part of the POSIXTSF Extension to provide a threadsafe alternative POSIX only requires that the struct dirent structure have a diname member representing a string that is no longer than NAMEiMAX POSIX does not specify where additional information about the le should be stored Traditionally UNIX directory entries contain only lenames and inode numbers The inode number is an indeX into a table containing the other information about a le Inodes are discussed in Sec tion 53 Accessing le status information This section describes three functions for retrieving le status information The fstat function accesses a le with an open le descriptor The stat and lstat functions access a le by name The lstat and stat functions each take two parameters The path parameter spec i es the name of a le or symbolic link Whose status is to be returned If path does not correspond to a symbolic link both functions return the same results When path is a symbolic link the lstat function returns information about the link whereas the stat function returns information about the le referred to by the link Section 54 eXplains symbolic links The buf parameter points to a usersupplied buffer into which these func tions store the information SWWJPHS include ltsysstathgt int lstatconst char restrict path int statconst char restrict path struct stat restrict but struct stat restrict but POMX


Buy Material

Are you sure you want to buy this material for

25 Karma

Buy Material

BOOM! Enjoy Your Free Notes!

We've added these Notes to your profile, click here to view them now.


You're already Subscribed!

Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'

Why people love StudySoup

Jim McGreen Ohio University

"Knowing I can count on the Elite Notetaker in my class allows me to focus on what the professor is saying instead of just scribbling notes the whole time and falling behind."

Anthony Lee UC Santa Barbara

"I bought an awesome study guide, which helped me get an A in my Math 34B class this quarter!"

Steve Martinelli UC Los Angeles

"There's no way I would have passed my Organic Chemistry class this semester without the notes and study guides I got from StudySoup."

Parker Thompson 500 Startups

"It's a great way for students to improve their educational experience and it seemed like a product that everybody wants, so all the people participating are winning."

Become an Elite Notetaker and start selling your notes online!

Refund Policy


All subscriptions to StudySoup are paid in full at the time of subscribing. To change your credit card information or to cancel your subscription, go to "Edit Settings". All credit card information will be available there. If you should decide to cancel your subscription, it will continue to be valid until the next payment period, as all payments for the current period were made in advance. For special circumstances, please email


StudySoup has more than 1 million course-specific study resources to help students study smarter. If you’re having trouble finding what you’re looking for, our customer support team can help you find what you need! Feel free to contact them here:

Recurring Subscriptions: If you have canceled your recurring subscription on the day of renewal and have not downloaded any documents, you may request a refund by submitting an email to

Satisfaction Guarantee: If you’re not satisfied with your subscription, you can contact us for further help. Contact must be made within 3 business days of your subscription purchase and your refund request will be subject for review.

Please Note: Refunds can never be provided more than 30 days after the initial purchase date regardless of your activity on the site.