Changeset 330
- Timestamp:
- Feb 19, 2009, 11:15:38 PM (12 years ago)
- Location:
- trunk/System/Sources/libc
- Files:
-
- 125 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/System/Sources/libc/include/Makefile
r284 r330 1 SUBDIRS = compat dl kernel/ linux kernel/netbsdmath net pthread socket sys1 SUBDIRS = compat dl kernel/freebsd kernel/linux kernel/netbsd kernel/openbsd kernel/solaris math net pthread socket sys 2 2 PREFIX = /usr/local 3 3 DESTDIR = -
trunk/System/Sources/libc/include/compat/dirent.h
r225 r330 1 /* $Id: dirent.h,v 1. 4 2007/12/16 02:04:54khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: dirent.h,v 1.6 2009/02/19 20:55:05 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/dirent.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/dirent.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/dirent.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/dirent.h" 30 # elif defined(__Whitix__) 31 # include "kernel/whitix/dirent.h" 26 32 # else 27 33 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/errno.h
r225 r330 1 /* $Id: errno.h,v 1. 5 2007/12/16 02:04:54khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: errno.h,v 1.7 2009/02/19 20:55:49 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/errno.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/errno.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/errno.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/errno.h" 30 # elif defined(__sun__) 31 # include "kernel/solaris/errno.h" 32 # elif defined(__Whitix__) 33 # include "kernel/whitix/errno.h" 26 34 # else 27 35 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/fcntl.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: fcntl.h,v 1.6 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/fcntl.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/fcntl.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/fcntl.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/fcntl.h" 30 # elif defined(__Whitix__) 31 # include "kernel/whitix/fcntl.h" 26 32 # else 27 33 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/limits.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: limits.h,v 1.5 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2007 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/limits.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/limits.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/limits.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/limits.h" 30 # elif defined(__Whitix__) 31 # include "kernel/whitix/limits.h" 26 32 # else 27 33 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/signal.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: signal.h,v 1.6 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/signal.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/signal.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/signal.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/signal.h" 30 # elif defined(__Whitix__) 31 # include "kernel/whitix/signal.h" 26 32 # else 27 33 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/stdio.h
r185 r330 1 /* $Id: stdio.h,v 1. 1 2008-10-20 12:23:58khorben Exp $ */1 /* $Id: stdio.h,v 1.2 2009/02/19 21:33:56 khorben Exp $ */ 2 2 /* Copyright (c) 2007 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ … … 23 23 # if defined(__linux__) 24 24 # include "kernel/linux/stdio.h" 25 # elif defined(__FreeBSD__) 26 # include "kernel/freebsd/stdio.h" 25 27 # elif defined(__NetBSD__) 26 28 # include "kernel/netbsd/stdio.h" 29 # elif defined(__OpenBSD__) 30 # include "kernel/openbsd/stdio.h" 27 31 # else 28 32 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/sys/ioctl.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: ioctl.h,v 1.3 2009/02/19 20:59:20 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/compat/sys/mman.h
r225 r330 1 /* $Id: mman.h,v 1. 6 2008/10/20 12:59:23khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: mman.h,v 1.8 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/sys/mman.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/sys/mman.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/sys/mman.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/sys/mman.h" 30 # elif defined(__sun__) 31 # include "kernel/solaris/sys/mman.h" 32 # elif defined(__Whitix__) 33 # include "kernel/whitix/sys/mman.h" 26 34 # else 27 35 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/sys/mount.h
r225 r330 1 /* $Id: mount.h,v 1. 2 2008-08-14 15:08:44khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: mount.h,v 1.3 2009/02/19 20:59:20 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/compat/sys/reboot.h
r225 r330 1 /* $Id: reboot.h,v 1. 2 2008/09/16 20:24:27khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: reboot.h,v 1.3 2009/02/19 20:59:20 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/compat/sys/resource.h
r225 r330 1 /* $Id: resource.h,v 1. 4 2008-01-06 11:00:59khorben Exp $ */1 /* $Id: resource.h,v 1.5 2009/02/19 21:33:56 khorben Exp $ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/sys/resource.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/sys/resource.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/sys/resource.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/sys/resource.h" 26 30 # else 27 31 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/sys/select.h
r225 r330 1 /* $Id: select.h,v 1. 2 2008-03-30 12:43:35khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: select.h,v 1.4 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/sys/select.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/sys/select.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/sys/select.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/sys/select.h" 30 # elif defined(__sun__) 31 # include "kernel/solaris/sys/select.h" 32 # elif defined(__Whitix__) 33 # include "kernel/whitix/sys/select.h" 26 34 # else 27 35 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/sys/shm.h
r195 r330 1 /* $Id: shm.h,v 1. 1 2008-10-16 21:08:17khorben Exp $ */1 /* $Id: shm.h,v 1.2 2009/02/19 21:33:56 khorben Exp $ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ … … 23 23 # if defined(__linux__) 24 24 # include "kernel/linux/sys/shm.h" 25 # elif defined(__FreeBSD__) 26 # include "kernel/freebsd/sys/shm.h" 25 27 # elif defined(__NetBSD__) 26 28 # include "kernel/netbsd/sys/shm.h" 29 # elif defined(__OpenBSD__) 30 # include "kernel/openbsd/sys/shm.h" 31 # elif defined(__sun__) 32 # include "kernel/solaris/sys/shm.h" 27 33 # else 28 34 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/sys/stat.h
r225 r330 1 /* $Id: stat.h,v 1. 5 2008-01-06 11:00:59khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: stat.h,v 1.7 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/sys/stat.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/sys/stat.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/sys/stat.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/sys/stat.h" 30 # elif defined(__sun__) 31 # include "kernel/solaris/sys/stat.h" 32 # elif defined(__Whitix__) 33 # include "kernel/whitix/sys/stat.h" 26 34 # else 27 35 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/sys/time.h
r225 r330 1 /* $Id: time.h,v 1. 4 2008-01-06 11:00:59khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: time.h,v 1.6 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/sys/time.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/sys/time.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/sys/time.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/sys/time.h" 30 # elif defined(__sun__) 31 # include "kernel/solaris/sys/time.h" 32 # elif defined(__Whitix__) 33 # include "kernel/whitix/sys/time.h" 26 34 # else 27 35 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/sys/times.h
r225 r330 1 /* $Id: times.h,v 1. 4 2008-01-06 11:00:59khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: times.h,v 1.6 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/sys/times.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/sys/times.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/sys/times.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/sys/times.h" 30 # elif defined(__sun__) 31 # include "kernel/solaris/sys/times.h" 32 # elif defined(__Whitix__) 33 # include "kernel/whitix/sys/times.h" 26 34 # else 27 35 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/sys/types.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: types.h,v 1.6 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/sys/types.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/sys/types.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/sys/types.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/sys/types.h" 30 # elif defined(__sun__) 31 # include "kernel/solaris/sys/types.h" 32 # elif defined(__Whitix__) 33 # include "kernel/whitix/sys/types.h" 26 34 # else 27 35 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/sys/utsname.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: utsname.h,v 1.7 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/sys/utsname.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/sys/utsname.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/sys/utsname.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/sys/utsname.h" 30 # elif defined(__sun__) 31 # include "kernel/solaris/sys/utsname.h" 32 # elif defined(__Whitix__) 33 # include "kernel/whitix/sys/utsname.h" 26 34 # else 27 35 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/termios.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: termios.h,v 1.7 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/termios.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/termios.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/termios.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/termios.h" 30 # elif defined(__Whitix__) 31 # include "kernel/whitix/termios.h" 26 32 # else 27 33 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/time.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: time.h,v 1.6 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/time.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/time.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/time.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/time.h" 30 # elif defined(__sun__) 31 # include "kernel/solaris/time.h" 32 # elif defined(__Whitix__) 33 # include "kernel/whitix/time.h" 26 34 # else 27 35 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/unistd.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: unistd.h,v 1.6 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/unistd.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/unistd.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/unistd.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/unistd.h" 30 # elif defined(__Whitix__) 31 # include "kernel/whitix/unistd.h" 26 32 # else 27 33 # warning Unsupported platform -
trunk/System/Sources/libc/include/compat/utmpx.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: utmpx.h,v 1.6 2009/02/19 21:33:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 22 22 # if defined(__linux__) 23 23 # include "kernel/linux/utmpx.h" 24 # elif defined(__FreeBSD__) 25 # include "kernel/freebsd/utmpx.h" 24 26 # elif defined(__NetBSD__) 25 27 # include "kernel/netbsd/utmpx.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/utmpx.h" 30 # elif defined(__Whitix__) 31 # include "kernel/whitix/utmpx.h" 26 32 # else 27 33 # warning Unsupported platform -
trunk/System/Sources/libc/include/dl/dlfcn.h
r313 r330 1 /* $Id: dlfcn.h,v 1. 3 2008/11/05 02:09:26khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: dlfcn.h,v 1.4 2009/02/19 20:59:20 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/kernel/linux/stropts.h
r225 r330 1 /* $Id: stropts.h,v 1. 1 2008/09/29 10:40:12khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: stropts.h,v 1.2 2009/02/19 20:57:16 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/kernel/linux/sys/ioctl.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: ioctl.h,v 1.4 2009/02/19 20:59:20 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/kernel/linux/sys/mman.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: mman.h,v 1.6 2009/02/19 21:02:00 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/kernel/linux/sys/mount.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: mount.h,v 1.2 2009/02/19 21:02:00 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/kernel/linux/sys/reboot.h
r225 r330 1 /* $Id: reboot.h,v 1. 1 2008/09/16 20:02:59khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: reboot.h,v 1.2 2009/02/19 21:02:00 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/kernel/linux/sys/select.h
r204 r330 1 /* $Id: select.h,v 1. 3 2007/08/07 00:52:50 khorben Exp $ */1 /* $Id: select.h,v 1.4 2009/02/19 21:21:10 khorben Exp $ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ -
trunk/System/Sources/libc/include/kernel/linux/sys/stat.h
r234 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: stat.h,v 1.8 2009/02/19 21:02:00 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/kernel/linux/sys/time.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: time.h,v 1.6 2009/02/19 21:02:00 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/kernel/linux/sys/times.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: times.h,v 1.4 2009/02/19 21:02:00 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/kernel/linux/sys/types.h
r225 r330 1 /* $Id: types.h,v 1. 6 2008/10/27 14:43:05khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: types.h,v 1.7 2009/02/19 21:02:00 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/kernel/linux/sys/utsname.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: utsname.h,v 1.3 2009/02/19 21:02:00 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/kernel/netbsd/errno.h
r209 r330 1 /* $Id: errno.h,v 1.1 1 2008-10-16 21:54:54khorben Exp $ */1 /* $Id: errno.h,v 1.12 2008-11-01 03:06:49 khorben Exp $ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ -
trunk/System/Sources/libc/include/kernel/netbsd/signal.h
r250 r330 1 /* $Id: signal.h,v 1.9 2008 /11/01 14:37:53 khorben Exp $ */1 /* $Id: signal.h,v 1.9 2008-11-01 14:37:53 khorben Exp $ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ -
trunk/System/Sources/libc/include/kernel/netbsd/termios.h
r208 r330 1 /* $Id: termios.h,v 1. 2 2007-06-13 23:13:53khorben Exp $ */2 /* Copyright (c) 200 7Pierre Pronchery <khorben@defora.org> */1 /* $Id: termios.h,v 1.4 2009/02/19 21:03:28 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 /* libc is not free software; you can redistribute it and/or modify it under5 * the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 3.06 * Unported as published by the Creative Commons organization.4 /* This program is free software: you can redistribute it and/or modify 5 * it under the terms of the GNU General Public License as published by 6 * the Free Software Foundation, version 3 of the License. 7 7 * 8 * libc is distributed in the hope that it will be useful, but WITHOUT ANY9 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR10 * A PARTICULAR PURPOSE. See the Creative Commons Attribution-NonCommercial-11 * ShareAlike 3.0 Unported license for more details.8 * This program is distributed in the hope that it will be useful, 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 * GNU General Public License for more details. 12 12 * 13 * You should have received a copy of the Creative Commons Attribution- 14 * NonCommercial-ShareAlike 3.0 along with libc; if not, browse to 15 * http://creativecommons.org/licenses/by-nc-sa/3.0/ */ 13 * You should have received a copy of the GNU General Public License 14 * along with this program. If not, see <http://www.gnu.org/licenses/>. */ 16 15 17 16 -
trunk/System/Sources/libc/include/limits.h
r251 r330 1 /* $Id: limits.h,v 1.1 4 2008/11/01 14:58:29khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: limits.h,v 1.15 2009/02/19 20:51:20 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/math/math.h
r225 r330 1 /* $Id: math.h,v 1. 4 2008-10-28 15:17:31khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: math.h,v 1.5 2009/02/19 21:04:22 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/net/if.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: if.h,v 1.2 2009/02/19 21:06:35 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/pthread/pthread.h
r284 r330 1 /* $Id $ */1 /* $Id: pthread.h,v 1.1 2009/02/19 20:45:34 khorben Exp $ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ -
trunk/System/Sources/libc/include/pwd.h
r225 r330 1 /* $Id: pwd.h,v 1. 8 2008/09/06 16:50:32khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: pwd.h,v 1.9 2009/02/19 20:51:20 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/socket/arpa/inet.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: inet.h,v 1.3 2009/02/19 21:08:08 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/socket/compat/netinet/in.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: in.h,v 1.3 2009/02/19 21:08:42 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/socket/compat/sys/socket.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: socket.h,v 1.3 2009/02/19 21:20:01 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/socket/kernel/linux/netinet/in.h
r284 r330 1 /* $Id: in.h,v 1. 2 2008/11/01 03:11:39khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: in.h,v 1.3 2009/02/19 21:19:31 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 25 25 typedef uint32_t in_addr_t; 26 26 # endif 27 27 28 # ifndef in_port_t 28 29 # define in_port_t in_port_t 29 30 typedef uint16_t in_port_t; 30 31 #endif 32 31 33 # ifndef in_addr 32 34 # define in_addr in_addr … … 36 38 }; 37 39 # endif 40 38 41 # ifndef sockaddr_in 39 42 # define sockaddr_in sockaddr_in -
trunk/System/Sources/libc/include/socket/kernel/linux/sys/socket.h
r225 r330 1 /* $Id: socket.h,v 1. 2 2008-10-28 15:18:05khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: socket.h,v 1.3 2009/02/19 21:34:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/socket/kernel/netbsd/sys/un.h
r315 r330 1 /* $Id: un.h,v 1.3 2009 /01/07 15:06:42 khorben Exp $ */1 /* $Id: un.h,v 1.3 2009-01-07 15:06:42 khorben Exp $ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ -
trunk/System/Sources/libc/include/socket/netinet/tcp.h
r225 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: tcp.h,v 1.2 2009/02/19 21:18:23 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/stdio.h
r225 r330 1 /* $Id: stdio.h,v 1.3 2 2008/10/20 12:23:58khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: stdio.h,v 1.34 2009/02/19 21:15:30 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/stdlib.h
r225 r330 1 /* $Id: stdlib.h,v 1. 19 2008-10-28 17:48:06 khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: stdlib.h,v 1.20 2009/02/19 21:24:36 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/string.h
r267 r330 1 /* $Id: string.h,v 1.1 1 2008-10-28 02:09:26khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: string.h,v 1.13 2009/02/19 21:26:32 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 41 41 int strncmp(char const * s1, char const * s2, size_t n); 42 42 char * strncpy(char * dest, char const * src, size_t n); 43 size_t strnlen(char const * s, size_t max); 43 44 char * strpbrk(char const * s1, char const * s2); 44 45 char * strrchr(char const * s, int c); -
trunk/System/Sources/libc/include/sys/ipc.h
r203 r330 1 /* $Id: ipc.h,v 1.3 2008 /10/28 17:47:52 khorben Exp $ */1 /* $Id: ipc.h,v 1.3 2008-10-28 17:47:52 khorben Exp $ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ -
trunk/System/Sources/libc/include/sys/types.h
r284 r330 1 /* $Id: types.h,v 1.1 7 2008/10/31 19:16:37 khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: types.h,v 1.18 2009/02/19 21:10:07 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/syslog.h
r231 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: syslog.h,v 1.2 2009/02/19 20:52:53 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/time.h
r284 r330 1 /* $Id: time.h,v 1.1 3 2008/11/01 02:59:25khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: time.h,v 1.14 2009/02/19 20:53:27 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/include/unistd.h
r284 r330 1 /* $Id: unistd.h,v 1.3 0 2008/10/31 19:10:53khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: unistd.h,v 1.31 2009-01-12 01:59:57 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 85 85 int execvp(char const * filename, char * const argv[]); 86 86 void _exit(int status); 87 int fchdir(int fildes); 87 88 int fchown(int fildes, uid_t uid, gid_t gid); 88 int fchdir(int fildes);89 89 pid_t fork(void); 90 90 int fsync(int fildes); -
trunk/System/Sources/libc/src/Makefile
r290 r330 28 28 libc_OBJS = ctype.lo dirent.lo errno.lo fcntl.lo float.lo fnmatch.lo grp.lo iconv.lo langinfo.lo libgen.lo locale.lo poll.lo pwd.lo search.lo setjmp.lo signal.lo stdlib.lo stdio.lo string.lo strings.lo stropts.lo sys/ipc.lo sys/mman.lo sys/mount.lo sys/reboot.lo sys/resource.lo sys/select.lo sys/shm.lo sys/stat.lo sys/statvfs.lo sys/time.lo sys/times.lo sys/utsname.lo sys/wait.lo syscalls.lo syslog.lo termios.lo time.lo unistd.lo utime.lo utmpx.lo 29 29 libc_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) 30 libc_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) 30 31 libc_ASFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(ASFLAGS) 31 32 -
trunk/System/Sources/libc/src/ctype.c
r283 r330 1 /* $Id: ctype.c,v 1. 4 2008/09/27 10:14:11khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: ctype.c,v 1.5 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/dirent.c
r206 r330 1 /* $Id: dirent.c,v 1.20 2008 /10/28 18:54:54 khorben Exp $ */1 /* $Id: dirent.c,v 1.20 2008-10-28 18:54:54 khorben Exp $ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ -
trunk/System/Sources/libc/src/dl/Makefile
r246 r330 22 22 libdl_OBJS = dlfcn.lo 23 23 libdl_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) 24 libdl_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) 24 25 25 26 libdl.la: $(libdl_OBJS) -
trunk/System/Sources/libc/src/dl/dlfcn.c
r228 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: dlfcn.c,v 1.6 2009/02/19 21:51:12 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/errno.c
r284 r330 1 /* $Id: errno.c,v 1. 5 2008/07/22 20:54:04khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: errno.c,v 1.6 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/float.c
r228 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: float.c,v 1.2 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/fnmatch.c
r228 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: fnmatch.c,v 1.2 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/grp.c
r228 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: grp.c,v 1.8 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/kernel/linux/Makefile
r27 r330 1 SUBDIRS = arm i386 1 SUBDIRS = arm i386 sparc 2 2 3 3 -
trunk/System/Sources/libc/src/kernel/linux/arm/start.S
r200 r330 1 /* $Id: start.S,v 1. 5 2008/10/27 13:00:09khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */3 /* This file is part of RunningBearSystem libc */1 /* $Id: start.S,v 1.6 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify 5 5 * it under the terms of the GNU General Public License as published by -
trunk/System/Sources/libc/src/kernel/linux/arm/syscalls.S
r200 r330 1 /* $Id: syscalls.S,v 1. 6 2008/10/27 13:00:09khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */3 /* This file is part of RunningBearSystem libc */1 /* $Id: syscalls.S,v 1.7 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify 5 5 * it under the terms of the GNU General Public License as published by … … 48 48 #undef SYS_brk 49 49 50 50 51 /* _exit */ 51 52 .global _exit … … 54 55 ldr %r7, =SYS_exit 55 56 b _syscall 57 58 59 /* FIXME mount needs to be implemented too (wrong order of arguments) */ -
trunk/System/Sources/libc/src/kernel/linux/common.h
r284 r330 1 /* $Id: common.h,v 1.2 8 2008/11/01 03:16:55khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: common.h,v 1.29 2009/02/19 21:52:58 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/kernel/linux/i386/start.S
r24 r330 1 /* $Id: start.S,v 1. 5 2007/06/13 23:08:15khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */3 /* This file is part of RunningBearSystem libc */1 /* $Id: start.S,v 1.6 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify 5 5 * it under the terms of the GNU General Public License as published by -
trunk/System/Sources/libc/src/kernel/linux/i386/syscalls.S
r229 r330 1 /* $Id: syscalls.S,v 1.1 2 2008/10/31 19:05:52khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: syscalls.S,v 1.13 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/kernel/netbsd/Makefile
r190 r330 1 SUBDIRS = amd64 i386 1 SUBDIRS = amd64 i386 sparc sparc64 2 2 3 3 -
trunk/System/Sources/libc/src/kernel/netbsd/amd64/start.S
r76 r330 1 /* $Id: start.S,v 1. 7 2008-09-10 09:58:08khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */3 /* This file is part of RunningBearSystem libc */1 /* $Id: start.S,v 1.8 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify 5 5 * it under the terms of the GNU General Public License as published by -
trunk/System/Sources/libc/src/kernel/netbsd/amd64/syscalls.S
r284 r330 1 /* $Id: syscalls.S,v 1. 5 2008-07-21 00:21:07khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: syscalls.S,v 1.6 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/kernel/netbsd/common.S
r75 r330 1 /* $Id: common.S,v 1. 2 2007-06-13 23:08:15khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */3 /* This file is part of RunningBearSystem libc */1 /* $Id: common.S,v 1.3 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify 5 5 * it under the terms of the GNU General Public License as published by -
trunk/System/Sources/libc/src/kernel/netbsd/common.h
r243 r330 1 /* $Id: common.h,v 1.3 5 2008-10-28 12:51:26 khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: common.h,v 1.36 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of RunningBear System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/kernel/netbsd/start.S
r77 r330 1 /* $Id: start.S,v 1. 2 2007-06-13 23:08:15khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */3 /* This file is part of RunningBearSystem libc */1 /* $Id: start.S,v 1.3 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify 5 5 * it under the terms of the GNU General Public License as published by -
trunk/System/Sources/libc/src/kernel/netbsd/sys/sysctl.h
r79 r330 1 /* $Id: sysctl.h,v 1. 6 2008-09-06 17:43:25khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: sysctl.h,v 1.7 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of RunningBear System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/langinfo.c
r228 r330 1 /* $Id: langinfo.c,v 1. 2 2008/09/29 14:59:57khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: langinfo.c,v 1.3 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/libgen.c
r228 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: libgen.c,v 1.4 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/locale.c
r228 r330 1 /* $Id: locale.c,v 1. 2 2008/09/29 13:08:19khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: locale.c,v 1.3 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/math/Makefile
r265 r330 26 26 libm_ASFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(ASFLAGS) 27 27 libm_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) 28 libm_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) 28 29 29 30 libm.la: $(libm_OBJS) -
trunk/System/Sources/libc/src/math/i386/math.S
r202 r330 1 1 /* $Id$ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 /* This file is part of RunningBearSystem libc */3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify 5 5 * it under the terms of the GNU General Public License as published by -
trunk/System/Sources/libc/src/math/math.c
r228 r330 1 /* $Id: math.c,v 1. 1 2008/10/03 22:08:40 khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: math.c,v 1.2 2009/02/19 21:54:10 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/poll.c
r228 r330 1 /* $Id: poll.c,v 1. 1 2008/06/22 17:06:32khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: poll.c,v 1.2 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/pthread/Makefile
r284 r330 26 26 $(LIBTOOL) --mode=link $(CC) -Xcompiler -nostdlib -o libpthread.la $(libpthread_OBJS) -rpath $(LIBDIR) 27 27 28 pthread.o pthread.lo: ../../include/pthread/pthread.h28 pthread.o pthread.lo: pthread.c ../../include/pthread/pthread.h 29 29 $(LIBTOOL) --mode=compile $(CC) $(libpthread_CFLAGS) -c pthread.c 30 30 -
trunk/System/Sources/libc/src/pthread/pthread.c
r284 r330 21 21 22 22 23 /* pthread_attr_destroy */ 24 int pthread_attr_destroy(pthread_attr_t * attr) 25 { 26 /* FIXME implement */ 27 errno = ENOSYS; 28 return -1; 29 } 30 31 32 /* pthread_attr_getdetachstate */ 33 int pthread_attr_getdetachstate(const pthread_attr_t * attr, int * state) 34 { 35 /* FIXME implement */ 36 errno = ENOSYS; 37 return -1; 38 } 39 40 41 /* pthread_attr_init */ 42 int pthread_attr_init(pthread_attr_t * attr) 43 { 44 /* FIXME implement */ 45 errno = ENOSYS; 46 return -1; 47 } 48 49 50 /* pthread_attr_setdetachstate */ 51 int pthread_attr_setdetachstate(pthread_attr_t * attr, int state) 52 { 53 /* FIXME implement */ 54 errno = ENOSYS; 55 return -1; 56 } 57 58 59 /* pthread_cancel */ 60 int pthread_cancel(pthread_t thread) 61 { 62 /* FIXME implement */ 63 errno = ENOSYS; 64 return -1; 65 } 66 67 68 /* pthread_cond_broadcast */ 69 int pthread_cond_broadcast(pthread_cond_t * cond) 70 { 71 /* FIXME implement */ 72 errno = ENOSYS; 73 return -1; 74 } 75 76 77 /* pthread_cond_destroy */ 78 int pthread_cond_destroy(pthread_cond_t * cond) 79 { 80 /* FIXME implement */ 81 errno = ENOSYS; 82 return -1; 83 } 84 85 86 /* pthread_cond_init */ 87 int pthread_cond_init(pthread_cond_t * cond, const pthread_condattr_t * attr) 88 { 89 /* FIXME implement */ 90 errno = ENOSYS; 91 return -1; 92 } 93 94 95 /* pthread_cond_signal */ 96 int pthread_cond_signal(pthread_cond_t * cond) 97 { 98 /* FIXME implement */ 99 errno = ENOSYS; 100 return -1; 101 } 102 103 104 /* pthread_cond_timedwait */ 105 int pthread_cond_timedwait(pthread_cond_t * cond, 106 pthread_mutex_t * mutex, const struct timespec * ts) 107 { 108 /* FIXME implement */ 109 errno = ENOSYS; 110 return -1; 111 } 112 113 114 /* pthread_cond_wait */ 115 int pthread_cond_wait(pthread_cond_t * cond, pthread_mutex_t * mutex) 116 { 117 /* FIXME implement */ 118 errno = ENOSYS; 119 return -1; 120 } 121 122 123 /* pthread_create */ 23 124 int pthread_create(pthread_t * thread, const pthread_attr_t * attr, 24 125 void *(*start)(void *), void * arg) … … 30 131 31 132 32 int pthread_cancel(pthread_t thread) 33 { 34 /* FIXME implement */ 35 errno = ENOSYS; 36 return -1; 37 } 38 39 133 /* pthread_exit */ 134 void pthread_exit(void * value) 135 { 136 /* FIXME implement */ 137 } 138 139 140 /* pthread_join */ 141 int pthread_join(pthread_t thread, void ** value) 142 { 143 /* FIXME implement */ 144 errno = ENOSYS; 145 return -1; 146 } 147 148 149 /* pthread_mutex_destroy */ 150 int pthread_mutex_destroy(pthread_mutex_t * mutex) 151 { 152 /* FIXME implement */ 153 errno = ENOSYS; 154 return -1; 155 } 156 157 158 /* pthread_mutex_init */ 159 int pthread_mutex_init(pthread_mutex_t * mutex, 160 const pthread_mutexattr_t * attr) 161 { 162 /* FIXME implement */ 163 errno = ENOSYS; 164 return -1; 165 } 166 167 168 /* pthread_mutex_lock */ 169 int pthread_mutex_lock(pthread_mutex_t * mutex) 170 { 171 /* FIXME implement */ 172 errno = ENOSYS; 173 return -1; 174 } 175 176 177 /* pthread_mutex_trylock */ 40 178 int pthread_mutex_trylock(pthread_mutex_t * mutex) 41 179 { … … 46 184 47 185 48 int pthread_join(pthread_t thread, void ** value) 49 { 50 /* FIXME implement */ 51 errno = ENOSYS; 52 return -1; 53 } 186 /* pthread_mutex_unlock */ 187 int pthread_mutex_unlock(pthread_mutex_t * mutex) 188 { 189 /* FIXME implement */ 190 errno = ENOSYS; 191 return -1; 192 } 193 194 195 /* pthread_self */ 196 pthread_t pthread_self(void) 197 { 198 /* FIXME implement */ 199 errno = ENOSYS; 200 return -1; 201 } -
trunk/System/Sources/libc/src/signal.c
r228 r330 1 /* $Id: signal.c,v 1.1 4 2008/10/22 17:11:59khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: signal.c,v 1.15 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/socket/Makefile
r248 r330 28 28 libsocket_OBJS = arpa/inet.lo netdb.lo sys/socket.lo syscalls.lo 29 29 libsocket_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS) 30 libsocket_LDFLAGS = $(LDFLAGSF) $(LDFLAGS) 30 31 libsocket_ASFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(ASFLAGS) 31 32 -
trunk/System/Sources/libc/src/socket/arpa/inet.c
r228 r330 1 /* $Id: inet.c,v 1. 1 2008/06/19 23:42:01khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: inet.c,v 1.2 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/socket/kernel/linux/arm/syscalls.S
r44 r330 1 /* $Id: syscalls.S,v 1. 1 2008/08/23 04:09:21khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */3 /* This file is part of RunningBearSystem libc */1 /* $Id: syscalls.S,v 1.2 2009/02/19 21:55:37 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify 5 5 * it under the terms of the GNU General Public License as published by -
trunk/System/Sources/libc/src/socket/kernel/linux/common.h
r268 r330 1 /* $Id: common.h,v 1. 3 2008/08/22 00:20:28khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: common.h,v 1.4 2009/02/19 21:54:56 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of RunningBear System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/socket/kernel/netbsd/Makefile
r191 r330 1 SUBDIRS = amd64 i386 1 SUBDIRS = amd64 i386 sparc 2 2 3 3 -
trunk/System/Sources/libc/src/socket/kernel/netbsd/amd64/syscalls.S
r282 r330 1 /* $Id: syscalls.S,v 1. 1 2008/06/25 23:59:40khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: syscalls.S,v 1.2 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/socket/kernel/netbsd/common.h
r269 r330 1 /* $Id: common.h,v 1. 4 2008/11/01 03:30:06 khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: common.h,v 1.5 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/socket/kernel/netbsd/i386/syscalls.S
r200 r330 1 /* $Id: syscalls.S,v 1.1 2008 /10/22 16:22:08 khorben Exp $ */1 /* $Id: syscalls.S,v 1.1 2008-10-22 16:22:08 khorben Exp $ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ -
trunk/System/Sources/libc/src/socket/sys/socket.c
r228 r330 1 /* $Id: socket.c,v 1. 5 2008/10/22 16:45:14khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: socket.c,v 1.6 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/socket/syscalls.S
r284 r330 37 37 # elif defined(__i386__) 38 38 # include "kernel/netbsd/i386/syscalls.S" 39 # elif defined(__sparc__) 40 # include "kernel/netbsd/sparc/syscalls.S" 39 41 # else 40 42 # warning Unsupported NetBSD architecture -
trunk/System/Sources/libc/src/socket/syscalls.h
r80 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: syscalls.h,v 1.5 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of RunningBear System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/start.S
r199 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */3 /* This file is part of RunningBearSystem libc */1 /* $Id: start.S,v 1.23 2009/02/19 21:48:10 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify 5 5 * it under the terms of the GNU General Public License as published by … … 29 29 # elif defined(__i386__) 30 30 # include "kernel/linux/i386/start.S" 31 # else /* !__arm__ && !__i386__ */ 31 # elif defined(__sparc__) 32 # include "kernel/linux/sparc/start.S" 33 # else /* !__arm__ && !__i386__ && !__sparc__ */ 32 34 # warning Unsupported Linux architecture 35 # endif 36 37 /* FreeBSD */ 38 #elif defined(__FreeBSD__) 39 # if defined(__i386__) 40 # include "kernel/freebsd/i386/start.S" 41 # else /* !__i386__ */ 42 # warning Unsupported FreeBSD architecture 33 43 # endif 34 44 … … 39 49 # elif defined(__i386__) 40 50 # include "kernel/netbsd/i386/start.S" 41 # else /* !__amd64__ || !__i386__ */ 51 # elif defined(__sparc64__) 52 # include "kernel/netbsd/sparc64/start.S" 53 # elif defined(__sparc__) 54 # include "kernel/netbsd/sparc/start.S" 55 # else /* !__amd64__ && !__i386__ && !__sparc__ && !__sparc64__ */ 42 56 # warning Unsupported NetBSD architecture 43 57 # endif 44 58 # include "kernel/netbsd/start.S" 59 60 /* OpenBSD */ 61 #elif defined(__OpenBSD__) 62 # if defined(__arm__) 63 # include "kernel/openbsd/arm/start.S" 64 # elif defined(__i386__) 65 # include "kernel/openbsd/i386/start.S" 66 # else /* !__arm__ && !__i386__ */ 67 # warning Unsupported OpenBSD architecture 68 # endif 69 70 /* Solaris */ 71 #elif defined(__sun__) 72 # if defined(__sparc__) 73 # include "kernel/solaris/sparc/start.S" 74 # else 75 # warning Unsupported Solaris architecture 76 # endif 77 78 /* Whitix */ 79 #elif defined(__Whitix__) 80 # if defined(__i386__) 81 # include "kernel/whitix/i386/start.S" 82 # else 83 # warning Unsupported Whitix architecture 84 # endif 45 85 46 86 /* Unknown */ -
trunk/System/Sources/libc/src/stdio.c
r287 r330 1 1 /* $Id: stdio.c,v 1.75 2008/10/22 14:19:14 khorben Exp $ */ 2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/stdlib.c
r247 r330 1 /* $Id: stdlib.c,v 1.4 6 2008/10/16 22:53:37khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: stdlib.c,v 1.47 2009/02/19 21:24:36 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/string.c
r267 r330 1 /* $Id: string.c,v 1.2 6 2008/10/28 02:09:26khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: string.c,v 1.29 2009/02/19 21:25:39 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 309 309 310 310 311 /* strnlen */ 312 size_t strnlen(char const * s, size_t max) 313 { 314 size_t len = 0; 315 316 while(*(s++) && len < max) 317 len++; 318 return len; 319 } 320 321 311 322 /* strpbrk */ 312 323 char * strpbrk(char const * s1, char const * s2) -
trunk/System/Sources/libc/src/strings.c
r228 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: strings.c,v 1.3 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/stropts.c
r228 r330 1 /* $Id: stropts.c,v 1. 3 2008/10/20 13:08:08khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: stropts.c,v 1.4 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/sys/ioctl.c
r228 r330 1 /* $Id: ioctl.c,v 1. 3 2007/06/13 23:09:10khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: ioctl.c,v 1.4 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/sys/mman.c
r228 r330 1 /* $Id: mman.c,v 1. 8 2007/11/16 23:07:07khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: mman.c,v 1.9 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/sys/mount.c
r228 r330 1 /* $Id: mount.c,v 1. 3 2008/08/14 03:08:39khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: mount.c,v 1.4 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/sys/reboot.c
r228 r330 1 /* $Id: reboot.c,v 1. 1 2007/10/14 01:28:48khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: reboot.c,v 1.2 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/sys/resource.c
r228 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: resource.c,v 1.4 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/sys/select.c
r229 r330 1 /* $Id: select.c,v 1. 6 2008/10/31 18:35:46 khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: select.c,v 1.7 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/sys/stat.c
r228 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: stat.c,v 1.19 2009/02/19 21:56:19 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 24 24 #ifndef SYS_chmod 25 25 # warning Unsupported platform: chmod() is missing 26 int chmod(char const * name, mode_t mode) 27 { 28 errno = ENOSYS; 29 return -1; 30 } 26 31 #endif 27 32 … … 30 35 #ifndef SYS_fchmod 31 36 # warning Unsupported platform: fchmod() is missing 37 int fchmod(int fildes, mode_t mode) 38 { 39 errno = ENOSYS; 40 return -1; 41 } 32 42 #endif 33 43 … … 36 46 #ifndef SYS_fstat 37 47 # warning Unsupported platform: fstat() is missing 48 int fstat(int fildes, struct stat * st) 49 { 50 errno = ENOSYS; 51 return -1; 52 } 38 53 #endif 39 54 … … 53 68 #ifndef SYS_mkdir 54 69 # warning Unsupported platform: mkdir() is missing 70 int mkdir(char const * name, mode_t mode) 71 { 72 errno = ENOSYS; 73 return -1; 74 } 55 75 #endif 56 76 -
trunk/System/Sources/libc/src/sys/time.c
r284 r330 1 /* $Id: time.c,v 1. 5 2007/06/13 23:08:15khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: time.c,v 1.7 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 24 24 #ifndef SYS_gettimeofday 25 25 # warning Unsupported platform: gettimeofday() is missing 26 # include "errno.h" 27 int gettimeofday(struct timeval * tv, void * null) 28 { 29 errno = ENOSYS; 30 return -1; 31 } 26 32 #endif 27 33 -
trunk/System/Sources/libc/src/sys/times.c
r284 r330 1 /* $Id: times.c,v 1. 7 2007/11/20 01:15:47khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: times.c,v 1.8 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/sys/utsname.c
r284 r330 1 /* $Id: utsname.c,v 1. 9 2008/07/21 18:52:12khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: utsname.c,v 1.10 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/sys/wait.c
r284 r330 1 /* $Id: wait.c,v 1.1 0 2008/08/28 17:33:40khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: wait.c,v 1.12 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 30 30 31 31 /* waitpid */ 32 #if !defined(SYS_waitpid) && defined(SYS_wait4) 33 # include "stdlib.h" 32 #if !defined(SYS_waitpid) 33 # if defined(SYS_wait4) 34 # include "stdlib.h" 34 35 pid_t wait4(pid_t pid, int * status, int options, void * rusage); 35 36 … … 38 39 return wait4(pid, status, options, NULL); 39 40 } 41 # else 42 # warning Unsupported platform: waitpid() is missing 43 # include "errno.h" 44 pid_t waitpid(pid_t pid, int * status, int options) 45 { 46 errno = ENOSYS; 47 return -1; 48 } 49 # endif 40 50 #endif -
trunk/System/Sources/libc/src/syscalls.S
r318 r330 1 /* $Id: syscalls.S,v 1. 57 2008/11/01 03:16:55khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: syscalls.S,v 1.60 2009/02/19 21:50:09 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 30 30 # endif 31 31 32 /* FreeBSD */ 33 #elif defined(__FreeBSD__) 34 # include "kernel/freebsd/common.h" 35 # if defined(__i386__) 36 # include "kernel/freebsd/i386/syscalls.S" 37 # else 38 # warning Unsupported FreeBSD architecture 39 # endif 40 32 41 /* NetBSD */ 33 42 #elif defined(__NetBSD__) … … 37 46 # elif defined(__i386__) 38 47 # include "kernel/netbsd/i386/syscalls.S" 39 # else /* !__amd64__ && !__i386__ */ 48 # elif defined(__sparc64__) 49 # include "kernel/netbsd/sparc64/syscalls.S" 50 # elif defined(__sparc__) 51 # include "kernel/netbsd/sparc/syscalls.S" 52 # else /* !__amd64__ && !__i386__ && !__sparc__ && !__sparc64__ */ 40 53 # warning Unsupported NetBSD architecture 41 54 # define SYSCALL(name) 42 55 # endif 43 56 # include "kernel/netbsd/common.S" 57 58 /* OpenBSD */ 59 #elif defined(__OpenBSD__) 60 # include "kernel/openbsd/common.h" 61 # if defined(__arm__) 62 # include "kernel/openbsd/arm/syscalls.S" 63 # elif defined(__i386__) 64 # include "kernel/openbsd/i386/syscalls.S" 65 # else /* !__arm__ && !__i386__ */ 66 # warning Unsupported OpenBSD architecture 67 # endif 68 69 /* Solaris */ 70 #elif defined(__sun__) 71 # include "kernel/solaris/common.h" 72 # if defined(__sparc__) 73 # include "kernel/solaris/sparc/syscalls.S" 74 # else 75 # warning Unsupported Solaris architecture 76 # endif 77 78 /* Whitix */ 79 #elif defined(__Whitix__) 80 # include "kernel/whitix/common.h" 81 # if defined(__i386__) 82 # include "kernel/whitix/i386/syscalls.S" 83 # else 84 # warning Unsupported Whitix architecture 85 # endif 44 86 45 87 /* Unknown */ … … 67 109 SYSCALL(creat) 68 110 #endif 111 #ifdef SYS_fcntl 69 112 SYSCALL(fcntl) 113 #endif 70 114 SYSCALL(open) 71 115 … … 76 120 77 121 /* signal.h */ 122 #ifdef SYS_kill 78 123 SYSCALL(kill) 124 #endif 79 125 #ifdef SYS_signal 80 126 SYSCALL(signal) … … 88 134 89 135 /* stdio.h */ 136 #ifdef SYS_rename 90 137 SYSCALL(rename) 138 #endif 91 139 92 140 /* stropts.h */ 141 #ifdef SYS_ioctl 93 142 SYSCALL(ioctl) 143 #endif 94 144 95 145 /* sys/mman.h */ … … 106 156 SYSCALL(munlock) 107 157 #endif 158 #ifdef SYS_munmap 108 159 SYSCALL(munmap) 160 #endif 109 161 110 162 /* sys/mount.h */ … … 122 174 123 175 /* sys/resource.h */ 176 #ifdef SYS_getpriority 124 177 SYSCALL(getpriority) 178 #endif 179 #ifdef SYS_getrlimit 125 180 SYSCALL(getrlimit) 181 #endif 182 #ifdef SYS_getrusage 126 183 SYSCALL(getrusage) 184 #endif 185 #ifdef SYS_setpriority 127 186 SYSCALL(setpriority) 187 #endif 188 #ifdef SYS_setrlimit 128 189 SYSCALL(setrlimit) 190 #endif 129 191 130 192 /* sys/select.h */ … … 142 204 143 205 /* sys/stat.h */ 206 #ifdef SYS_chmod 144 207 SYSCALL(chmod) 208 #endif 209 #ifdef SYS_fchmod 145 210 SYSCALL(fchmod) 211 #endif 212 #ifdef SYS_fstat 146 213 SYSCALL(fstat) 214 #endif 215 #ifdef SYS_lstat 147 216 SYSCALL(lstat) 217 #endif 218 #ifdef SYS_mkdir 148 219 SYSCALL(mkdir) 220 #endif 149 221 #ifdef SYS_mkfifo 150 222 SYSCALL(mkfifo) 151 223 #endif 224 #ifdef SYS_mknod 152 225 SYSCALL(mknod) 226 #endif 227 #ifdef SYS_stat 153 228 SYSCALL(stat) 229 #endif 230 #ifdef SYS_umask 154 231 SYSCALL(umask) 232 #endif 155 233 156 234 /* sys/statvfs.h */ … … 163 241 164 242 /* sys/time.h */ 243 #ifdef SYS_gettimeofday 165 244 SYSCALL(gettimeofday) 245 #endif 166 246 #ifdef SYS_utimes 167 247 SYSCALL(utimes) … … 189 269 190 270 /* time.h */ 271 #ifdef SYS_nanosleep 191 272 SYSCALL(nanosleep) 273 #endif 192 274 193 275 /* unistd.h */ 276 #ifdef SYS_access 194 277 SYSCALL(access) 278 #endif 195 279 #ifdef SYS_alarm 196 280 SYSCALL(alarm) … … 199 283 SYSCALL(brk) 200 284 #endif 285 #ifdef SYS_chdir 201 286 SYSCALL(chdir) 287 #endif 288 #ifdef SYS_chown 202 289 SYSCALL(chown) 290 #endif 291 #ifdef SYS_close 203 292 SYSCALL(close) 293 #endif 294 #ifdef SYS_dup 204 295 SYSCALL(dup) 296 #endif 205 297 #ifdef SYS_dup2 206 298 SYSCALL(dup2) … … 209 301 SYSCALL(execve) 210 302 #endif 303 #ifdef SYS_fchdir 211 304 SYSCALL(fchdir) 305 #endif 306 #ifdef SYS_fchown 212 307 SYSCALL(fchown) 308 #endif 309 #ifdef SYS_fork 213 310 SYSCALL(fork) 311 #endif 214 312 #ifdef SYS_fsync 215 313 SYSCALL(fsync) … … 222 320 SYSCALL(geteuid) 223 321 #endif 322 #ifdef SYS_getgid 224 323 SYSCALL(getgid) 324 #endif 225 325 #ifdef SYS_getlogin_r 226 326 SYSCALL(getlogin_r) 227 327 #endif 328 #ifdef SYS_getpid 228 329 SYSCALL(getpid) 330 #endif 229 331 #ifdef SYS_getppid 230 332 SYSCALL(getppid) 231 333 #endif 334 #ifdef SYS_getuid 232 335 SYSCALL(getuid) 336 #endif 337 #ifdef SYS_lchown 233 338 SYSCALL(lchown) 339 #endif 340 #ifdef SYS_link 234 341 SYSCALL(link) 342 #endif 235 343 #ifdef SYS_lseek 236 344 SYSCALL(lseek) … … 239 347 SYSCALL(nice) 240 348 #endif 349 #ifdef SYS_pipe 241 350 SYSCALL(pipe) 351 #endif 352 #ifdef SYS_read 242 353 SYSCALL(read) 354 #endif 355 #ifdef SYS_readlink 243 356 SYSCALL(readlink) 357 #endif 358 #ifdef SYS_rmdir 244 359 SYSCALL(rmdir) 360 #endif 245 361 #ifdef SYS_sbrk 246 362 SYSCALL(sbrk) 247 363 #endif 364 #ifdef SYS_setgid 248 365 SYSCALL(setgid) 366 #endif 249 367 #ifdef SYS_setpgid 250 368 SYSCALL(setpgid) 251 369 #endif 370 #ifdef SYS_setregid 252 371 SYSCALL(setregid) 372 #endif 373 #ifdef SYS_setreuid 253 374 SYSCALL(setreuid) 375 #endif 254 376 #ifdef SYS_setsid 255 377 SYSCALL(setsid) 256 378 #endif 379 #ifdef SYS_setuid 257 380 SYSCALL(setuid) 381 #endif 382 #ifdef SYS_symlink 258 383 SYSCALL(symlink) 384 #endif 385 #ifdef SYS_sync 259 386 SYSCALL(sync) 387 #endif 388 #ifdef SYS_unlink 260 389 SYSCALL(unlink) 390 #endif 391 #ifdef SYS_vfork 261 392 SYSCALL(vfork) 393 #endif 394 #ifdef SYS_write 262 395 SYSCALL(write) 396 #endif 263 397 264 398 /* utime.h */ -
trunk/System/Sources/libc/src/syscalls.h
r64 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */3 /* This file is part of RunningBearSystem libc */1 /* $Id: syscalls.h,v 1.32 2009/02/19 21:50:09 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify 5 5 * it under the terms of the GNU General Public License as published by … … 21 21 # if defined(__linux__) 22 22 # include "kernel/linux/common.h" 23 # elif defined(__FreeBSD__) 24 # include "kernel/freebsd/common.h" 23 25 # elif defined(__NetBSD__) 24 26 # include "kernel/netbsd/common.h" 27 # include "kernel/netbsd/sys/sysctl.h" 28 # elif defined(__OpenBSD__) 29 # include "kernel/openbsd/common.h" 30 # elif defined(__sun__) 31 # include "kernel/solaris/common.h" 32 # elif defined(__Whitix__) 33 # include "kernel/whitix/common.h" 25 34 # else 26 35 # warning Unsupported platform -
trunk/System/Sources/libc/src/termios.c
r284 r330 1 /* $Id: termios.c,v 1. 3 2008/11/01 03:18:14khorben Exp $ */1 /* $Id: termios.c,v 1.4 2009/02/19 21:59:30 khorben Exp $ */ 2 2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ -
trunk/System/Sources/libc/src/time.c
r284 r330 1 /* $Id: time.c,v 1.1 4 2008/11/01 02:59:25khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: time.c,v 1.16 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 93 93 #ifndef SYS_nanosleep 94 94 # warning Unsupported platform: nanosleep() is missing 95 int nanosleep(struct timespec * requested, struct timespec * remaining) 96 { 97 errno = ENOSYS; 98 return -1; 99 } 95 100 #endif 96 101 -
trunk/System/Sources/libc/src/unistd.c
r284 r330 1 /* $Id: unistd.c,v 1.6 1 2008/11/01 03:19:26 khorben Exp $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: unistd.c,v 1.63 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify … … 90 90 #ifndef SYS_chown 91 91 # warning Unsupported platform: chown() is missing 92 int chown(char const * filename, uid_t owner, gid_t group) 93 { 94 errno = ENOSYS; 95 return -1; 96 } 92 97 #endif 93 98 … … 209 214 #ifndef SYS_execve 210 215 # warning Unsupported platform: execve() is missing 216 int execve(char const * filename, char * const argv[], char * const envp[]) 217 { 218 errno = ENOSYS; 219 return -1; 220 } 211 221 #endif 212 222 … … 282 292 283 293 294 /* exit */ 295 #ifndef SYS_exit 296 # warning Unsupported platform: exit() is missing 297 void _exit(int status) 298 { 299 char ** p = NULL; 300 301 /* XXX make it crash */ 302 p = *p; 303 } 304 #endif 305 306 284 307 /* fchdir */ 285 308 #ifndef SYS_fchdir 286 309 # warning Unsupported platform: fchdir() is missing 310 int fchdir(int fildes) 311 { 312 errno = ENOSYS; 313 return -1; 314 } 287 315 #endif 288 316 … … 291 319 #ifndef SYS_fchown 292 320 # warning Unsupported platform: fchown() is missing 321 int fchown(int fildes, uid_t uid, gid_t gid) 322 { 323 errno = ENOSYS; 324 return -1; 325 } 293 326 #endif 294 327 … … 308 341 #ifndef SYS_fsync 309 342 # warning Unsupported platform: fsync() is missing 343 int fsync(int fildes) 344 { 345 errno = ENOSYS; 346 return -1; 347 } 310 348 #endif 311 349 … … 337 375 #ifndef SYS_getgid 338 376 # warning Unsupported platform: getgid() is missing 377 gid_t getgid(void) 378 { 379 /* XXX not allowed to fail */ 380 return 0; 381 } 339 382 #endif 340 383 … … 464 507 #ifndef SYS_getpid 465 508 # warning Unsupported platform: getpid() is missing 509 pid_t getpid(void) 510 { 511 /* XXX not allowed to fail */ 512 return 1; 513 } 466 514 #endif 467 515 … … 470 518 #ifndef SYS_getppid 471 519 # warning Unsupported platform: getppid() is missing 520 pid_t getppid(void) 521 { 522 /* XXX not allowed to fail */ 523 return 1; 524 } 472 525 #endif 473 526 … … 476 529 #ifndef SYS_getuid 477 530 # warning Unsupported platform: getuid() is missing 531 uid_t getuid(void) 532 { 533 /* XXX not allowed to fail */ 534 return 0; 535 } 478 536 #endif 479 537 … … 499 557 #ifndef SYS_lchown 500 558 # warning Unsupported platform: lchown() is missing 559 int lchown(char const * filename, uid_t owner, gid_t group) 560 { 561 errno = ENOSYS; 562 return -1; 563 } 501 564 #endif 502 565 … … 505 568 #ifndef SYS_link 506 569 # warning Unsupported platform: link() is missing 570 int link(char const * from, char const * to) 571 { 572 errno = ENOSYS; 573 return -1; 574 } 507 575 #endif 508 576 … … 552 620 #ifndef SYS_read 553 621 # warning Unsupported platform: read() is missing 622 ssize_t read(int fildes, void * buf, size_t count) 623 { 624 errno = ENOSYS; 625 return -1; 626 } 554 627 #endif 555 628 … … 558 631 #ifndef SYS_readlink 559 632 # warning Unsupported platform: readlink() is missing 633 ssize_t readlink(char const * filename, char * buf, size_t bufsiz) 634 { 635 errno = ENOSYS; 636 return -1; 637 } 560 638 #endif 561 639 … … 564 642 #ifndef SYS_rmdir 565 643 # warning Unsupported platform: rmdir() is missing 644 int rmdir(char const * filename) 645 { 646 errno = ENOSYS; 647 return -1; 648 } 566 649 #endif 567 650 … … 604 687 #else /* !SYS_sbrk && !SYS_brk */ 605 688 # warning Unsupported platform: sbrk() is missing 689 void * sbrk(intptr_t increment) 690 { 691 errno = ENOSYS; 692 return (void*)-1; 693 } 606 694 #endif 607 695 -
trunk/System/Sources/libc/src/utime.c
r228 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: utime.c,v 1.7 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify -
trunk/System/Sources/libc/src/utmpx.c
r228 r330 1 /* $Id $ */2 /* Copyright (c) 200 8Pierre Pronchery <khorben@defora.org> */1 /* $Id: utmpx.c,v 1.9 2009/02/19 21:44:06 khorben Exp $ */ 2 /* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */ 3 3 /* This file is part of DeforaOS System libc */ 4 4 /* This program is free software: you can redistribute it and/or modify
Note: See TracChangeset
for help on using the changeset viewer.