[LCP]array of struct with 1 element

Manu Anand badboyanand at yahoo.com
Mon Sep 3 07:39:28 UTC 2001


Hello People
Been studying sources og glibc lately. Two questions:-

1. How do I implement closeall() which closes all open
file descriptors in ANSI C?? The problem can be broken
down to how do I know which all files are open?

2. Many time in kernel I find them using array of
struct with 1 member.Example from fs.h
struct files_struct files[1];

Is it different from 
struct files_struct files;

Waiting for answers
--Manu


__________________________________________________
Do You Yahoo!?
Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger
http://im.yahoo.com



More information about the linuxCprogramming mailing list