Changes in uspace/srv/test/chardev-test/main.c [c1694b6b:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/test/chardev-test/main.c
rc1694b6b rb7fd2a0 39 39 #define NAME "chardev-test" 40 40 41 static int smallx_open(chardev_srvs_t *, chardev_srv_t *);42 static int smallx_close(chardev_srv_t *);43 static int smallx_write(chardev_srv_t *, const void *, size_t, size_t *);44 static int smallx_read(chardev_srv_t *, void *, size_t, size_t *);45 46 static int largex_open(chardev_srvs_t *, chardev_srv_t *);47 static int largex_close(chardev_srv_t *);48 static int largex_write(chardev_srv_t *, const void *, size_t, size_t *);49 static int largex_read(chardev_srv_t *, void *, size_t, size_t *);50 51 static int partialx_open(chardev_srvs_t *, chardev_srv_t *);52 static int partialx_close(chardev_srv_t *);53 static int partialx_write(chardev_srv_t *, const void *, size_t, size_t *);54 static int partialx_read(chardev_srv_t *, void *, size_t, size_t *);41 static errno_t smallx_open(chardev_srvs_t *, chardev_srv_t *); 42 static errno_t smallx_close(chardev_srv_t *); 43 static errno_t smallx_write(chardev_srv_t *, const void *, size_t, size_t *); 44 static errno_t smallx_read(chardev_srv_t *, void *, size_t, size_t *); 45 46 static errno_t largex_open(chardev_srvs_t *, chardev_srv_t *); 47 static errno_t largex_close(chardev_srv_t *); 48 static errno_t largex_write(chardev_srv_t *, const void *, size_t, size_t *); 49 static errno_t largex_read(chardev_srv_t *, void *, size_t, size_t *); 50 51 static errno_t partialx_open(chardev_srvs_t *, chardev_srv_t *); 52 static errno_t partialx_close(chardev_srv_t *); 53 static errno_t partialx_write(chardev_srv_t *, const void *, size_t, size_t *); 54 static errno_t partialx_read(chardev_srv_t *, void *, size_t, size_t *); 55 55 56 56 static service_id_t smallx_svc_id; … … 106 106 int main(int argc, char *argv[]) 107 107 { 108 int rc;108 errno_t rc; 109 109 110 110 printf("%s: Character device test service\n", NAME); … … 156 156 } 157 157 158 static int smallx_open(chardev_srvs_t *srvs, chardev_srv_t *srv)159 { 160 return EOK; 161 } 162 163 static int smallx_close(chardev_srv_t *srv)164 { 165 return EOK; 166 } 167 168 static int smallx_write(chardev_srv_t *srv, const void *data, size_t size,158 static errno_t smallx_open(chardev_srvs_t *srvs, chardev_srv_t *srv) 159 { 160 return EOK; 161 } 162 163 static errno_t smallx_close(chardev_srv_t *srv) 164 { 165 return EOK; 166 } 167 168 static errno_t smallx_write(chardev_srv_t *srv, const void *data, size_t size, 169 169 size_t *nwritten) 170 170 { … … 178 178 } 179 179 180 static int smallx_read(chardev_srv_t *srv, void *buf, size_t size,180 static errno_t smallx_read(chardev_srv_t *srv, void *buf, size_t size, 181 181 size_t *nread) 182 182 { … … 191 191 } 192 192 193 static int largex_open(chardev_srvs_t *srvs, chardev_srv_t *srv)194 { 195 return EOK; 196 } 197 198 static int largex_close(chardev_srv_t *srv)199 { 200 return EOK; 201 } 202 203 static int largex_write(chardev_srv_t *srv, const void *data, size_t size,193 static errno_t largex_open(chardev_srvs_t *srvs, chardev_srv_t *srv) 194 { 195 return EOK; 196 } 197 198 static errno_t largex_close(chardev_srv_t *srv) 199 { 200 return EOK; 201 } 202 203 static errno_t largex_write(chardev_srv_t *srv, const void *data, size_t size, 204 204 size_t *nwritten) 205 205 { … … 213 213 } 214 214 215 static int largex_read(chardev_srv_t *srv, void *buf, size_t size,215 static errno_t largex_read(chardev_srv_t *srv, void *buf, size_t size, 216 216 size_t *nread) 217 217 { … … 226 226 } 227 227 228 static int partialx_open(chardev_srvs_t *srvs, chardev_srv_t *srv)229 { 230 return EOK; 231 } 232 233 static int partialx_close(chardev_srv_t *srv)234 { 235 return EOK; 236 } 237 238 static int partialx_write(chardev_srv_t *srv, const void *data, size_t size,228 static errno_t partialx_open(chardev_srvs_t *srvs, chardev_srv_t *srv) 229 { 230 return EOK; 231 } 232 233 static errno_t partialx_close(chardev_srv_t *srv) 234 { 235 return EOK; 236 } 237 238 static errno_t partialx_write(chardev_srv_t *srv, const void *data, size_t size, 239 239 size_t *nwritten) 240 240 { … … 248 248 } 249 249 250 static int partialx_read(chardev_srv_t *srv, void *buf, size_t size,250 static errno_t partialx_read(chardev_srv_t *srv, void *buf, size_t size, 251 251 size_t *nread) 252 252 {
Note:
See TracChangeset
for help on using the changeset viewer.