ref.c File Reference

#include <stdio.h>
#include "config.h"

Include dependency graph for ref.c:

Go to the source code of this file.

Defines

#define DEFTAGPATH   ".:/usr/include:/usr/include/sys:/usr/src/lib:../lib:/usr/local/lib"
#define SEP   ':'

Functions

char * getenv ()
char * fgets ()
char * cktagdir (char *tag, char *dir)
int getline (char *buf, int limit, FILE *fp)
int lookup (char *dir, char *entry)
int find (char *tag)
void usage ()
int countcolons (char *str)
int main (int argc, char **argv)

Variables

int taginfo
char * def_file
char * def_class
int colons


Define Documentation

#define DEFTAGPATH   ".:/usr/include:/usr/include/sys:/usr/src/lib:../lib:/usr/local/lib"
 

Definition at line 24 of file ref.c.

Referenced by find().

#define SEP   ':'
 

Definition at line 41 of file ref.c.

Referenced by find(), outfld(), and outputf().


Function Documentation

char* cktagdir char *  tag,
char *  dir
 

Definition at line 57 of file ref.c.

References BLKSIZE, def_file, dir, fclose(), fgets(), fopen(), SLASH, sprintf(), strcpy(), strlen(), strncmp(), TAGS, and tfile.

int countcolons char *  str  ) 
 

Definition at line 406 of file ref.c.

char* fgets  ) 
 

Referenced by __ivaliduser(), append(), ask(), ask_confirmation(), ask_namematch(), ask_rename(), calendar(), cdiff(), cktagdir(), cut(), decode(), Defdev(), doconfig(), dodecl(), doevent(), DOgetreply(), dohelp(), DOMretr(), DOMstor(), dosrch(), ether_hostton(), ether_ntohost(), extract(), fgetln(), fix_mcwd(), ftpreply(), ftree_arg(), get_cmd(), get_message(), getcommand(), getdomainname(), getfile(), getids(), getline(), getnetent(), getnew(), getold(), getprotoent(), getrec(), getservent(), gettable(), getuser(), getyn(), grep(), hostalias(), interact(), intuit_diff_type(), is_sure(), lockcheck(), lookup(), Macro(), main(), may_kill_region(), mlabel(), mtools_getline(), mygets(), open_patch_file(), outbyte(), pgets(), plan_b(), read_line(), readbox(), readfile(), readin(), readline(), readword(), recover(), res_init(), select_region(), showmsg(), skip_to(), terminate(), test11c(), tgetent(), and tty_read().

int find char *  tag  ) 
 

Definition at line 312 of file ref.c.

References colons, DEFTAGPATH, getenv(), ptr, and SEP.

Referenced by defit(), find(), gettable(), main(), parse(), tgetflag(), tgetnum(), and tgetstr().

char* getenv  ) 
 

int getline char *  buf,
int  limit,
FILE fp
 

Definition at line 126 of file ref.c.

References bytes, EOF, fp, getc, MSDOS, and TOS.

Referenced by command(), compretval(), cpio_options(), display(), do_absolute(), do_search(), eat_dir(), execute(), getgrent(), getpwent(), getrequest(), getttyent(), input(), lookup(), main(), readline(), scrollb(), scrollf(), tar_options(), to_lastline(), uniq(), and wrt_fd().

int lookup char *  dir,
char *  entry
 

Definition at line 159 of file ref.c.

References atol(), BLKSIZE, buf, comment, fclose(), fgets(), fopen(), fputs(), fseek(), ftell(), getline(), L, lnum, ptr, SLASH, sprintf(), stdout, strchr, strcpy(), strlen(), and strncmp().

int main int  argc,
char **  argv
 

Definition at line 424 of file ref.c.

References def_file, i, and taginfo.

void usage void   ) 
 

Definition at line 395 of file ref.c.

References exit(), fputs(), and stderr.


Variable Documentation

int colons
 

Definition at line 49 of file ref.c.

Referenced by find().

char* def_class
 

Definition at line 48 of file ref.c.

char* def_file
 

Definition at line 47 of file ref.c.

Referenced by cktagdir(), and main().

int taginfo
 

Definition at line 46 of file ref.c.

Referenced by main().


Generated on Fri Apr 14 23:03:09 2006 for minix by  doxygen 1.4.6