summaryrefslogtreecommitdiff
path: root/components/libc/compilers
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2021-02-12 02:21:30 +0800
committerMeco Man <[email protected]>2021-02-12 02:21:30 +0800
commitfa8e8ed31fa3b069e50d393888e46065649b3c8d (patch)
treeb5a217e5e9b3dae66d9057a8f42c6dae41bc9760 /components/libc/compilers
parente3a32e807cf92230a33963834e431c7b2ce1b804 (diff)
add RTM_EXPORT label for unistd.c
Diffstat (limited to 'components/libc/compilers')
-rw-r--r--components/libc/compilers/common/unistd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/libc/compilers/common/unistd.c b/components/libc/compilers/common/unistd.c
index b7471ee029..48e6beee4e 100644
--- a/components/libc/compilers/common/unistd.c
+++ b/components/libc/compilers/common/unistd.c
@@ -21,12 +21,14 @@ int isatty(int fd)
struct termios ts;
return(tcgetattr(fd,&ts) != -1);/*true if no error (is a tty)*/
}
+RTM_EXPORT(isatty);
#endif
char *ttyname(int fd)
{
return "/dev/tty0"; /*TODO: need to add more specific*/
}
+RTM_EXPORT(ttyname);
unsigned int sleep(unsigned int seconds)
{
@@ -38,6 +40,7 @@ unsigned int sleep(unsigned int seconds)
return seconds - delta_tick/RT_TICK_PER_SECOND;
}
+RTM_EXPORT(sleep);
int usleep(useconds_t usec)
{
@@ -45,3 +48,4 @@ int usleep(useconds_t usec)
rt_hw_us_delay(usec % 1000u);
return 0;
}
+RTM_EXPORT(usleep);