Changeset 330


Ignore:
Timestamp:
Feb 19, 2009, 11:15:38 PM (9 years ago)
Author:
khorben
Message:

Merge from upstream

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/netbsd math net pthread socket sys
     1SUBDIRS = compat dl kernel/freebsd kernel/linux kernel/netbsd kernel/openbsd kernel/solaris math net pthread socket sys
    22PREFIX  = /usr/local
    33DESTDIR =
  • trunk/System/Sources/libc/include/compat/dirent.h

    r225 r330  
    1 /* $Id: dirent.h,v 1.4 2007/12/16 02:04:54 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/dirent.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/dirent.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2632# else
    2733#  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:54 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/errno.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/errno.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2634# else
    2735#  warning Unsupported platform
  • trunk/System/Sources/libc/include/compat/fcntl.h

    r225 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/fcntl.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/fcntl.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2632# else
    2733#  warning Unsupported platform
  • trunk/System/Sources/libc/include/compat/limits.h

    r225 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/limits.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/limits.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2632# else
    2733#  warning Unsupported platform
  • trunk/System/Sources/libc/include/compat/signal.h

    r225 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/signal.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/signal.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2632# else
    2733#  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:58 khorben Exp $ */
     1/* $Id: stdio.h,v 1.2 2009/02/19 21:33:56 khorben Exp $ */
    22/* Copyright (c) 2007 Pierre Pronchery <khorben@defora.org> */
    33/* This file is part of DeforaOS System libc */
     
    2323# if defined(__linux__)
    2424#  include "kernel/linux/stdio.h"
     25# elif defined(__FreeBSD__)
     26#  include "kernel/freebsd/stdio.h"
    2527# elif defined(__NetBSD__)
    2628#  include "kernel/netbsd/stdio.h"
     29# elif defined(__OpenBSD__)
     30#  include "kernel/openbsd/stdio.h"
    2731# else
    2832#  warning Unsupported platform
  • trunk/System/Sources/libc/include/compat/sys/ioctl.h

    r225 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:23 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/sys/mman.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/sys/mman.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2634# else
    2735#  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:44 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:27 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:59 khorben Exp $ */
     1/* $Id: resource.h,v 1.5 2009/02/19 21:33:56 khorben Exp $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* This file is part of DeforaOS System libc */
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/sys/resource.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/sys/resource.h"
    2426# elif defined(__NetBSD__)
    2527#  include "kernel/netbsd/sys/resource.h"
     28# elif defined(__OpenBSD__)
     29#  include "kernel/openbsd/sys/resource.h"
    2630# else
    2731#  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:35 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/sys/select.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/sys/select.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2634# else
    2735#  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:17 khorben Exp $ */
     1/* $Id: shm.h,v 1.2 2009/02/19 21:33:56 khorben Exp $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* This file is part of DeforaOS System libc */
     
    2323# if defined(__linux__)
    2424#  include "kernel/linux/sys/shm.h"
     25# elif defined(__FreeBSD__)
     26#  include "kernel/freebsd/sys/shm.h"
    2527# elif defined(__NetBSD__)
    2628#  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"
    2733# else
    2834#  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:59 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/sys/stat.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/sys/stat.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2634# else
    2735#  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:59 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/sys/time.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/sys/time.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2634# else
    2735#  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:59 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/sys/times.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/sys/times.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2634# else
    2735#  warning Unsupported platform
  • trunk/System/Sources/libc/include/compat/sys/types.h

    r225 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/sys/types.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/sys/types.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2634# else
    2735#  warning Unsupported platform
  • trunk/System/Sources/libc/include/compat/sys/utsname.h

    r225 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/sys/utsname.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/sys/utsname.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2634# else
    2735#  warning Unsupported platform
  • trunk/System/Sources/libc/include/compat/termios.h

    r225 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/termios.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/termios.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2632# else
    2733#  warning Unsupported platform
  • trunk/System/Sources/libc/include/compat/time.h

    r225 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/time.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/time.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2634# else
    2735#  warning Unsupported platform
  • trunk/System/Sources/libc/include/compat/unistd.h

    r225 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/unistd.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/unistd.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2632# else
    2733#  warning Unsupported platform
  • trunk/System/Sources/libc/include/compat/utmpx.h

    r225 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2222# if defined(__linux__)
    2323#  include "kernel/linux/utmpx.h"
     24# elif defined(__FreeBSD__)
     25#  include "kernel/freebsd/utmpx.h"
    2426# elif defined(__NetBSD__)
    2527#  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"
    2632# else
    2733#  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:26 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:12 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:59 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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 $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:05 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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.11 2008-10-16 21:54:54 khorben Exp $ */
     1/* $Id: errno.h,v 1.12 2008-11-01 03:06:49 khorben Exp $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* 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 $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* 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:53 khorben Exp $ */
    2 /* Copyright (c) 2007 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    4 /* libc is not free software; you can redistribute it and/or modify it under
    5  * the terms of the Creative Commons Attribution-NonCommercial-ShareAlike 3.0
    6  * 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.
    77 *
    8  * libc is distributed in the hope that it will be useful, but WITHOUT ANY
    9  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
    10  * 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.
    1212 *
    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/>. */
    1615
    1716
  • trunk/System/Sources/libc/include/limits.h

    r251 r330  
    1 /* $Id: limits.h,v 1.14 2008/11/01 14:58:29 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:31 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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 $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* 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:32 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:39 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2525typedef uint32_t in_addr_t;
    2626# endif
     27
    2728# ifndef in_port_t
    2829#  define in_port_t in_port_t
    2930typedef uint16_t in_port_t;
    3031#endif
     32
    3133# ifndef in_addr
    3234#  define in_addr in_addr
     
    3638};
    3739# endif
     40
    3841# ifndef sockaddr_in
    3942#  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:05 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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 $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* This file is part of DeforaOS System libc */
  • trunk/System/Sources/libc/include/socket/netinet/tcp.h

    r225 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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.32 2008/10/20 12:23:58 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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.11 2008-10-28 02:09:26 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    4141int strncmp(char const * s1, char const * s2, size_t n);
    4242char * strncpy(char * dest, char const * src, size_t n);
     43size_t strnlen(char const * s, size_t max);
    4344char * strpbrk(char const * s1, char const * s2);
    4445char * 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 $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* This file is part of DeforaOS System libc */
  • trunk/System/Sources/libc/include/sys/types.h

    r284 r330  
    1 /* $Id: types.h,v 1.17 2008/10/31 19:16:37 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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.13 2008/11/01 02:59:25 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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.30 2008/10/31 19:10:53 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    8585int execvp(char const * filename, char * const argv[]);
    8686void _exit(int status);
     87int fchdir(int fildes);
    8788int fchown(int fildes, uid_t uid, gid_t gid);
    88 int fchdir(int fildes);
    8989pid_t fork(void);
    9090int fsync(int fildes);
  • trunk/System/Sources/libc/src/Makefile

    r290 r330  
    2828libc_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
    2929libc_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
     30libc_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
    3031libc_ASFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(ASFLAGS)
    3132
  • trunk/System/Sources/libc/src/ctype.c

    r283 r330  
    1 /* $Id: ctype.c,v 1.4 2008/09/27 10:14:11 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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 $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* This file is part of DeforaOS System libc */
  • trunk/System/Sources/libc/src/dl/Makefile

    r246 r330  
    2222libdl_OBJS = dlfcn.lo
    2323libdl_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
     24libdl_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
    2425
    2526libdl.la: $(libdl_OBJS)
  • trunk/System/Sources/libc/src/dl/dlfcn.c

    r228 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:04 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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
     1SUBDIRS = arm i386 sparc
    22
    33
  • trunk/System/Sources/libc/src/kernel/linux/arm/start.S

    r200 r330  
    1 /* $Id: start.S,v 1.5 2008/10/27 13:00:09 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    3 /* This file is part of RunningBear System 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 */
    44/* This program is free software: you can redistribute it and/or modify
    55 * 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:09 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    3 /* This file is part of RunningBear System 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 */
    44/* This program is free software: you can redistribute it and/or modify
    55 * it under the terms of the GNU General Public License as published by
     
    4848#undef SYS_brk
    4949
     50
    5051/* _exit */
    5152.global _exit
     
    5455        ldr     %r7, =SYS_exit
    5556        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.28 2008/11/01 03:16:55 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:15 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    3 /* This file is part of RunningBear System 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 */
    44/* This program is free software: you can redistribute it and/or modify
    55 * 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.12 2008/10/31 19:05:52 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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
     1SUBDIRS = amd64 i386 sparc sparc64
    22
    33
  • trunk/System/Sources/libc/src/kernel/netbsd/amd64/start.S

    r76 r330  
    1 /* $Id: start.S,v 1.7 2008-09-10 09:58:08 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    3 /* This file is part of RunningBear System 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 */
    44/* This program is free software: you can redistribute it and/or modify
    55 * 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:07 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:15 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    3 /* This file is part of RunningBear System 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 */
    44/* This program is free software: you can redistribute it and/or modify
    55 * 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.35 2008-10-28 12:51:26 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of RunningBear System libc */
    44/* 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:15 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    3 /* This file is part of RunningBear System 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 */
    44/* This program is free software: you can redistribute it and/or modify
    55 * 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:25 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of RunningBear System libc */
    44/* 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:57 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:19 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
  • trunk/System/Sources/libc/src/math/Makefile

    r265 r330  
    2626libm_ASFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(ASFLAGS)
    2727libm_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
     28libm_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
    2829
    2930libm.la: $(libm_OBJS)
  • trunk/System/Sources/libc/src/math/i386/math.S

    r202 r330  
    11/* $Id$ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    3 /* This file is part of RunningBear System libc */
     3/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
    55 * 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:32 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
  • trunk/System/Sources/libc/src/pthread/Makefile

    r284 r330  
    2626        $(LIBTOOL) --mode=link $(CC) -Xcompiler -nostdlib -o libpthread.la $(libpthread_OBJS) -rpath $(LIBDIR)
    2727
    28 pthread.o pthread.lo: ../../include/pthread/pthread.h
     28pthread.o pthread.lo: pthread.c ../../include/pthread/pthread.h
    2929        $(LIBTOOL) --mode=compile $(CC) $(libpthread_CFLAGS) -c pthread.c
    3030
  • trunk/System/Sources/libc/src/pthread/pthread.c

    r284 r330  
    2121
    2222
     23/* pthread_attr_destroy */
     24int pthread_attr_destroy(pthread_attr_t * attr)
     25{
     26        /* FIXME implement */
     27        errno = ENOSYS;
     28        return -1;
     29}
     30
     31
     32/* pthread_attr_getdetachstate */
     33int 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 */
     42int pthread_attr_init(pthread_attr_t * attr)
     43{
     44        /* FIXME implement */
     45        errno = ENOSYS;
     46        return -1;
     47}
     48
     49
     50/* pthread_attr_setdetachstate */
     51int 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 */
     60int pthread_cancel(pthread_t thread)
     61{
     62        /* FIXME implement */
     63        errno = ENOSYS;
     64        return -1;
     65}
     66
     67
     68/* pthread_cond_broadcast */
     69int pthread_cond_broadcast(pthread_cond_t * cond)
     70{
     71        /* FIXME implement */
     72        errno = ENOSYS;
     73        return -1;
     74}
     75
     76
     77/* pthread_cond_destroy */
     78int pthread_cond_destroy(pthread_cond_t * cond)
     79{
     80        /* FIXME implement */
     81        errno = ENOSYS;
     82        return -1;
     83}
     84
     85
     86/* pthread_cond_init */
     87int 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 */
     96int pthread_cond_signal(pthread_cond_t * cond)
     97{
     98        /* FIXME implement */
     99        errno = ENOSYS;
     100        return -1;
     101}
     102
     103
     104/* pthread_cond_timedwait */
     105int 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 */
     115int 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 */
    23124int pthread_create(pthread_t * thread, const pthread_attr_t * attr,
    24125                void *(*start)(void *), void * arg)
     
    30131
    31132
    32 int pthread_cancel(pthread_t thread)
    33 {
    34         /* FIXME implement */
    35         errno = ENOSYS;
    36         return -1;
    37 }
    38 
    39 
     133/* pthread_exit */
     134void pthread_exit(void * value)
     135{
     136        /* FIXME implement */
     137}
     138
     139
     140/* pthread_join */
     141int pthread_join(pthread_t thread, void ** value)
     142{
     143        /* FIXME implement */
     144        errno = ENOSYS;
     145        return -1;
     146}
     147
     148
     149/* pthread_mutex_destroy */
     150int pthread_mutex_destroy(pthread_mutex_t * mutex)
     151{
     152        /* FIXME implement */
     153        errno = ENOSYS;
     154        return -1;
     155}
     156
     157
     158/* pthread_mutex_init */
     159int 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 */
     169int pthread_mutex_lock(pthread_mutex_t * mutex)
     170{
     171        /* FIXME implement */
     172        errno = ENOSYS;
     173        return -1;
     174}
     175
     176
     177/* pthread_mutex_trylock */
    40178int pthread_mutex_trylock(pthread_mutex_t * mutex)
    41179{
     
    46184
    47185
    48 int pthread_join(pthread_t thread, void ** value)
    49 {
    50         /* FIXME implement */
    51         errno = ENOSYS;
    52         return -1;
    53 }
     186/* pthread_mutex_unlock */
     187int pthread_mutex_unlock(pthread_mutex_t * mutex)
     188{
     189        /* FIXME implement */
     190        errno = ENOSYS;
     191        return -1;
     192}
     193
     194
     195/* pthread_self */
     196pthread_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.14 2008/10/22 17:11:59 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
  • trunk/System/Sources/libc/src/socket/Makefile

    r248 r330  
    2828libsocket_OBJS = arpa/inet.lo netdb.lo sys/socket.lo syscalls.lo
    2929libsocket_CFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(CFLAGSF) $(CFLAGS)
     30libsocket_LDFLAGS = $(LDFLAGSF) $(LDFLAGS)
    3031libsocket_ASFLAGS = $(CPPFLAGSF) $(CPPFLAGS) $(ASFLAGS)
    3132
  • trunk/System/Sources/libc/src/socket/arpa/inet.c

    r228 r330  
    1 /* $Id: inet.c,v 1.1 2008/06/19 23:42:01 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:21 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    3 /* This file is part of RunningBear System 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 */
    44/* This program is free software: you can redistribute it and/or modify
    55 * 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:28 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of RunningBear System libc */
    44/* 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
     1SUBDIRS = amd64 i386 sparc
    22
    33
  • 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:40 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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 $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* 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:14 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
  • trunk/System/Sources/libc/src/socket/syscalls.S

    r284 r330  
    3737# elif defined(__i386__)
    3838#  include "kernel/netbsd/i386/syscalls.S"
     39# elif defined(__sparc__)
     40#  include "kernel/netbsd/sparc/syscalls.S"
    3941# else
    4042#  warning Unsupported NetBSD architecture
  • trunk/System/Sources/libc/src/socket/syscalls.h

    r80 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of RunningBear System libc */
    44/* 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) 2008 Pierre Pronchery <khorben@defora.org> */
    3 /* This file is part of RunningBear System 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 */
    44/* This program is free software: you can redistribute it and/or modify
    55 * it under the terms of the GNU General Public License as published by
     
    2929# elif defined(__i386__)
    3030#  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__ */
    3234#  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
    3343# endif
    3444
     
    3949# elif defined(__i386__)
    4050#  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__ */
    4256#  warning Unsupported NetBSD architecture
    4357# endif
    4458# 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
    4585
    4686/* Unknown */
  • trunk/System/Sources/libc/src/stdio.c

    r287 r330  
    11/* $Id: stdio.c,v 1.75 2008/10/22 14:19:14 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
     2/* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */
    33/* This file is part of DeforaOS System libc */
    44/* 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.46 2008/10/16 22:53:37 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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.26 2008/10/28 02:09:26 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    309309
    310310
     311/* strnlen */
     312size_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
    311322/* strpbrk */
    312323char * strpbrk(char const * s1, char const * s2)
  • trunk/System/Sources/libc/src/strings.c

    r228 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:08 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:10 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:07 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:39 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:48 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2424#ifndef SYS_chmod
    2525# warning Unsupported platform: chmod() is missing
     26int chmod(char const * name, mode_t mode)
     27{
     28        errno = ENOSYS;
     29        return -1;
     30}
    2631#endif
    2732
     
    3035#ifndef SYS_fchmod
    3136# warning Unsupported platform: fchmod() is missing
     37int fchmod(int fildes, mode_t mode)
     38{
     39        errno = ENOSYS;
     40        return -1;
     41}
    3242#endif
    3343
     
    3646#ifndef SYS_fstat
    3747# warning Unsupported platform: fstat() is missing
     48int fstat(int fildes, struct stat * st)
     49{
     50        errno = ENOSYS;
     51        return -1;
     52}
    3853#endif
    3954
     
    5368#ifndef SYS_mkdir
    5469# warning Unsupported platform: mkdir() is missing
     70int mkdir(char const * name, mode_t mode)
     71{
     72        errno = ENOSYS;
     73        return -1;
     74}
    5575#endif
    5676
  • trunk/System/Sources/libc/src/sys/time.c

    r284 r330  
    1 /* $Id: time.c,v 1.5 2007/06/13 23:08:15 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    2424#ifndef SYS_gettimeofday
    2525# warning Unsupported platform: gettimeofday() is missing
     26# include "errno.h"
     27int gettimeofday(struct timeval * tv, void * null)
     28{
     29        errno = ENOSYS;
     30        return -1;
     31}
    2632#endif
    2733
  • trunk/System/Sources/libc/src/sys/times.c

    r284 r330  
    1 /* $Id: times.c,v 1.7 2007/11/20 01:15:47 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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:12 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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.10 2008/08/28 17:33:40 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    3030
    3131/* 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"
    3435pid_t wait4(pid_t pid, int * status, int options, void * rusage);
    3536
     
    3839        return wait4(pid, status, options, NULL);
    3940}
     41# else
     42#  warning Unsupported platform: waitpid() is missing
     43#  include "errno.h"
     44pid_t waitpid(pid_t pid, int * status, int options)
     45{
     46        errno = ENOSYS;
     47        return -1;
     48}
     49# endif
    4050#endif
  • trunk/System/Sources/libc/src/syscalls.S

    r318 r330  
    1 /* $Id: syscalls.S,v 1.57 2008/11/01 03:16:55 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    3030# endif
    3131
     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
    3241/* NetBSD */
    3342#elif defined(__NetBSD__)
     
    3746# elif defined(__i386__)
    3847#  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__ */
    4053#  warning Unsupported NetBSD architecture
    4154#  define SYSCALL(name)
    4255# endif
    4356# 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
    4486
    4587/* Unknown */
     
    67109SYSCALL(creat)
    68110#endif
     111#ifdef SYS_fcntl
    69112SYSCALL(fcntl)
     113#endif
    70114SYSCALL(open)
    71115
     
    76120
    77121/* signal.h */
     122#ifdef SYS_kill
    78123SYSCALL(kill)
     124#endif
    79125#ifdef SYS_signal
    80126SYSCALL(signal)
     
    88134
    89135/* stdio.h */
     136#ifdef SYS_rename
    90137SYSCALL(rename)
     138#endif
    91139
    92140/* stropts.h */
     141#ifdef SYS_ioctl
    93142SYSCALL(ioctl)
     143#endif
    94144
    95145/* sys/mman.h */
     
    106156SYSCALL(munlock)
    107157#endif
     158#ifdef SYS_munmap
    108159SYSCALL(munmap)
     160#endif
    109161
    110162/* sys/mount.h */
     
    122174
    123175/* sys/resource.h */
     176#ifdef SYS_getpriority
    124177SYSCALL(getpriority)
     178#endif
     179#ifdef SYS_getrlimit
    125180SYSCALL(getrlimit)
     181#endif
     182#ifdef SYS_getrusage
    126183SYSCALL(getrusage)
     184#endif
     185#ifdef SYS_setpriority
    127186SYSCALL(setpriority)
     187#endif
     188#ifdef SYS_setrlimit
    128189SYSCALL(setrlimit)
     190#endif
    129191
    130192/* sys/select.h */
     
    142204
    143205/* sys/stat.h */
     206#ifdef SYS_chmod
    144207SYSCALL(chmod)
     208#endif
     209#ifdef SYS_fchmod
    145210SYSCALL(fchmod)
     211#endif
     212#ifdef SYS_fstat
    146213SYSCALL(fstat)
     214#endif
     215#ifdef SYS_lstat
    147216SYSCALL(lstat)
     217#endif
     218#ifdef SYS_mkdir
    148219SYSCALL(mkdir)
     220#endif
    149221#ifdef SYS_mkfifo
    150222SYSCALL(mkfifo)
    151223#endif
     224#ifdef SYS_mknod
    152225SYSCALL(mknod)
     226#endif
     227#ifdef SYS_stat
    153228SYSCALL(stat)
     229#endif
     230#ifdef SYS_umask
    154231SYSCALL(umask)
     232#endif
    155233
    156234/* sys/statvfs.h */
     
    163241
    164242/* sys/time.h */
     243#ifdef SYS_gettimeofday
    165244SYSCALL(gettimeofday)
     245#endif
    166246#ifdef SYS_utimes
    167247SYSCALL(utimes)
     
    189269
    190270/* time.h */
     271#ifdef SYS_nanosleep
    191272SYSCALL(nanosleep)
     273#endif
    192274
    193275/* unistd.h */
     276#ifdef SYS_access
    194277SYSCALL(access)
     278#endif
    195279#ifdef SYS_alarm
    196280SYSCALL(alarm)
     
    199283SYSCALL(brk)
    200284#endif
     285#ifdef SYS_chdir
    201286SYSCALL(chdir)
     287#endif
     288#ifdef SYS_chown
    202289SYSCALL(chown)
     290#endif
     291#ifdef SYS_close
    203292SYSCALL(close)
     293#endif
     294#ifdef SYS_dup
    204295SYSCALL(dup)
     296#endif
    205297#ifdef SYS_dup2
    206298SYSCALL(dup2)
     
    209301SYSCALL(execve)
    210302#endif
     303#ifdef SYS_fchdir
    211304SYSCALL(fchdir)
     305#endif
     306#ifdef SYS_fchown
    212307SYSCALL(fchown)
     308#endif
     309#ifdef SYS_fork
    213310SYSCALL(fork)
     311#endif
    214312#ifdef SYS_fsync
    215313SYSCALL(fsync)
     
    222320SYSCALL(geteuid)
    223321#endif
     322#ifdef SYS_getgid
    224323SYSCALL(getgid)
     324#endif
    225325#ifdef SYS_getlogin_r
    226326SYSCALL(getlogin_r)
    227327#endif
     328#ifdef SYS_getpid
    228329SYSCALL(getpid)
     330#endif
    229331#ifdef SYS_getppid
    230332SYSCALL(getppid)
    231333#endif
     334#ifdef SYS_getuid
    232335SYSCALL(getuid)
     336#endif
     337#ifdef SYS_lchown
    233338SYSCALL(lchown)
     339#endif
     340#ifdef SYS_link
    234341SYSCALL(link)
     342#endif
    235343#ifdef SYS_lseek
    236344SYSCALL(lseek)
     
    239347SYSCALL(nice)
    240348#endif
     349#ifdef SYS_pipe
    241350SYSCALL(pipe)
     351#endif
     352#ifdef SYS_read
    242353SYSCALL(read)
     354#endif
     355#ifdef SYS_readlink
    243356SYSCALL(readlink)
     357#endif
     358#ifdef SYS_rmdir
    244359SYSCALL(rmdir)
     360#endif
    245361#ifdef SYS_sbrk
    246362SYSCALL(sbrk)
    247363#endif
     364#ifdef SYS_setgid
    248365SYSCALL(setgid)
     366#endif
    249367#ifdef SYS_setpgid
    250368SYSCALL(setpgid)
    251369#endif
     370#ifdef SYS_setregid
    252371SYSCALL(setregid)
     372#endif
     373#ifdef SYS_setreuid
    253374SYSCALL(setreuid)
     375#endif
    254376#ifdef SYS_setsid
    255377SYSCALL(setsid)
    256378#endif
     379#ifdef SYS_setuid
    257380SYSCALL(setuid)
     381#endif
     382#ifdef SYS_symlink
    258383SYSCALL(symlink)
     384#endif
     385#ifdef SYS_sync
    259386SYSCALL(sync)
     387#endif
     388#ifdef SYS_unlink
    260389SYSCALL(unlink)
     390#endif
     391#ifdef SYS_vfork
    261392SYSCALL(vfork)
     393#endif
     394#ifdef SYS_write
    262395SYSCALL(write)
     396#endif
    263397
    264398/* utime.h */
  • trunk/System/Sources/libc/src/syscalls.h

    r64 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    3 /* This file is part of RunningBear System 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 */
    44/* This program is free software: you can redistribute it and/or modify
    55 * it under the terms of the GNU General Public License as published by
     
    2121# if defined(__linux__)
    2222#  include "kernel/linux/common.h"
     23# elif defined(__FreeBSD__)
     24#  include "kernel/freebsd/common.h"
    2325# elif defined(__NetBSD__)
    2426#  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"
    2534# else
    2635#  warning Unsupported platform
  • trunk/System/Sources/libc/src/termios.c

    r284 r330  
    1 /* $Id: termios.c,v 1.3 2008/11/01 03:18:14 khorben Exp $ */
     1/* $Id: termios.c,v 1.4 2009/02/19 21:59:30 khorben Exp $ */
    22/* Copyright (c) 2008 Pierre Pronchery <khorben@defora.org> */
    33/* This file is part of DeforaOS System libc */
  • trunk/System/Sources/libc/src/time.c

    r284 r330  
    1 /* $Id: time.c,v 1.14 2008/11/01 02:59:25 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    9393#ifndef SYS_nanosleep
    9494# warning Unsupported platform: nanosleep() is missing
     95int nanosleep(struct timespec * requested, struct timespec * remaining)
     96{
     97        errno = ENOSYS;
     98        return -1;
     99}
    95100#endif
    96101
  • trunk/System/Sources/libc/src/unistd.c

    r284 r330  
    1 /* $Id: unistd.c,v 1.61 2008/11/01 03:19:26 khorben Exp $ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
     
    9090#ifndef SYS_chown
    9191# warning Unsupported platform: chown() is missing
     92int chown(char const * filename, uid_t owner, gid_t group)
     93{
     94        errno = ENOSYS;
     95        return -1;
     96}
    9297#endif
    9398
     
    209214#ifndef SYS_execve
    210215# warning Unsupported platform: execve() is missing
     216int execve(char const * filename, char * const argv[], char * const envp[])
     217{
     218        errno = ENOSYS;
     219        return -1;
     220}
    211221#endif
    212222
     
    282292
    283293
     294/* exit */
     295#ifndef SYS_exit
     296# warning Unsupported platform: exit() is missing
     297void _exit(int status)
     298{
     299        char ** p = NULL;
     300
     301        /* XXX make it crash */
     302        p = *p;
     303}
     304#endif
     305
     306
    284307/* fchdir */
    285308#ifndef SYS_fchdir
    286309# warning Unsupported platform: fchdir() is missing
     310int fchdir(int fildes)
     311{
     312        errno = ENOSYS;
     313        return -1;
     314}
    287315#endif
    288316
     
    291319#ifndef SYS_fchown
    292320# warning Unsupported platform: fchown() is missing
     321int fchown(int fildes, uid_t uid, gid_t gid)
     322{
     323        errno = ENOSYS;
     324        return -1;
     325}
    293326#endif
    294327
     
    308341#ifndef SYS_fsync
    309342# warning Unsupported platform: fsync() is missing
     343int fsync(int fildes)
     344{
     345        errno = ENOSYS;
     346        return -1;
     347}
    310348#endif
    311349
     
    337375#ifndef SYS_getgid
    338376# warning Unsupported platform: getgid() is missing
     377gid_t getgid(void)
     378{
     379        /* XXX not allowed to fail */
     380        return 0;
     381}
    339382#endif
    340383
     
    464507#ifndef SYS_getpid
    465508# warning Unsupported platform: getpid() is missing
     509pid_t getpid(void)
     510{
     511        /* XXX not allowed to fail */
     512        return 1;
     513}
    466514#endif
    467515
     
    470518#ifndef SYS_getppid
    471519# warning Unsupported platform: getppid() is missing
     520pid_t getppid(void)
     521{
     522        /* XXX not allowed to fail */
     523        return 1;
     524}
    472525#endif
    473526
     
    476529#ifndef SYS_getuid
    477530# warning Unsupported platform: getuid() is missing
     531uid_t getuid(void)
     532{
     533        /* XXX not allowed to fail */
     534        return 0;
     535}
    478536#endif
    479537
     
    499557#ifndef SYS_lchown
    500558# warning Unsupported platform: lchown() is missing
     559int lchown(char const * filename, uid_t owner, gid_t group)
     560{
     561        errno = ENOSYS;
     562        return -1;
     563}
    501564#endif
    502565
     
    505568#ifndef SYS_link
    506569# warning Unsupported platform: link() is missing
     570int link(char const * from, char const * to)
     571{
     572        errno = ENOSYS;
     573        return -1;
     574}
    507575#endif
    508576
     
    552620#ifndef SYS_read
    553621# warning Unsupported platform: read() is missing
     622ssize_t read(int fildes, void * buf, size_t count)
     623{
     624        errno = ENOSYS;
     625        return -1;
     626}
    554627#endif
    555628
     
    558631#ifndef SYS_readlink
    559632# warning Unsupported platform: readlink() is missing
     633ssize_t readlink(char const * filename, char * buf, size_t bufsiz)
     634{
     635        errno = ENOSYS;
     636        return -1;
     637}
    560638#endif
    561639
     
    564642#ifndef SYS_rmdir
    565643# warning Unsupported platform: rmdir() is missing
     644int rmdir(char const * filename)
     645{
     646        errno = ENOSYS;
     647        return -1;
     648}
    566649#endif
    567650
     
    604687#else /* !SYS_sbrk && !SYS_brk */
    605688# warning Unsupported platform: sbrk() is missing
     689void * sbrk(intptr_t increment)
     690{
     691        errno = ENOSYS;
     692        return (void*)-1;
     693}
    606694#endif
    607695
  • trunk/System/Sources/libc/src/utime.c

    r228 r330  
    1 /* $Id$ */
    2 /* Copyright (c) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* 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) 2008 Pierre 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> */
    33/* This file is part of DeforaOS System libc */
    44/* This program is free software: you can redistribute it and/or modify
Note: See TracChangeset for help on using the changeset viewer.