plan 9 kernel history: overview | file list | diff list

port/netXXX.c (diff list | history)

1991/1106/sys/src/9/port/netXXX.c:3,91992/0111/sys/src/9/port/netXXX.c:3,9 (short | long)
Move error.h to ../port. Change errors to actual strings.
rsc Fri Mar 4 12:44:25 2005
1991/1106    
#include	"mem.h" 
#include	"dat.h" 
#include	"fns.h" 
#include	"errno.h" 
1992/0111    
#include	"../port/error.h" 
1991/1106    
 
static void nulloput(Queue*, Block*); 
static void protooput(Queue*, Block*); 
1992/0111/sys/src/9/port/netXXX.c:1,51992/0321/sys/src/9/port/netXXX.c:1,5 (short | long)
Move lib.h to ../port.
rsc Fri Mar 4 12:44:25 2005
1991/1106    
#include	"u.h" 
#include	"lib.h" 
1992/0321    
#include	"../port/lib.h" 
1991/1106    
#include	"mem.h" 
#include	"dat.h" 
#include	"fns.h" 
1992/0321/sys/src/9/port/netXXX.c:1,1081993/1124/sys/src/9/port/netXXX.c:0 (short | long)
Deleted.
rsc Mon Mar 7 10:31:31 2005
1991/1106    
#include	"u.h" 
1992/0321    
#include	"../port/lib.h" 
1991/1106    
#include	"mem.h" 
#include	"dat.h" 
#include	"fns.h" 
1992/0111    
#include	"../port/error.h" 
1991/1106    
                 
static void nulloput(Queue*, Block*); 
static void protooput(Queue*, Block*); 
static void protoiput(Queue*, Block*); 
                 
static Qinfo XXXprotold = 
{ 
	protoiput, 
	protooput, 
	0, 
	0, 
	"proto", 
	0 
}; 
                 
static Qinfo XXXmuxld = 
{ 
	0, 
	nulloput, 
	0, 
	0, 
	"mux" 
}; 
                 
static void 
protooput(Queue *q, Block *bp) 
{ 
	PUTNEXT(q, bp); 
} 
                 
static void 
protoiput(Queue *q, Block *bp) 
{ 
	PUTNEXT(q, bp); 
} 
                 
static void 
nulloput(Queue *q, Block *bp) 
{ 
	freeb(bp); 
} 
                 
static void XXXaddr(Chan*, char*, int); 
static void XXXother(Chan*, char*, int); 
static void XXXraddr(Chan*, char*, int); 
static void XXXruser(Chan*, char*, int); 
static int XXXclone(Chan*); 
static void XXXconnect(Chan*, char*); 
                 
Network netXXX = 
{ 
	"XXX", 
	4, 
	32,			/* # conversations */ 
	&XXXmuxld, 
	&XXXprotold, 
	0,			/* no listener */ 
	XXXclone, 
	XXXconnect, 
	0,			/* no announces */ 
	4,			/* info files */ 
	{ { "addr",	XXXaddr, }, 
	  { "other",	XXXother, }, 
	  { "raddr",	XXXraddr, }, 
	  { "ruser",	XXXruser, }, 
	}, 
}; 
                 
static void 
XXXaddr(Chan *c, char *buf, int len) 
{ 
	strncpy(buf, "my address", len-1); 
} 
                 
static void 
XXXother(Chan *c, char *buf, int len) 
{ 
	strncpy(buf, "other stuff", len-1); 
} 
                 
static void 
XXXraddr(Chan *c, char *buf, int len) 
{ 
	strncpy(buf, "remote address", len-1); 
} 
                 
static void 
XXXruser(Chan *c, char *buf, int len) 
{ 
	strncpy(buf, "remote user", len-1); 
} 
                 
static int 
XXXclone(Chan *c) 
{ 
	return 5; 
} 
                 
static void 
XXXconnect(Chan *c, char *dest) 
{ 
} 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)