Blame view

RIOT/cpu/msp430_common/include/unistd.h 3.67 KB
a752c7ab   elopes   add first test an...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
  /*
   * Copyright (C) 2016 Eistec AB
   * Copyright (C) 2015 Kaspar Schleiser <kaspar@schleiser.de>
   *
   * This file is subject to the terms and conditions of the GNU Lesser
   * General Public License v2.1. See the file LICENSE in the top level
   * directory for more details.
   */
  
  /**
   * @ingroup     cpu_msp430_common
   * @{
   *
   * @file
   * @brief       unistd.h wrapper for MSP430
   */
  
  #ifndef UNISTD_H
  #define UNISTD_H
  
  #include <stddef.h>
  #include <stdint.h>
  #include <sys/types.h>
  
  #ifdef __cplusplus
  extern "C" {
  #endif
  
  #define STDIN_FILENO    0       /* standard input file descriptor */
  #define STDOUT_FILENO   1       /* standard output file descriptor */
  #define STDERR_FILENO   2       /* standard error file descriptor */
  
  #define F_OK            0
  #define R_OK            4
  #define W_OK            2
  #define X_OK            1
  
  #define SEEK_SET        0
  #define SEEK_CUR        1
  #define SEEK_END        2
  
  int          access(const char *, int);
  unsigned     alarm(unsigned);
  int          chdir(const char *);
  int          chown(const char *, uid_t, gid_t);
  int          close(int);
  size_t       confstr(int, char *, size_t);
  int          dup(int);
  int          dup2(int, int);
  void         _exit(int);
  int          execl(const char *, const char *, ...);
  int          execle(const char *, const char *, ...);
  int          execlp(const char *, const char *, ...);
  int          execv(const char *, char *const []);
  int          execve(const char *, char *const [], char *const []);
  int          execvp(const char *, char *const []);
  int          faccessat(int, const char *, int, int);
  int          fchdir(int);
  int          fchown(int, uid_t, gid_t);
  int          fchownat(int, const char *, uid_t, gid_t, int);
  int          fexecve(int, char *const [], char *const []);
  pid_t        fork(void);
  long         fpathconf(int, int);
  int          ftruncate(int, off_t);
  char        *getcwd(char *, size_t);
  gid_t        getegid(void);
  uid_t        geteuid(void);
  gid_t        getgid(void);
  int          getgroups(int, gid_t []);
  int          gethostname(char *, size_t);
  char        *getlogin(void);
  int          getlogin_r(char *, size_t);
  int          getopt(int, char * const [], const char *);
  pid_t        getpgid(pid_t);
  pid_t        getpgrp(void);
  pid_t        getpid(void);
  pid_t        getppid(void);
  pid_t        getsid(pid_t);
  uid_t        getuid(void);
  int          isatty(int);
  int          lchown(const char *, uid_t, gid_t);
  int          link(const char *, const char *);
  int          linkat(int, const char *, int, const char *, int);
  off_t        lseek(int, off_t, int);
  long         pathconf(const char *, int);
  int          pause(void);
  int          pipe(int [2]);
  ssize_t      pread(int, void *, size_t, off_t);
  ssize_t      pwrite(int, const void *, size_t, off_t);
  ssize_t      read(int, void *, size_t);
  ssize_t      readlink(const char *restrict, char *restrict, size_t);
  ssize_t      readlinkat(int, const char *restrict, char *restrict, size_t);
  int          rmdir(const char *);
  int          setegid(gid_t);
  int          seteuid(uid_t);
  int          setgid(gid_t);
  int          setpgid(pid_t, pid_t);
  pid_t        setsid(void);
  int          setuid(uid_t);
  unsigned     sleep(unsigned);
  int          symlink(const char *, const char *);
  int          symlinkat(const char *, int, const char *);
  long         sysconf(int);
  pid_t        tcgetpgrp(int);
  int          tcsetpgrp(int, pid_t);
  int          truncate(const char *, off_t);
  char        *ttyname(int);
  int          ttyname_r(int, char *, size_t);
  int          unlink(const char *);
  int          unlinkat(int, const char *, int);
  int          usleep(useconds_t);
  ssize_t      write(int, const void *, size_t);
  
  #ifdef __cplusplus
  }
  #endif
  
  #endif /* UNISTD_H */
  /** @} */