Subversion Repositories HelenOS

Compare Revisions

Ignore whitespace Rev 1652 → Rev 1653

/uspace/trunk/softint/include/division.h
26,6 → 26,13
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup softint
* @{
*/
/**
* @file
*/
 
#ifndef __SOFTINT_DIVISION_H__
#define __SOFTINT_DIVISION_H__
 
58,3 → 65,6
 
#endif
 
/** @}
*/
 
/uspace/trunk/softint/generic/division.c
26,6 → 26,15
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup softint SoftInt
* @brief Software implementation of basic arithmetic operations.
* @{
*/
/**
* @file
* SW implementation of 32 and 64 bit division and modulo.
*/
 
#include <division.h>
 
#define ABSVAL(x) ( (x) > 0 ? (x) : -(x))
185,4 → 194,5
return divandmod64(a, b, c);
}
 
 
/** @}
*/
/uspace/trunk/klog/klog.c
26,6 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup klog KLog
* @brief HelenOS KLog
* @{
*/
/**
* @file
*/
 
#include <stdio.h>
#include <ipc/ipc.h>
#include <async.h>
75,3 → 83,6
 
return 0;
}
 
/** @}
*/
/uspace/trunk/softfloat/generic/common.c
52,8 → 52,9
 
 
/** Take fraction shifted by 10 bits to left, round it, normalize it and detect exceptions
* @param exp exponent with bias
* @param cexp exponent with bias
* @param cfrac fraction shifted 10 places left with added hidden bit
* @param sign
* @return valied float64
*/
float64 finishFloat64(int32_t cexp, uint64_t cfrac, char sign)
/uspace/trunk/init/init.c
26,6 → 26,14
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup init Init
* @brief Init process for testing purposes.
* @{
*/
/**
* @file
*/
 
#include "version.h"
#include <stdio.h>
 
49,3 → 57,7
 
return 0;
}
 
/** @}
*/
 
/uspace/trunk/init/version.c
26,6 → 26,13
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup init
* @{
*/
/**
* @file
*/
 
#include <unistd.h>
#include <stdio.h>
#include "version.h"
36,3 → 43,7
puts("HelenOS init");
puts("Copyright (C) 2006 HelenOS project");
}
 
/** @}
*/
 
/uspace/trunk/init/init.h
26,6 → 26,13
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup init
* @{
*/
/**
* @file
*/
 
#ifndef __INIT_H__
#define __INIT_H__
 
32,3 → 39,7
#include "version.h"
 
#endif
 
/** @}
*/
 
/uspace/trunk/init/version.h
26,6 → 26,13
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup init
* @{
*/
/**
* @file
*/
 
#ifndef __VERSION_H__
#define __VERSION_H__
 
32,3 → 39,7
extern void version_print(void);
 
#endif
 
/** @}
*/
 
/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
24,6 → 24,12
* 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__
38,3 → 44,9
 
#endif
 
 
 
/** @}
*/
/uspace/trunk/libc/include/time.h
24,6 → 24,12
* 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__
30,3 → 36,9
#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
24,6 → 24,12
* 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__
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
24,6 → 24,12
* 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__
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
 
 
/** @}
*/
/uspace/trunk/libc/generic/time.c
24,6 → 24,12
* 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
*/
 
#include <sys/time.h>
109,3 → 115,9
futex_initialize(&futex,0);
futex_down_timeout(&futex, usec, 0);
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/ddi.c
24,6 → 24,12
* 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
*/
 
#include <ddi.h>
35,7 → 41,6
*
* Caller of this function must have the CAP_MEM_MANAGER capability.
*
* @param id Task ID.
* @param pf Physical address of the starting frame.
* @param vp Virtual address of the sterting page.
* @param pages Number of pages to map.
82,3 → 87,9
{
return __SYSCALL1(SYS_PREEMPT_CONTROL, (sysarg_t) enable);
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/task.c
24,6 → 24,12
* 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
*/
 
#include <task.h>
37,3 → 43,9
 
return task_id;
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/cap.c
24,8 → 24,11
* 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 cap.c
* @brief Functions to grant/revoke capabilities to/from a task.
67,3 → 70,9
 
__SYSCALL2(SYS_CAP_REVOKE, (sysarg_t) &arg, (sysarg_t) caps);
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/as.c
24,6 → 24,12
* 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
*/
 
#include <as.h>
78,7 → 84,7
 
/** Sbrk emulation
*
* @param size New area that should be allocated or negative,
* @param incr New area that should be allocated or negative,
if it should be shrinked
* @return Pointer to newly allocated area
*/
140,3 → 146,9
 
return res;
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/string.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <string.h>
#include <unistd.h>
#include <ctype.h>
300,3 → 306,9
while ((*(dest++) = *(src++)) && --n)
;
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/thread.c
24,6 → 24,12
* 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
*/
 
#include <thread.h>
146,3 → 152,9
__SYSCALL1(SYS_THREAD_EXIT, (sysarg_t) status);
}
 
 
 
/** @}
*/
/uspace/trunk/libc/generic/libc.c
24,6 → 24,12
* 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
*/
 
#include <libc.h>
61,3 → 67,9
psthread_teardown(__tcb_get()->pst_data);
_exit(0);
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/psthread.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <libadt/list.h>
#include <psthread.h>
#include <malloc.h>
301,3 → 307,9
{
serialization_count--;
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/ipc.c
24,6 → 24,19
* 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
* @{
* @}
*/
 
/** @addtogroup libcipc IPC
* @brief HelenOS uspace IPC
* @{
* @ingroup libc
*/
/** @file
*/
 
#include <ipc/ipc.h>
437,3 → 450,9
return __SYSCALL4(SYS_IPC_FORWARD_FAST, callid, phoneid, method, arg1);
}
 
 
 
/** @}
*/
/uspace/trunk/libc/generic/async.c
24,6 → 24,12
* 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
*/
 
/**
356,7 → 362,7
* When new connection arrives, thread with this function is created.
* It calls client_connection and does final cleanup.
*
* @parameter arg Connection structure pointer
* @param arg Connection structure pointer
*/
static int connection_thread(void *arg)
{
792,3 → 798,9
{
ipc_call_async_2(phoneid, method, arg1, arg2, NULL, NULL, !in_interrupt_handler);
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/libadt/hash_table.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
/*
* This is an implementation of generic chained hash table.
*/
168,3 → 174,9
}
}
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/libadt/list.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <libadt/list.h>
 
 
78,3 → 84,9
head1->prev = head2->prev;
list_initialize(head2);
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/stdlib.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <stdlib.h>
 
static long glbl_seed = 1;
39,3 → 45,9
{
glbl_seed = seed;
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/io/printf.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <io/printf_core.h>
#include <stdio.h>
#include <stdio.h>
50,3 → 56,9
 
 
 
 
 
/** @}
*/
/uspace/trunk/libc/generic/io/snprintf.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <stdarg.h>
#include <stdio.h>
#include <io/printf_core.h>
48,3 → 54,9
 
return ret;
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/io/sprintf.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <stdarg.h>
#include <stdio.h>
#include <io/printf_core.h>
47,3 → 53,9
 
return ret;
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/io/io.c
24,6 → 24,12
* 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
*/
 
#include <libc.h>
104,3 → 110,9
}
 
 
 
 
/** @}
*/
/uspace/trunk/libc/generic/io/vprintf.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <stdarg.h>
#include <stdio.h>
#include <unistd.h>
51,3 → 57,9
}
 
 
 
 
/** @}
*/
/uspace/trunk/libc/generic/io/vsnprintf.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
103,3 → 109,9
}
 
 
 
 
/** @}
*/
/uspace/trunk/libc/generic/io/printf_core.c
27,8 → 27,11
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/**
* @file print.c
* @file
* @brief Printing functions.
*/
 
412,7 → 415,7
* - s Print zero terminated string. If a NULL value is passed as value, "(NULL)" is printed instead.
*
* - P, p Print value of a pointer. Void * value is expected and it is printed in hexadecimal notation with prefix
* (as with \%#X or \%#x for 32bit or \%#X / \%#x for 64bit long pointers).
* (as with '\%#X' or '\%#x' for 32bit or '\%#X' or '\%#x' for 64bit long pointers).
*
* - b Print value as unsigned binary number. Prefix is not printed by default. (Nonstandard extension.)
*
685,3 → 688,9
return -counter;
}
 
 
 
/** @}
*/
/uspace/trunk/libc/generic/io/stream.c
27,7 → 27,13
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
 
#include <io/io.h>
#include <io/stream.h>
#include <string.h>
181,3 → 187,9
return -1;
return streams[fd].phone;
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/io/vsprintf.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <stdarg.h>
#include <stdio.h>
#include <io/printf_core.h>
41,3 → 47,9
return vsnprintf(str, (size_t)-1, fmt, ap);
}
 
 
 
