Changeset 0ffbed9 in mainline for uspace/lib/posix/unistd.c


Ignore:
Timestamp:
2011-06-19T17:49:29Z (13 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5974661
Parents:
f48b637 (diff), 32fb6944 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge libposix.

File:
1 edited

Legend:

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

    rf48b637 r0ffbed9  
    11/*
    22 * Copyright (c) 2011 Jiri Zarevucky
     3 * Copyright (c) 2011 Petr Koupy
    34 * All rights reserved.
    45 *
     
    2728 */
    2829
     30/** @addtogroup libposix
     31 * @{
     32 */
     33/** @file
     34 */
     35
     36#define LIBPOSIX_INTERNAL
     37
     38#include "internal/common.h"
    2939#include "unistd.h"
    3040
    31 int isatty(int fd) {
    32         // TODO
    33         return 0;
     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 */
     48int posix_isatty(int fd)
     49{
     50        return false;
    3451}
    3552
     53/**
     54 *
     55 * @return
     56 */
     57posix_uid_t posix_getuid(void)
     58{
     59        // TODO
     60        not_implemented();
     61}
     62
     63/**
     64 *
     65 * @return
     66 */
     67posix_gid_t posix_getgid(void)
     68{
     69        // TODO
     70        not_implemented();
     71}
     72
     73/**
     74 *
     75 * @param path
     76 * @param amode
     77 * @return
     78 */
     79int posix_access(const char *path, int amode)
     80{
     81        // TODO
     82        not_implemented();
     83}
     84
     85/**
     86 *
     87 * @param name
     88 * @return
     89 */
     90long posix_sysconf(int name)
     91{
     92        // TODO
     93        not_implemented();
     94}
     95
     96/** @}
     97 */
Note: See TracChangeset for help on using the changeset viewer.