Changeset c739102 in mainline for uspace/lib/c/generic/stack.c


Ignore:
Timestamp:
2012-11-21T23:26:22Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
0f2c80a
Parents:
bebf97d (diff), 1f7753a (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:

Mainline changes.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/stack.c

    rbebf97d rc739102  
    11/*
    2  * Copyright (c) 2011 Martin Sucha
     2 * Copyright (c) 2012 Jakub Jermar
    33 * All rights reserved.
    44 *
     
    2727 */
    2828
    29 /** @addtogroup fs
     29/** @addtogroup libc
    3030 * @{
    31  */
     31 */
     32/** @file
     33 */
    3234
    33 #ifndef EXT2FS_EXT2FS_H_
    34 #define EXT2FS_EXT2FS_H_
     35#include <stack.h>
     36#include <sysinfo.h>
    3537
    36 #include <libext2.h>
    37 #include <libfs.h>
    38 #include <sys/types.h>
     38size_t stack_size_get(void)
     39{
     40        static sysarg_t stack_size = 0;
    3941
    40 #define min(a, b)               ((a) < (b) ? (a) : (b))
     42        if (!stack_size)
     43                sysinfo_get_value("default.stack_size", &stack_size);
    4144
    42 extern vfs_out_ops_t ext2fs_ops;
    43 extern libfs_ops_t ext2fs_libfs_ops;
     45        return (size_t) stack_size;
     46}
    4447
    45 extern int ext2fs_global_init(void);
    46 extern int ext2fs_global_fini(void);
    47 
    48 #endif
    49 
    50 /**
    51  * @}
     48/** @}
    5249 */
Note: See TracChangeset for help on using the changeset viewer.