Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/unistd.c

    r72ec8cc r823a929  
    3838#include "internal/common.h"
    3939#include "unistd.h"
     40#include <task.h>
    4041
    4142/* Array of environment variable strings (NAME=VALUE). */
     
    4344
    4445/**
    45  *
     46 * Dummy function. Always returns false, because there is no easy way to find
     47 * out under HelenOS.
     48 *
    4649 * @param fd
    47  * @return
     50 * @return Always false.
    4851 */
    4952int posix_isatty(int fd)
    5053{
    51         // TODO
    52         not_implemented();
     54        return false;
    5355}
    5456
     
    6062{
    6163        return getpagesize();
     64}
     65
     66/**
     67 *
     68 * @return
     69 */
     70posix_pid_t posix_getpid(void)
     71{
     72        return task_get_id();
    6273}
    6374
     
    105116}
    106117
     118/**
     119 *
     120 * @param path
     121 * @param name
     122 * @return
     123 */
     124long posix_pathconf(const char *path, int name)
     125{
     126        // TODO: low priority, just a compile-time dependency of binutils
     127        not_implemented();
     128}
     129
     130/**
     131 *
     132 * @return
     133 */
     134posix_pid_t posix_fork(void)
     135{
     136        // TODO: low priority, just a compile-time dependency of binutils
     137        not_implemented();
     138}
     139
     140/**
     141 *
     142 * @param path
     143 * @param argv
     144 * @return
     145 */
     146int posix_execv(const char *path, char *const argv[])
     147{
     148        // TODO: low priority, just a compile-time dependency of binutils
     149        not_implemented();
     150}
     151
     152/**
     153 *
     154 * @param file
     155 * @param argv
     156 * @return
     157 */
     158int posix_execvp(const char *file, char *const argv[])
     159{
     160        // TODO: low priority, just a compile-time dependency of binutils
     161        not_implemented();
     162}
     163
     164/**
     165 *
     166 * @param fildes
     167 * @return
     168 */
     169int posix_pipe(int fildes[2])
     170{
     171        // TODO: low priority, just a compile-time dependency of binutils
     172        not_implemented();
     173}
     174
    107175/** @}
    108176 */
Note: See TracChangeset for help on using the changeset viewer.