Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1653 → Rev 1646

/uspace/trunk/libc/include/ipc/fb.h
1,36 → 1,4
/*
* 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>
71,9 → 39,3
#define FB_ANIM_STOP 1051
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/ipc/ipc.h
24,12 → 24,6
* 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
*/
 
#ifndef __LIBIPC_IPC_H__
88,9 → 82,3
extern int ipc_forward_fast(ipc_callid_t callid, int phoneid, int method, ipcarg_t arg1);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/ipc/services.h
26,9 → 26,6
* 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.
47,9 → 44,3
#define SERVICE_MEM_KLOG 2
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/ipc/ns.h
26,19 → 26,7
* 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/psthread.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__PSTHREAD_H__
#define __LIBC__PSTHREAD_H__
 
93,9 → 87,3
 
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/async.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef _libc_ASYNC_H_
#define _libc_ASYNC_H_
 
129,9 → 123,3
 
extern atomic_t async_futex;
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/sys/mman.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __libc_MMAN_H_
#define __libc_MMAN_H_
 
53,9 → 47,3
extern int munmap(void *start, size_t length);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/sys/time.h
24,12 → 24,6
* 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 libc
* @{
*/
/** @file
*/
 
#ifndef __libc_sys_TIME_H__
55,9 → 49,3
int gettimeofday(struct timeval *tv, struct timezone *tz);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/sys/types.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__SYS_TYPES_H__
#define __LIBC__SYS_TYPES_H__
 
39,9 → 33,3
 
#endif
 
 
 
/** @}
*/
/uspace/trunk/libc/include/err.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef _libc__ERR_H_
#define _libc__ERR_H_
 
38,9 → 32,3
#define errx(status,fmt,...) { printf((fmt),##__VA_ARGS__);_exit(status);}
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/io/stream.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __libc_STREAM_H_
#define __libc_STREAM_H_
 
49,9 → 43,3
int get_fd_phone(int fd);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/io/io.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__IO_H__
#define __LIBC__IO_H__
 
43,9 → 37,3
int getchar(void);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/io/printf_core.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__PRINTF_CORE_H__
#define __LIBC__PRINTF_CORE_H__
 
50,9 → 44,3
int printf_core(const char *fmt, struct printf_spec *ps ,va_list ap);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/stdio.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__STDIO_H__
#define __LIBC__STDIO_H__
 
58,9 → 52,3
#define fprintf(f, fmt, ...) printf(fmt, ##__VA_ARGS__)
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/futex.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__FUTEX_H__
#define __LIBC__FUTEX_H__
 
47,9 → 41,3
extern int futex_up(atomic_t *futex);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/align.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __ALIGN_H__
#define __ALIGN_H__
 
51,9 → 45,3
#define ALIGN_UP(s, a) ((long)((s) + ((a) - 1)) & ~((long) (a) - 1))
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/as.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __libc_AS_H__
#define __libc_AS_H__
 
49,9 → 43,3
extern void * as_get_mappable_page(size_t sz);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/ddi.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC_DDI_H__
#define __LIBC_DDI_H__
 
42,9 → 36,3
extern int preemption_control(int enable);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/string.h
26,13 → 26,7
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
 
#ifndef __LIBC__STRING_H__
#define __LIBC__STRING_H__
 
58,9 → 52,3
unsigned long strtoul(const char *nptr, char **endptr, int base);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/libadt/fifo.h
26,12 → 26,6
* 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
122,9 → 116,3
name.fifo = malloc(sizeof(*name.fifo) * name.items)
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/libadt/hash_table.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __HASH_TABLE_H__
#define __HASH_TABLE_H__
 
84,9 → 78,3
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,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIST_H__
#define __LIST_H__
 
189,9 → 183,3
extern void list_concat(link_t *head1, link_t *head2);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/stdlib.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__STDLIB_H__
#define __LIBC__STDLIB_H__
 
57,9 → 51,3
 
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/unistd.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__UNISTD_H__
#define __LIBC__UNISTD_H__
 
48,9 → 42,3
void usleep(unsigned long usec);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/time.h
24,12 → 24,6
* 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 libc
* @{
*/
/** @file
*/
 
#ifndef __libc_TIME_H__
36,9 → 30,3
#define __libc_TIME_H__
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/thread.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__THREAD_H__
#define __LIBC__THREAD_H__
 
50,9 → 44,3
extern void __free_tls_arch(tcb_t *, size_t size);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/sysinfo.h
24,12 → 24,6
* 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 libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC_SYSINFO_H__
44,9 → 38,3
 
#endif
 
 
 
/** @}
*/
/uspace/trunk/libc/include/limits.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__LIMITS_H__
#define __LIBC__LIMITS_H__
 
70,9 → 64,3
 
#endif
 
 
 
/** @}
*/
/uspace/trunk/libc/include/ctype.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __CTYPE_H__
#define __CTYPE_H__
 
58,9 → 52,3
 
#endif
 
 
 
/** @}
*/
/uspace/trunk/libc/include/cap.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __CAP_H__
#define __CAP_H__
 
41,9 → 35,3
extern int cap_revoke(task_id_t id, unsigned int caps);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/endian.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__ENDIAN_H__
#define __LIBC__ENDIAN_H__
 
43,9 → 37,3
 
#endif
 
 
 
/** @}
*/
/uspace/trunk/libc/include/task.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__TASK_H__
#define __LIBC__TASK_H__
 
42,9 → 36,3
extern task_id_t task_get_id(void);
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/stdarg.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__STDARG_H__
#define __LIBC__STDARG_H__
 
51,9 → 45,3
 
#endif
 
 
 
/** @}
*/
/uspace/trunk/libc/include/types.h
1,7 → 1,0
#include <libarch/types.h>
 
 
/** @}
*/
/uspace/trunk/libc/include/stdint.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__STDINT_H__
#define __LIBC__STDINT_H__
 
60,9 → 54,3
 
#endif
 
 
 
/** @}
*/
/uspace/trunk/libc/include/libc.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__LIBC_H__
#define __LIBC__LIBC_H__
 
52,9 → 46,3
 
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/atomic.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __ATOMIC_H__
#define __ATOMIC_H__
 
52,9 → 46,3
}
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/assert.h
27,12 → 27,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__ASSERT_H__
#define __LIBC__ASSERT_H__
 
54,9 → 48,3
#endif
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/errno.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__ERRNO_H__
#define __LIBC__ERRNO_H__
 
40,9 → 34,3
 
 
#endif
 
 
/** @}
*/
/uspace/trunk/libc/include/malloc.h
529,9 → 529,3
#endif
 
#endif /* MALLOC_280_H */
 
 
/** @}
*/
/uspace/trunk/libc/include/stddef.h
26,12 → 26,6
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#ifndef __LIBC__STDDEF_H__
#define __LIBC__STDDEF_H__
 
39,9 → 33,3
 
#endif
 
 
 
/** @}
*/