Add peek/poke to header file.
authorRob Landley <rob@landley.net>
Sun, 2 Jun 2013 03:36:48 +0000 (22:36 -0500)
committerRob Landley <rob@landley.net>
Sun, 2 Jun 2013 03:36:48 +0000 (22:36 -0500)
lib/lib.h

index 77f5fd2..b5c308c 100644 (file)
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -121,6 +121,8 @@ char *readfile(char *name);
 char *xreadfile(char *name);
 void msleep(long miliseconds);
 int xioctl(int fd, int request, void *data);
+int64_t peek(void *ptr, int size);
+void poke(void *ptr, uint64_t val, int size);
 char *xgetcwd(void);
 void xstat(char *path, struct stat *st);
 char *xabspath(char *path, int exact);