BSD Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsBSD Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 18th, 2003, 06:43 AM
balance balance is offline
.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 296 balance User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
unix file system - file descriptor flags?

i'm reading stevens' "advanced programming in the unix environment" book and don't get a part about file descriptor flags.

i've found the page i'm talking about on the net so here it is: http://www.informit.com/content/art...7FBD87AF8C04%7D

the part i don't understand is talked about in the 3 points at the top of that page and shown in the first figure you come to - figure 3.2

point 1a is 'the file descriptor flags'

and point 2a is 'the file status flags for the file (read, write, append, sync, nonblocking etc.)'

are the file descriptor flags (1a) the same things duplicated in the file table (2a)? or not? and if not, what are the file descriptor flags (1a)? (i understand what the file status flags (2a) are, it's the file descriptor flags (1a) i don't get)

thanks.

Reply With Quote
  #2  
Old November 19th, 2003, 06:05 PM
balance balance is offline
.
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2002
Posts: 296 balance User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
i've found out the answer to this. file descriptor flags are not the same as file status flags. there is only one file descriptor flag at the moment (that was written in 1992 but still seems to be correct) :
FD_CLOEXEC : When this flag is clear, the file remains open across spawn*() or exec*() calls; else the file is closed.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsBSD Help > unix file system - file descriptor flags?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway