test19.c File Reference

#include <sys/types.h>
#include <sys/stat.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>

Include dependency graph for test19.c:

Go to the source code of this file.

Defines

#define MAX_ERROR   4
#define NB   30L
#define NBOUNDS   6

Functions

 _PROTOTYPE (int main,(int argc, char *argv[]))
 _PROTOTYPE (void test19a,(void))
 _PROTOTYPE (void pipecatcher,(int s))
 _PROTOTYPE (void e,(int n))
int main (int argc, argv)
void test19a ()
void test19b ()
void test19c ()
void test19d ()
void test19e ()
void test19f ()
void test19g ()
void clraa ()
void pipecatcher (int s)
void e (int n)
void quit ()

Variables

int errct
int subtest
int passes
int pipesigs
long t1
char aa [100]
char b [4] = {0, 1, 2, 3}
char c [4] = {10, 20, 30, 40}
char d [4] = {6, 7, 8, 9}
long bounds [NBOUNDS] = {7, 9, 50, 519, 520, 40000L}
char buff [30000]


Define Documentation

#define MAX_ERROR   4
 

Definition at line 10 of file test19.c.

#define NB   30L
 

Definition at line 11 of file test19.c.

#define NBOUNDS   6
 

Definition at line 12 of file test19.c.

Referenced by test19f().


Function Documentation

_PROTOTYPE void  e,
(int n
 

_PROTOTYPE void  pipecatcher,
(int s
 

_PROTOTYPE void  test19a,
(void) 
 

_PROTOTYPE int  main,
(int argc, char *argv[]) 
 

void clraa  ) 
 

Definition at line 474 of file test19.c.

References aa, and i.

Referenced by test19b(), and test19d().

void e int  n  ) 
 

Definition at line 486 of file test19.c.

References chdir, errct, errno, exit(), fflush(), MAX_ERROR, perror(), printf, stdout, subtest, and system().

int main int  argc,
argv 
 

Definition at line 35 of file test19.c.

References atoi, chdir, exit(), fflush(), geteuid, getuid, i, m, passes, printf, stdout, system(), test19a(), test19b(), test19c(), test19d(), test19e(), test19f(), and test19g().

void pipecatcher int  s  ) 
 

Definition at line 480 of file test19.c.

References pipesigs.

void quit  ) 
 

Definition at line 507 of file test19.c.

References chdir, errct, exit(), printf, and system().

void test19a  ) 
 

Definition at line 67 of file test19.c.

References close, creat, e, EEXIST, errno, O_CREAT, O_EXCL, O_RDONLY, O_RDWR, O_WRONLY, open, subtest, and unlink.

Referenced by main().

void test19b  ) 
 

Definition at line 117 of file test19.c.

References aa, b, close, clraa(), creat, e, L, lseek, O_APPEND, O_RDWR, O_TRUNC, open, read, SEEK_SET, subtest, unlink, and write.

Referenced by main().

void test19c  ) 
 

Definition at line 148 of file test19.c.

References close, creat, e, i, n, O_RDONLY, open, printf, and subtest.

Referenced by main().

void test19d  ) 
 

Definition at line 236 of file test19.c.

References aa, close, clraa(), creat, e, errno, F_SETFL, fcntl, i, L, lseek, O_NONBLOCK, O_RDONLY, open, pipe, read, SEEK_CUR, SEEK_SET, subtest, unlink, and write.

Referenced by main().

void test19e  ) 
 

Definition at line 280 of file test19.c.

References a, b, close, creat, dup, e, flag, fstat, i, j, L, link, lseek, O_RDONLY, O_RDWR, open, read, s, SEEK_SET, stat::st_atime, stat::st_dev, stat::st_gid, stat::st_ino, stat::st_mode, stat::st_nlink, stat::st_rdev, stat::st_size, stat::st_uid, stat, subtest, umask, unlink, and write.

Referenced by main().

void test19f  ) 
 

Definition at line 358 of file test19.c.

References bounds, buff, close, creat, e, i, L, lseek, NBOUNDS, passes, pos, subtest, unlink, and write.

Referenced by main().

void test19g  ) 
 

Definition at line 379 of file test19.c.

References buf2, close, creat, e, EAGAIN, EBADF, errno, F_SETFL, fcntl, i, L, lseek, O_APPEND, O_NONBLOCK, O_RDWR, open, pipe, read, SEEK_CUR, SEEK_END, SEEK_SET, subtest, and write.

Referenced by main().


Variable Documentation

char aa[100]
 

Definition at line 17 of file test19.c.

Referenced by clraa(), main(), test11a(), test19b(), and test19d().

char b[4] = {0, 1, 2, 3}
 

Definition at line 18 of file test19.c.

long bounds[NBOUNDS] = {7, 9, 50, 519, 520, 40000L}
 

Definition at line 19 of file test19.c.

Referenced by test19f().

char buff[30000]
 

Definition at line 20 of file test19.c.

char c[4] = {10, 20, 30, 40}
 

Definition at line 18 of file test19.c.

char d[4] = {6, 7, 8, 9}
 

Definition at line 18 of file test19.c.

Referenced by _wrf(), _wsr(), add_sample(), adddir(), atof(), cclass(), checkdir(), closedir(), cmd_substitute(), configtag(), decode64(), dev_status(), do_status(), enter(), fatal(), fprintf(), get_block_size(), get_prog(), getcwd(), getdevices(), getline(), init_config(), lerr(), lex(), log_cancel(), log_select(), main(), mainQSort3(), makedhcp(), memccpy(), my_getcwd(), mybcopy(), name2ip(), nstrcmp(), number(), opendir(), Pass2(), printdata(), regatom(), rl_check_ints(), rsource(), sendline(), sizeup(), swap(), t_move(), warn(), wildcard(), zrdat32(), and zrdata().

int errct
 

Definition at line 14 of file test19.c.

int passes
 

Definition at line 14 of file test19.c.

int pipesigs
 

Definition at line 14 of file test19.c.

Referenced by pipecatcher().

int subtest
 

Definition at line 14 of file test19.c.

long t1
 

Definition at line 15 of file test19.c.

Referenced by block(), do_int(), execute(), fdc_out(), fdc_results(), find1case(), fxp_confaddr(), fxp_cu_ptr_cmd(), fxp_do_conf(), fxp_getstat(), fxp_ru_ptr_cmd(), get_cmostime(), mii_read(), rl_clear_rx(), rl_handler(), rl_reset_hw(), tab_find_atjob(), test2g(), test39f(), test8a(), w_waitfor(), and w_waitfor_dma().


Generated on Fri Apr 14 23:22:10 2006 for minix by  doxygen 1.4.6