/uspace/trunk/libc/include/align.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __ALIGN_H__ |
#define __ALIGN_H__ |
45,3 → 51,9 |
#define ALIGN_UP(s, a) ((long)((s) + ((a) - 1)) & ~((long) (a) - 1)) |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/futex.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__FUTEX_H__ |
#define __LIBC__FUTEX_H__ |
41,3 → 47,9 |
extern int futex_up(atomic_t *futex); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/endian.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__ENDIAN_H__ |
#define __LIBC__ENDIAN_H__ |
37,3 → 43,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/ddi.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC_DDI_H__ |
#define __LIBC_DDI_H__ |
36,3 → 42,9 |
extern int preemption_control(int enable); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/limits.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__LIMITS_H__ |
#define __LIBC__LIMITS_H__ |
64,3 → 70,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/as.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __libc_AS_H__ |
#define __libc_AS_H__ |
43,3 → 49,9 |
extern void * as_get_mappable_page(size_t sz); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/types.h |
---|
1,0 → 0,0 |
#include <libarch/types.h> |
/** @} |
*/ |
/uspace/trunk/libc/include/stdint.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__STDINT_H__ |
#define __LIBC__STDINT_H__ |
54,3 → 60,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/string.h |
---|
26,7 → 26,13 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__STRING_H__ |
#define __LIBC__STRING_H__ |
52,3 → 58,9 |
unsigned long strtoul(const char *nptr, char **endptr, int base); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/malloc.h |
---|
529,3 → 529,9 |
#endif |
#endif /* MALLOC_280_H */ |
/** @} |
*/ |
/uspace/trunk/libc/include/stddef.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__STDDEF_H__ |
#define __LIBC__STDDEF_H__ |
33,3 → 39,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/psthread.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__PSTHREAD_H__ |
#define __LIBC__PSTHREAD_H__ |
87,3 → 93,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/async.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef _libc_ASYNC_H_ |
#define _libc_ASYNC_H_ |
123,3 → 129,9 |
extern atomic_t async_futex; |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/stdlib.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__STDLIB_H__ |
#define __LIBC__STDLIB_H__ |
51,3 → 57,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/stdio.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__STDIO_H__ |
#define __LIBC__STDIO_H__ |
52,3 → 58,9 |
#define fprintf(f, fmt, ...) printf(fmt, ##__VA_ARGS__) |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/err.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef _libc__ERR_H_ |
#define _libc__ERR_H_ |
32,3 → 38,9 |
#define errx(status,fmt,...) { printf((fmt),##__VA_ARGS__);_exit(status);} |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/sysinfo.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC_SYSINFO_H__ |
#define __LIBC_SYSINFO_H__ |
38,3 → 44,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/time.h |
---|
26,7 → 26,19 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __libc_TIME_H__ |
#define __libc_TIME_H__ |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/assert.h |
---|
27,6 → 27,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__ASSERT_H__ |
#define __LIBC__ASSERT_H__ |
48,3 → 54,9 |
#endif |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/task.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__TASK_H__ |
#define __LIBC__TASK_H__ |
36,3 → 42,9 |
extern task_id_t task_get_id(void); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/cap.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __CAP_H__ |
#define __CAP_H__ |
35,3 → 41,9 |
extern int cap_revoke(task_id_t id, unsigned int caps); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/unistd.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__UNISTD_H__ |
#define __LIBC__UNISTD_H__ |
42,3 → 48,9 |
void usleep(unsigned long usec); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/thread.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__THREAD_H__ |
#define __LIBC__THREAD_H__ |
44,3 → 50,9 |
extern void __free_tls_arch(tcb_t *, size_t size); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/libadt/hash_table.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __HASH_TABLE_H__ |
#define __HASH_TABLE_H__ |
78,3 → 84,9 |
extern void hash_table_remove(hash_table_t *h, unsigned long key[], hash_count_t keys); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/libadt/list.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIST_H__ |
#define __LIST_H__ |
183,3 → 189,9 |
extern void list_concat(link_t *head1, link_t *head2); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/libadt/fifo.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
/* |
* This implementation of FIFO stores values in an array |
* (static or dynamic). As such, these FIFOs have upper bound |
116,3 → 122,9 |
name.fifo = malloc(sizeof(*name.fifo) * name.items) |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/libc.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__LIBC_H__ |
#define __LIBC__LIBC_H__ |
46,3 → 52,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/atomic.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __ATOMIC_H__ |
#define __ATOMIC_H__ |
46,3 → 52,9 |
} |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/io/printf_core.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__PRINTF_CORE_H__ |
#define __LIBC__PRINTF_CORE_H__ |
44,3 → 50,9 |
int printf_core(const char *fmt, struct printf_spec *ps ,va_list ap); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/io/stream.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __libc_STREAM_H_ |
#define __libc_STREAM_H_ |
43,3 → 49,9 |
int get_fd_phone(int fd); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/io/io.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__IO_H__ |
#define __LIBC__IO_H__ |
37,3 → 43,9 |
int getchar(void); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/stdarg.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__STDARG_H__ |
#define __LIBC__STDARG_H__ |
45,3 → 51,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/ctype.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __CTYPE_H__ |
#define __CTYPE_H__ |
52,3 → 58,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/errno.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__ERRNO_H__ |
#define __LIBC__ERRNO_H__ |
34,3 → 40,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/ipc/ipc.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libcipc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBIPC_IPC_H__ |
#define __LIBIPC_IPC_H__ |
82,3 → 88,9 |
extern int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method, ipcarg_t arg1); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/ipc/ns.h |
---|
26,7 → 26,19 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libcipc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBIPC__NS_H__ |
#define __LIBIPC__NS_H__ |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/ipc/services.h |
---|
26,6 → 26,9 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libcipc |
* @{ |
*/ |
/** |
* @file services.h |
* @brief List of all known services and their codes. |
44,3 → 47,9 |
#define SERVICE_MEM_KLOG 2 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/ipc/fb.h |
---|
1,4 → 1,36 |
/* |
* Copyright (C) 2006 Ondrej Palkovsky |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
* modification, are permitted provided that the following conditions |
* are met: |
* |
* - Redistributions of source code must retain the above copyright |
* notice, this list of conditions and the following disclaimer. |
* - Redistributions in binary form must reproduce the above copyright |
* notice, this list of conditions and the following disclaimer in the |
* documentation and/or other materials provided with the distribution. |
* - The name of the author may not be used to endorse or promote products |
* derived from this software without specific prior written permission. |
* |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libcipc |
* @{ |
*/ |
/** @file |
*/ |
#include <arch/types.h> |
#include <types.h> |
39,3 → 71,9 |
#define FB_ANIM_STOP 1051 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/sys/time.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __libc_sys_TIME_H__ |
#define __libc_sys_TIME_H__ |
49,3 → 55,9 |
int gettimeofday(struct timeval *tv, struct timezone *tz); |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/sys/types.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __LIBC__SYS_TYPES_H__ |
#define __LIBC__SYS_TYPES_H__ |
33,3 → 39,9 |
#endif |
/** @} |
*/ |
/uspace/trunk/libc/include/sys/mman.h |
---|
26,6 → 26,12 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
*/ |
/** @addtogroup libc |
* @{ |
*/ |
/** @file |
*/ |
#ifndef __libc_MMAN_H_ |
#define __libc_MMAN_H_ |
47,3 → 53,9 |
extern int munmap(void *start, size_t length); |
#endif |
/** @} |
*/ |