2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.


Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

c5/limit.c File Reference

Detailed Description

getrlimit and setrlimit example [Sec. 5.16]

Definition in file limit.c.

Go to the source code of this file.


void showvalue (rlim_t lim)
bool showlimit (int resource, const char *name)
int main (void)

Function Documentation

int main void   ) 

Definition at line 60 of file limit.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_false, ec_neg1, exit(), getrlimit(), open(), PERM_FILE, rlimit::rlim_cur, setrlimit(), showlimit(), and write().

bool showlimit int  resource,
const char *  name

Definition at line 42 of file limit.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, ec_neg1, getrlimit(), rlimit::rlim_cur, rlimit::rlim_max, and showvalue().

Referenced by main().

void showvalue rlim_t  lim  )  [static]

Definition at line 24 of file limit.c.

Referenced by showlimit().

Generated on Fri Apr 23 10:57:08 2004 for AUP2 Example Source by doxygen 1.3.1