plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

dblook.c (416B)


      1 #include <u.h>
      2 #include <libc.h>
      3 #include <draw.h>
      4 #include <plumb.h>
      5 #include <regexp.h>
      6 #include <bio.h>
      7 #include <9pclient.h>
      8 #include <thread.h>
      9 #include "faces.h"
     10 
     11 void
     12 threadmain(int argc, char **argv)
     13 {
     14 	Face f;
     15 	char *q;
     16 
     17 	if(argc != 3){
     18 		fprint(2, "usage: dblook name domain\n");
     19 		threadexitsall("usage");
     20 	}
     21 
     22 	q = findfile(&f, argv[2], argv[1]);
     23 	print("%s\n", q);
     24 }
     25 
     26 void
     27 killall(char *s)
     28 {
     29 	USED(s);
     30 }