Changeset 820104d in mainline
- Timestamp:
- 2013-10-12T14:45:31Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c2a6983
- Parents:
- 970c4d8
- Location:
- uspace/lib/posix/source
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/source/internal/common.h
r970c4d8 r820104d 39 39 #include <stdlib.h> 40 40 41 #define not_implemented() (fprintf(stderr, \ 42 "Function %s() in file %s at line %d is not implemented\n", \ 43 __func__, __FILE__, __LINE__), abort()) 41 #define not_implemented() do { \ 42 static int __not_implemented_counter = 0; \ 43 if (__not_implemented_counter == 0) { \ 44 fprintf(stderr, "%s() not implemented in %s:%d, something will NOT work.\n", \ 45 __func__, __FILE__, __LINE__); \ 46 } \ 47 __not_implemented_counter++; \ 48 } while (0) 44 49 45 50 /* A little helper macro to avoid typing this over and over. */ -
uspace/lib/posix/source/math.c
r970c4d8 r820104d 49 49 // TODO: low priority, just a compile-time dependency of binutils 50 50 not_implemented(); 51 return 0.0; 51 52 } 52 53 … … 61 62 // TODO: low priority, just a compile-time dependency of binutils 62 63 not_implemented(); 64 return 0.0; 63 65 } 64 66 … … 72 74 // TODO: Python dependency 73 75 not_implemented(); 76 return 0.0; 74 77 } 75 78 … … 84 87 // TODO: Python dependency 85 88 not_implemented(); 89 return 0.0; 86 90 } 87 91 … … 95 99 // TODO: Python dependency 96 100 not_implemented(); 101 return 0.0; 97 102 } 98 103 … … 106 111 // TODO: Python dependency 107 112 not_implemented(); 113 return 0.0; 108 114 } 109 115 … … 118 124 // TODO: Python dependency 119 125 not_implemented(); 126 return 0.0; 120 127 } 121 128 … … 130 137 // TODO: Python dependency 131 138 not_implemented(); 139 return 0.0; 132 140 } 133 141 … … 141 149 // TODO: Python dependency 142 150 not_implemented(); 151 return 0.0; 143 152 } 144 153 … … 153 162 // TODO: Python dependency 154 163 not_implemented(); 164 return 0.0; 155 165 } 156 166 … … 164 174 // TODO: Python dependency 165 175 not_implemented(); 176 return 0.0; 166 177 } 167 178 … … 175 186 // TODO: Python dependency 176 187 not_implemented(); 188 return 0.0; 177 189 } 178 190 … … 186 198 // TODO: Python dependency 187 199 not_implemented(); 200 return 0.0; 188 201 } 189 202 -
uspace/lib/posix/source/stdlib.c
r970c4d8 r820104d 63 63 // TODO: low priority, just a compile-time dependency of binutils 64 64 not_implemented(); 65 return 1;65 return 0; 66 66 } 67 67 -
uspace/lib/posix/source/unistd.c
r970c4d8 r820104d 389 389 // TODO: low priority, just a compile-time dependency of binutils 390 390 not_implemented(); 391 return -1; 391 392 } 392 393 … … 399 400 // TODO: low priority, just a compile-time dependency of binutils 400 401 not_implemented(); 402 return -1; 401 403 } 402 404 … … 411 413 // TODO: low priority, just a compile-time dependency of binutils 412 414 not_implemented(); 415 return -1; 413 416 } 414 417 … … 423 426 // TODO: low priority, just a compile-time dependency of binutils 424 427 not_implemented(); 428 return -1; 425 429 } 426 430 … … 434 438 // TODO: low priority, just a compile-time dependency of binutils 435 439 not_implemented(); 440 return -1; 436 441 } 437 442
Note:
See TracChangeset
for help on using the changeset viewer.