Changeset 39a7bfa in mainline


Ignore:
Timestamp:
2011-06-17T02:19:15Z (13 years ago)
Author:
Petr Koupy <petr.koupy@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ba7b753
Parents:
59f799b
Message:

Added function stubs into sys/stat.h.

Location:
uspace/lib/posix/sys
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/sys/stat.c

    r59f799b r39a7bfa  
    3737
    3838#include "stat.h"
     39#include "../common.h"
    3940#include <mem.h>
    4041
     
    8283
    8384/**
     85 *
     86 * @param path
     87 * @param st
     88 * @return
     89 */
     90int posix_lstat(const char *restrict path, struct posix_stat *restrict st)
     91{
     92        // TODO
     93        not_implemented();
     94}
     95
     96/**
    8497 *
    8598 * @param path
     
    98111}
    99112
     113/**
     114 *
     115 * @param path
     116 * @param mode
     117 * @return
     118 */
     119int posix_chmod(const char *path, mode_t mode)
     120{
     121        // TODO
     122        not_implemented();
     123}
     124
     125/**
     126 *
     127 * @param mask
     128 * @return
     129 */
     130mode_t posix_umask(mode_t mask)
     131{
     132        // TODO
     133        not_implemented();
     134}
     135
    100136/** @}
    101137 */
  • uspace/lib/posix/sys/stat.h

    r59f799b r39a7bfa  
    128128
    129129extern int posix_fstat(int fd, struct posix_stat *st);
    130 extern int posix_stat(const char *path, struct posix_stat *st);
     130extern int posix_lstat(const char *restrict path, struct posix_stat *restrict st);
     131extern int posix_stat(const char *restrict path, struct posix_stat *restrict st);
     132extern int posix_chmod(const char *path, mode_t mode);
     133extern mode_t posix_umask(mode_t mask);
    131134
    132135#ifndef LIBPOSIX_INTERNAL
    133136        #define fstat posix_fstat
     137        #define lstat posix_lstat
    134138        #define stat posix_stat
     139        #define chmod posix_chmod
     140        #define umask posix_umask
    135141#endif
    136142
Note: See TracChangeset for help on using the changeset viewer.