For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > September 2005 > questions related to header files









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author questions related to header files
junky_fellow@yahoo.co.in

2005-09-27, 7:57 am

1) In the header files I found the following line
#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 1)
in lots of places. What does it mean, especially
_POSIX_C_SOURCE >=1 ?

2) How to determine the various system limits. For eg maximum
number of characters in a file name, max number of processes per
user etc ?

3) There are certain typedefs which are defined in multiple files.
eg sizet_t is defined in stdio.h, stddef.h, types.h ? Why is it
so ? Which value is to be taken ?

4) I found two files "limits.h" and "syslimits.h" . What is
the purpose of these two files ? Why do we need to have two
different files to specify the limits ?

Thanx for any help in advance ...

Floyd L. Davidson

2005-09-27, 7:02 pm

junky_fellow@yahoo.co.in wrote:
>1) In the header files I found the following line
>#if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 1)
>in lots of places. What does it mean, especially
>_POSIX_C_SOURCE >=1 ?


Take a look at the features.h header file.

>2) How to determine the various system limits. For eg maximum
>number of characters in a file name, max number of processes per
>user etc ?
>
>3) There are certain typedefs which are defined in multiple files.
>eg sizet_t is defined in stdio.h, stddef.h, types.h ? Why is it
>so ? Which value is to be taken ?


>4) I found two files "limits.h" and "syslimits.h" . What is
>the purpose of these two files ? Why do we need to have two
>different files to specify the limits ?
>
>Thanx for any help in advance ...


--
Floyd L. Davidson <http://www.apaflo.com/floyd_davidson>
Ukpeagvik (Barrow, Alaska) floyd@apaflo.com
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com