Changeset 76d0981d in mainline for uspace/app
- Timestamp:
- 2018-04-12T12:57:20Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3bacee1
- Parents:
- 9c514be
- git-author:
- Jiri Svoboda <jiri@…> (2018-04-11 18:18:43)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-04-12 12:57:20)
- Location:
- uspace/app
- Files:
-
- 5 edited
-
bdsh/cmds/modules/mkdir/mkdir.c (modified) (2 diffs)
-
mkbd/main.c (modified) (1 diff)
-
tetris/scores.c (modified) (2 diffs)
-
tetris/tetris.c (modified) (3 diffs)
-
wavplay/dplay.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/mkdir/mkdir.c
r9c514be r76d0981d 27 27 */ 28 28 29 #include <stdbool.h> 29 30 #include <stdio.h> 30 31 #include <stdlib.h> … … 106 107 /* Create the parent directories as well. */ 107 108 size_t off = 0; 108 while ( 1) {109 while (true) { 109 110 size_t prev_off = off; 110 111 wchar_t cur_char = str_decode(path, &off, STR_NO_LIMIT); -
uspace/app/mkbd/main.c
r9c514be r76d0981d 171 171 printf("Press <ESC> to quit the application.\n"); 172 172 173 while ( 1) {173 while (true) { 174 174 cons_event_t ev; 175 175 bool ok = console_get_event(con, &ev); -
uspace/app/tetris/scores.c
r9c514be r76d0981d 59 59 60 60 #include <errno.h> 61 #include <stdbool.h> 61 62 #include <stdio.h> 62 63 #include <str.h> … … 138 139 "........................................"); 139 140 140 while ( 1) {141 while (true) { 141 142 console_flush(console); 142 143 if (!console_get_event(console, &ev)) -
uspace/app/tetris/tetris.c
r9c514be r76d0981d 57 57 #include <sys/time.h> 58 58 #include <errno.h> 59 #include <stdbool.h> 59 60 #include <stdio.h> 60 61 #include <stdlib.h> … … 200 201 { 201 202 tetris_menu_draw(*level); 202 while ( 1) {203 while (true) { 203 204 int i = getchar(); 204 205 … … 327 328 scr_msg(key_msg, 1); 328 329 329 while ( 1) {330 while (true) { 330 331 place(curshape, pos, 1); 331 332 scr_update(); -
uspace/app/wavplay/dplay.c
r9c514be r76d0981d 44 44 #include <sys/time.h> 45 45 #include <inttypes.h> 46 46 #include <stdbool.h> 47 47 #include <stdio.h> 48 48 #include <macros.h> … … 101 101 playback_t *pb = arg; 102 102 const size_t fragment_size = pb->buffer.size / DEFAULT_FRAGMENTS; 103 while ( 1) {103 while (true) { 104 104 ipc_call_t call; 105 105 cap_call_handle_t chandle = async_get_call(&call); … … 260 260 struct timeval time = { 0 }; 261 261 getuptime(&time); 262 do{262 while (true) { 263 263 size_t available = buffer_avail(pb, pos); 264 264 /* Writing might need wrap around the end, … … 324 324 break; 325 325 326 } while (1);326 } 327 327 audio_pcm_stop_playback_immediate(pb->device); 328 328 }
Note:
See TracChangeset
for help on using the changeset viewer.
