Changeset 582a0b8 in mainline for uspace/app/tester/float


Ignore:
Timestamp:
2017-05-08T19:20:39Z (9 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
d2c8533
Parents:
73db198
Message:

Remove unistd.h

  • Rename usleep() and sleep() to thread_usleep() and thread_sleep() and move to thread.[hc].
  • Include stddef.h in order to provide NULL.
  • Move getpagesize() to libposix.
  • Sync uspace/dist/src/c/demos with originals.
Location:
uspace/app/tester/float
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/float/float1.c

    r73db198 r582a0b8  
    3030#include <stdio.h>
    3131#include <stdlib.h>
     32#include <stddef.h>
    3233#include <atomic.h>
    3334#include <thread.h>
     
    8889                TPRINTF("Threads left: %" PRIua "\n",
    8990                    total - atomic_get(&threads_finished));
    90                 sleep(1);
     91                thread_sleep(1);
    9192        }
    9293       
  • uspace/app/tester/float/float2.c

    r73db198 r582a0b8  
    3131#include <stdio.h>
    3232#include <stdlib.h>
     33#include <stddef.h>
    3334#include <math.h>
    3435#include "../tester.h"
  • uspace/app/tester/float/softfloat1.c

    r73db198 r582a0b8  
    2929#include <stdio.h>
    3030#include <stdlib.h>
     31#include <stdbool.h>
     32#include <stddef.h>
    3133#include <mathtypes.h>
    3234#include <add.h>
     
    3638#include <comparison.h>
    3739#include <conversion.h>
    38 #include <stdbool.h>
    3940#include "../tester.h"
    4041
Note: See TracChangeset for help on using the changeset viewer.