henesyinit from p9f0ed2a895 years agoHistory
35 lines · 393 B · C
RawDownload
#include "agent.h" void*rawopen(Key *k, char*, int){	return k;} intrawread(void *v, void *buf, int n){	Key *k; 	k = v;	if(n > s_len(k->data))		n = s_len(k->data);	memmove(buf, s_to_c(k->data), n);	return n;} intrawwrite(void*, void*, int){	werrstr("not allowed");	return -1;} Proto raw = {.name=	"raw",.perm=	0444,.open=	rawopen,.write=	rawwrite,.read=	rawread,}; 

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t