/** @}
*/
/uspace/trunk/libc/generic/err.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <stdio.h>
#include <stdlib.h>
 
34,3 → 40,9
printf("TODO...errx\n");
_exit(0);
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/sysinfo.c
24,6 → 24,12
* 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
*/
 
#include <libc.h>
35,3 → 41,9
return __SYSCALL2(SYS_SYSINFO_VALUE, (sysarg_t ) name, (sysarg_t) strlen(name) );
}
 
 
 
/** @}
*/
/uspace/trunk/libc/generic/mmap.c
26,6 → 26,12
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
 
/** @addtogroup libc
* @{
*/
/** @file
*/
 
#include <sys/mman.h>
#include <as.h>
#include <unistd.h>
50,3 → 56,9
{
return as_area_destroy(start);
}
 
 
/** @}
*/
/uspace/trunk/libc/generic/futex.c
24,6 → 24,12
* 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
*/
 
#include <futex.h>
166,3 → 172,9
return 0;
}
 
 
/** @}
*/
/uspace/trunk/tetris/scores.c
35,6 → 35,12
* @(#)scores.c 8.1 (Berkeley) 5/31/93
*/
 
/** @addtogroup tetris
* @{
*/
/** @file
*/
 
/*
* Score code for Tetris, by Darren Provine (kilroy@gboro.glassboro.edu)
* modified 22 January 1992, to limit the number of entries any one
531,3 → 537,7
/* } */
/* } */
/* } */
 
/** @}
*/
 
/uspace/trunk/tetris/input.c
35,6 → 35,12
* @(#)input.c 8.1 (Berkeley) 5/31/93
*/
 
/** @addtogroup tetris
* @{
*/
/** @file
*/
 
/*
* Tetris input.
*/
176,3 → 182,7
lastchar = '\0';
return ((int)(unsigned char)c);
}
 
/** @}
*/
 
/uspace/trunk/tetris/screen.c
35,6 → 35,12
* @(#)screen.c 8.1 (Berkeley) 5/31/93
*/
 
/** @addtogroup tetris
* @{
*/
/** @file
*/
 
/*
* Tetris screen control.
*/
316,3 → 322,7
while (--l >= 0)
(void) putchar(' ');
}
 
/** @}
*/
 
/uspace/trunk/tetris/tetris.h
35,6 → 35,12
* @(#)tetris.h 8.1 (Berkeley) 5/31/93
*/
 
/** @addtogroup tetris
* @{
*/
/** @file
*/
 
/*
* Definitions for Tetris.
*/
176,3 → 182,7
int fits_in(const struct shape *, int);
void place(const struct shape *, int, int);
void stop(char *);
 
/** @}
*/
 
/uspace/trunk/tetris/scores.h
34,7 → 34,13
*
* @(#)scores.h 8.1 (Berkeley) 5/31/93
*/
/** @addtogroup tetris
* @{
*/
/** @file
*/
 
 
/*
* Tetris scores.
*/
55,3 → 61,7
void showscores(int);
void insertscore(int score, int level);
void initscores(void);
 
/** @}
*/
 
/uspace/trunk/tetris/shapes.c
35,6 → 35,12
* @(#)shapes.c 8.1 (Berkeley) 5/31/93
*/
 
/** @addtogroup tetris
* @{
*/
/** @file
*/
 
/*
* Tetris shapes and related routines.
*
104,3 → 110,7
board[pos + *o++] = onoff;
board[pos + *o] = onoff;
}
 
/** @}
*/
 
/uspace/trunk/tetris/input.h
35,6 → 35,16
* @(#)input.h 8.1 (Berkeley) 5/31/93
*/
 
/** @addtogroup tetris
* @{
*/
/** @file
*/
 
int rwait(struct timeval *);
int tgetchar(void);
void tsleep(void);
 
/** @}
*/
 
/uspace/trunk/tetris/screen.h
35,6 → 35,12
* @(#)screen.h 8.1 (Berkeley) 5/31/93
*/
 
/** @addtogroup tetris
* @{
*/
/** @file
*/
 
/*
* putpad() is for padded strings with count=1.
*/
59,3 → 65,7
void scr_msg(char *, int);
void scr_set(void);
void scr_update(void);
 
/** @}
*/
 
/uspace/trunk/tetris/pathnames.h
35,4 → 35,15
* @(#)pathnames.h 8.1 (Berkeley) 5/31/93
*/
 
/** @addtogroup tetris
* @{
*/
/** @file
*/
 
#define _PATH_SCOREFILE "/var/games/tetris.scores"
 
 
/** @}
*/
 
/uspace/trunk/tetris/tetris.c
35,6 → 35,13
* @(#)tetris.c 8.1 (Berkeley) 5/31/93
*/
 
/** @addtogroup tetris Tetris
* @brief Tetris ported from OpenBSD
* @{
*/
/** @file
*/
 
#ifndef lint
static const char copyright[] =
"@(#) Copyright (c) 1992, 1993\n\
459,3 → 466,7
(void)fprintf(stderr, "usage: tetris [-ps] [-k keys] [-l level]\n");
exit(1);
}
 
/** @}
*/
 
/uspace/trunk/ipcc/ipcc.c
1,3 → 1,39
/*
* 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 ippc IPPC
* @brief Interprocess communication tester.
* @{
*/
/**
* @file
*/
 
#include <stdio.h>
#include <async.h>
#include <ipc/ipc.h>
239,3 → 275,7
}
}
}
 
/** @}
*/