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  

c3/x3a.c File Reference

Detailed Description

Miscellaneous examples for Chap. 3 [Chap. 3].

Definition in file x3a.c.

Go to the source code of this file.


#define __EXTENSIONS__


WANT_INODE void fcntl_example (void)
void print_statvfs (const char *path)
void file_ctime_test (void)
void dump (const unsigned char *buf, ssize_t n)
void dir_read_test (void)
void readdir_r_test (void)
void readdir_test (void)
void rmdir_test (void)
void access_test (void)
int main (int argc, char *argv[])

Define Documentation

#define __EXTENSIONS__

Definition at line 23 of file x3a.c.

Function Documentation

void access_test void   )  [static]

Definition at line 517 of file x3a.c.

References access(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FAIL, EC_FLUSH, and errno.

void dir_read_test void   )  [static]

Definition at line 425 of file x3a.c.

References dump(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, open(), and read().

void dump const unsigned char *  buf,
ssize_t  n

Definition at line 409 of file x3a.c.

Referenced by dir_read_test().

WANT_INODE void fcntl_example void   ) 

Definition at line 282 of file x3a.c.

References close(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, fcntl(), open(), PERM_FILE, and unlink().

void file_ctime_test void   )  [static]

Definition at line 382 of file x3a.c.

References close(), ctime(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, fstat(), lseek(), open(), PERM_FILE, sleep(), stat::st_atime, stat::st_ctime, stat::st_mtime, and write().

int main int  argc,
char *  argv[]

Definition at line 556 of file x3a.c.

References readdir_r_test().

void print_statvfs const char *  path  ) 

Definition at line 331 of file x3a.c.

References EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, and ec_neg1.

void readdir_r_test void   )  [static]

Definition at line 443 of file x3a.c.

References closedir(), dirent::d_ino, dirent::d_name, EC_CLEANUP, EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, ec_null, ec_rv, errno, opendir(), pathconf(), and readdir_r().

Referenced by main().

void readdir_test void   )  [static]

Definition at line 475 of file x3a.c.

References closedir(), EC_CLEANUP, EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_null, ec_nzero, errno, opendir(), readdir(), and system().

void rmdir_test void   ) 

Definition at line 498 of file x3a.c.

References close(), EC_CLEANUP_BGN, EC_CLEANUP_END, EC_FLUSH, ec_neg1, mkdir(), open(), PERM_DIRECTORY, PERM_FILE, rmdir(), and system().

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