comparison lib/lib.h @ 1399:a0c328bc2c14 draft

Little endian and big endian versions of peek (for host.c).
author Rob Landley <rob@landley.net>
date Mon, 21 Jul 2014 19:56:53 -0500
parents e65f9a9ba62d
children ffc7f606ce5b
comparison
equal deleted inserted replaced
1398:7402cae7889f 1399:a0c328bc2c14
136 off_t lskip(int fd, off_t offset); 136 off_t lskip(int fd, off_t offset);
137 int mkpathat(int atfd, char *dir, mode_t lastmode, int flags); 137 int mkpathat(int atfd, char *dir, mode_t lastmode, int flags);
138 struct string_list **splitpath(char *path, struct string_list **list); 138 struct string_list **splitpath(char *path, struct string_list **list);
139 char *readfile(char *name, char *buf, off_t len); 139 char *readfile(char *name, char *buf, off_t len);
140 void msleep(long miliseconds); 140 void msleep(long miliseconds);
141 int64_t peek(void *ptr, int size); 141 int64_t peek_le(void *ptr, unsigned size);
142 int64_t peek_be(void *ptr, unsigned size);
143 int64_t peek(void *ptr, unsigned size);
142 void poke(void *ptr, uint64_t val, int size); 144 void poke(void *ptr, uint64_t val, int size);
143 struct string_list *find_in_path(char *path, char *filename); 145 struct string_list *find_in_path(char *path, char *filename);
144 long atolx(char *c); 146 long atolx(char *c);
145 long atolx_range(char *numstr, long low, long high); 147 long atolx_range(char *numstr, long low, long high);
146 int numlen(long l); 148 int numlen(long l);