Changeset 244d6fd in mainline for uspace/lib/posix/unistd.c


Ignore:
Timestamp:
2011-06-26T17:59:29Z (14 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:
8b5fb5e
Parents:
3acff69
Message:

Add sigaddset(), getlogin() and getlogin_r() functions.

File:
1 edited

Legend:

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

    r3acff69 r244d6fd  
    4242/* Array of environment variable strings (NAME=VALUE). */
    4343char **posix_environ = NULL;
     44
     45/**
     46 * Get current user name.
     47 */
     48char *posix_getlogin(void)
     49{
     50        // TODO
     51        return (char *) "user";
     52}
     53
     54/**
     55 * Get current user name.
     56 *
     57 * @param name Pointer to a user supplied buffer.
     58 * @param namesize Length of the buffer.
     59 * @return
     60 */
     61int posix_getlogin_r(char *name, size_t namesize)
     62{
     63        // TODO
     64        not_implemented();
     65}
    4466
    4567/**
Note: See TracChangeset for help on using the changeset viewer.