Ignore:
File:
1 edited

Legend:

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

    r32fb6944 ra16210b5  
    11/*
    22 * Copyright (c) 2011 Jiri Zarevucky
    3  * Copyright (c) 2011 Petr Koupy
    43 * All rights reserved.
    54 *
     
    2827 */
    2928
    30 /** @addtogroup libposix
    31  * @{
    32  */
    33 /** @file
    34  */
    35 
    36 #define LIBPOSIX_INTERNAL
    37 
    38 #include "internal/common.h"
    3929#include "unistd.h"
    4030
    41 /**
    42  * Dummy function. Always returns false, because there is no easy way to find
    43  * out under HelenOS.
    44  *
    45  * @param fd
    46  * @return Always false.
    47  */
    48 int posix_isatty(int fd)
    49 {
    50         return false;
     31int isatty(int fd) {
     32        // TODO
     33        return 0;
    5134}
    5235
    53 /**
    54  *
    55  * @return
    56  */
    57 posix_uid_t posix_getuid(void)
    58 {
    59         // TODO
    60         not_implemented();
    61 }
    62 
    63 /**
    64  *
    65  * @return
    66  */
    67 posix_gid_t posix_getgid(void)
    68 {
    69         // TODO
    70         not_implemented();
    71 }
    72 
    73 /**
    74  *
    75  * @param path
    76  * @param amode
    77  * @return
    78  */
    79 int posix_access(const char *path, int amode)
    80 {
    81         // TODO
    82         not_implemented();
    83 }
    84 
    85 /**
    86  *
    87  * @param name
    88  * @return
    89  */
    90 long posix_sysconf(int name)
    91 {
    92         // TODO
    93         not_implemented();
    94 }
    95 
    96 /** @}
    97  */
Note: See TracChangeset for help on using the changeset viewer.