time.c File Reference

#include <sys/types.h>
#include <sys/times.h>
#include <limits.h>
#include <time.h>
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/wait.h>
#include <minix/minlib.h>
#include <stdio.h>

Include dependency graph for time.c:

Go to the source code of this file.

Defines

#define NEW   1
#define HUNDREDTHS   1

Functions

 _PROTOTYPE (int main,(int argc, char **argv))
 _PROTOTYPE (void print_time,(clock_t t))
 _PROTOTYPE (void twin,(int n, char *p))
 _PROTOTYPE (void execute,(void))
int main (int argc, argv)
void print_time (clock_t t)
void twin (int n, char *p)
void execute ()

Variables

char ** args
char * name
int digit_seen
char a [] = " . \0"


Define Documentation

#define HUNDREDTHS   1
 

Definition at line 18 of file time.c.

#define NEW   1
 

Definition at line 3 of file time.c.


Function Documentation

_PROTOTYPE void  execute,
(void) 
 

_PROTOTYPE void  twin,
(int n, char *p
 

_PROTOTYPE void  print_time,
(clock_t t
 

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

void execute void   ) 
 

Definition at line 154 of file time.c.

References args, execvp, exit(), and std_err().

int main int  argc,
argv 
 

Definition at line 32 of file time.c.

References args, CLOCKS_PER_SEC, dummy, execute(), exit(), fork, pid, print_time(), SIG_IGN, SIGINT, signal(), SIGQUIT, status, std_err(), times, tms::tms_cstime, tms::tms_cutime, and wait.

void print_time clock_t  t  ) 
 

Definition at line 105 of file time.c.

References a, CLOCKS_PER_SEC, digit_seen, i, int(), seconds, and twin.

void twin int  n,
char *  p
 

Definition at line 141 of file time.c.

References digit_seen.


Variable Documentation

char a[] = " . \0"
 

Definition at line 25 of file time.c.

char** args
 

Definition at line 21 of file time.c.

int digit_seen
 

Definition at line 24 of file time.c.

Referenced by f_collect(), print_time(), and twin().

char* name
 

Definition at line 22 of file time.c.


Generated on Fri Apr 14 23:07:42 2006 for minix by  doxygen 1.4.6