Changeset c739102 in mainline for uspace/lib/c/generic/stack.c
- Timestamp:
- 2012-11-21T23:26:22Z (12 years ago)
- 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. - File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/stack.c
rbebf97d rc739102 1 1 /* 2 * Copyright (c) 201 1 Martin Sucha2 * Copyright (c) 2012 Jakub Jermar 3 3 * All rights reserved. 4 4 * … … 27 27 */ 28 28 29 /** @addtogroup fs29 /** @addtogroup libc 30 30 * @{ 31 */ 31 */ 32 /** @file 33 */ 32 34 33 #i fndef EXT2FS_EXT2FS_H_34 # define EXT2FS_EXT2FS_H_35 #include <stack.h> 36 #include <sysinfo.h> 35 37 36 #include <libext2.h> 37 #include <libfs.h> 38 #include <sys/types.h> 38 size_t stack_size_get(void) 39 { 40 static sysarg_t stack_size = 0; 39 41 40 #define min(a, b) ((a) < (b) ? (a) : (b)) 42 if (!stack_size) 43 sysinfo_get_value("default.stack_size", &stack_size); 41 44 42 extern vfs_out_ops_t ext2fs_ops;43 extern libfs_ops_t ext2fs_libfs_ops; 45 return (size_t) stack_size; 46 } 44 47 45 extern int ext2fs_global_init(void); 46 extern int ext2fs_global_fini(void); 47 48 #endif 49 50 /** 51 * @} 48 /** @} 52 49 */
Note:
See TracChangeset
for help on using the changeset viewer.