diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2008-08-07 17:16:04 +0000 |
---|---|---|
committer | Flavio Cruz <flaviocruz@gmail.com> | 2008-08-07 17:16:04 +0000 |
commit | 2adcb65f7096df83e1272d4b0150ce4e31cb289e (patch) | |
tree | 9fc8aa176d9033393fab8d2172e8cde50d0fb042 | |
parent | 192afee8deaf29fc0462c406e3581ffb282eec73 (diff) |
Add copyright notice.
-rw-r--r-- | libs/common.c | 20 | ||||
-rw-r--r-- | libs/fetch-root.c | 14 | ||||
-rw-r--r-- | libs/file-exec.c | 20 | ||||
-rw-r--r-- | libs/file-utimes.c | 20 | ||||
-rw-r--r-- | libs/fs-wrapper.c | 22 | ||||
-rw-r--r-- | libs/fs-wrapper.h | 20 | ||||
-rw-r--r-- | libs/fsys-wrapper.c | 22 | ||||
-rw-r--r-- | libs/fsys-wrapper.h | 20 | ||||
-rw-r--r-- | libs/io-wrapper.c | 22 | ||||
-rw-r--r-- | libs/io-wrapper.h | 20 | ||||
-rw-r--r-- | libs/notify-wrapper.c | 34 | ||||
-rw-r--r-- | libs/notify-wrapper.h | 20 | ||||
-rw-r--r-- | libs/portset-demuxer.c | 25 |
13 files changed, 249 insertions, 30 deletions
diff --git a/libs/common.c b/libs/common.c index b9f2f2d77..bc42265d8 100644 --- a/libs/common.c +++ b/libs/common.c @@ -1,4 +1,24 @@ +/* Common code for wrappers. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + inline static void _set_routine (const unsigned what, void *fun) { diff --git a/libs/fetch-root.c b/libs/fetch-root.c index b735373cf..a6727e6ee 100644 --- a/libs/fetch-root.c +++ b/libs/fetch-root.c @@ -1,15 +1,16 @@ -/* - Copyright (C) 1995,96,99,2000,02 Free Software Foundation, Inc. - Written by Michael I. Bushnell. - This file is part of the GNU Hurd. +/* Start a passive translator. - The GNU Hurd is free software; you can redistribute it and/or + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version. - The GNU Hurd is distributed in the hope that it will be useful, but + This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. @@ -18,7 +19,6 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ - #include <unistd.h> #include <assert.h> #include <string.h> diff --git a/libs/file-exec.c b/libs/file-exec.c index 6201d60fe..c6183d26c 100644 --- a/libs/file-exec.c +++ b/libs/file-exec.c @@ -1,4 +1,24 @@ +/* Run exec_exec in a forked process. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + #include <sys/types.h> #include <sys/wait.h> #include <stdlib.h> diff --git a/libs/file-utimes.c b/libs/file-utimes.c index 0ddcf582b..51a96357e 100644 --- a/libs/file-utimes.c +++ b/libs/file-utimes.c @@ -1,4 +1,24 @@ +/* Pointer-wrap file-utimes. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + #include <hurd/fs.h> #include <mach/time_value.h> diff --git a/libs/fs-wrapper.c b/libs/fs-wrapper.c index 006bd9325..985af6b6e 100644 --- a/libs/fs-wrapper.c +++ b/libs/fs-wrapper.c @@ -1,7 +1,23 @@ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#endif +/* fs.defs wrapper code. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <mach/boolean.h> #include <mach/kern_return.h> diff --git a/libs/fs-wrapper.h b/libs/fs-wrapper.h index 6e8f97d0d..f468ab862 100644 --- a/libs/fs-wrapper.h +++ b/libs/fs-wrapper.h @@ -1,4 +1,24 @@ +/* fs.defs wrapper code. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + #ifndef FS_WRAPPER_H #define FS_WRAPPER_H diff --git a/libs/fsys-wrapper.c b/libs/fsys-wrapper.c index 01f6b4312..00f610b8f 100644 --- a/libs/fsys-wrapper.c +++ b/libs/fsys-wrapper.c @@ -1,7 +1,23 @@ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#endif +/* fsys.defs wrapper code. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <mach/boolean.h> #include <mach/kern_return.h> diff --git a/libs/fsys-wrapper.h b/libs/fsys-wrapper.h index 621e637dc..642725c5d 100644 --- a/libs/fsys-wrapper.h +++ b/libs/fsys-wrapper.h @@ -1,4 +1,24 @@ +/* fsys.defs wrapper code. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + #ifndef FSYS_WRAPPER_H #define FSYS_WRAPPER_H diff --git a/libs/io-wrapper.c b/libs/io-wrapper.c index 28a57aa80..f2fe2f9a8 100644 --- a/libs/io-wrapper.c +++ b/libs/io-wrapper.c @@ -1,7 +1,23 @@ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#endif +/* io.defs wrapper code. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <mach/boolean.h> #include <mach/kern_return.h> diff --git a/libs/io-wrapper.h b/libs/io-wrapper.h index e3226a667..d5ac543ab 100644 --- a/libs/io-wrapper.h +++ b/libs/io-wrapper.h @@ -1,4 +1,24 @@ +/* io.defs wrapper code. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + #ifndef IO_WRAPPER_H #define IO_WRAPPER_H diff --git a/libs/notify-wrapper.c b/libs/notify-wrapper.c index d2cf7221d..5618b7ff5 100644 --- a/libs/notify-wrapper.c +++ b/libs/notify-wrapper.c @@ -1,7 +1,23 @@ -#ifndef _GNU_SOURCE -#define _GNU_SOURCE 1 -#endif +/* notify.defs wrapper code. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <mach/boolean.h> #include <mach/kern_return.h> @@ -36,7 +52,7 @@ typedef kern_return_t (*do_mach_notify_port_deleted_type)(mach_port_t, mach_port_t name); kern_return_t -lisp_S_do_mach_notify_port_deleted(mach_port_t notify, +lisp_do_mach_notify_port_deleted(mach_port_t notify, mach_port_t name) { //fprintf(stderr, "notify: port deleted\n"); @@ -56,7 +72,7 @@ typedef kern_return_t (*do_mach_notify_msg_accepted_type)(mach_port_t, mach_port_t); kern_return_t -lisp_S_do_mach_notify_msg_accepted(mach_port_t notify, +lisp_do_mach_notify_msg_accepted(mach_port_t notify, mach_port_t name) { //fprintf(stderr, "notify: msg accepted\n"); @@ -76,7 +92,7 @@ typedef kern_return_t (*do_mach_notify_port_destroyed_type)(mach_port_t, mach_port_t); kern_return_t -lisp_S_do_mach_notify_port_destroyed(mach_port_t notify, +lisp_do_mach_notify_port_destroyed(mach_port_t notify, mach_port_t rights) { //fprintf(stderr, "notify: port-destroyed\n"); @@ -98,7 +114,7 @@ typedef kern_return_t (*do_mach_notify_no_senders_type)(mach_port_t, mach_port_mscount_t); kern_return_t -lisp_S_do_mach_notify_no_senders(mach_port_t notify, +lisp_do_mach_notify_no_senders(mach_port_t notify, mach_port_mscount_t mscount) { //fprintf(stderr, "notify: no senders\n"); @@ -117,7 +133,7 @@ lisp_S_do_mach_notify_no_senders(mach_port_t notify, typedef kern_return_t (*do_mach_notify_send_once_type)(mach_port_t); kern_return_t -lisp_S_do_mach_notify_send_once(mach_port_t notify) +lisp_do_mach_notify_send_once(mach_port_t notify) { //fprintf(stderr, "notify: send once\n"); if(routines[DO_MACH_NOTIFY_SEND_ONCE] == NULL) { @@ -136,7 +152,7 @@ typedef kern_return_t (*do_mach_notify_dead_name_type)(mach_port_t, mach_port_t); kern_return_t -lisp_S_do_mach_notify_dead_name(mach_port_t notify, +lisp_do_mach_notify_dead_name(mach_port_t notify, mach_port_t name) { //fprintf(stderr, "notify: dead name\n"); diff --git a/libs/notify-wrapper.h b/libs/notify-wrapper.h index 443b72df8..fc9b7c874 100644 --- a/libs/notify-wrapper.h +++ b/libs/notify-wrapper.h @@ -1,4 +1,24 @@ +/* notify.defs wrapper code. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + #ifndef NOTIFY_WRAPPER_H #define NOTIFY_WRAPPER_H diff --git a/libs/portset-demuxer.c b/libs/portset-demuxer.c index 864afac32..2d67964c0 100644 --- a/libs/portset-demuxer.c +++ b/libs/portset-demuxer.c @@ -1,4 +1,24 @@ +/* Demuxer wrapper. + + Copyright (C) 2008 Free Software Foundation, Inc. + + Written by FlĂvio Cruz <flaviocruz@gmail.com> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License as + published by the Free Software Foundation; either version 2, or (at + your option) any later version. + + This program is distributed in the hope that it will be useful, but + WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + #include <mach.h> #include <mach/notify.h> #include <mach/mig_errors.h> @@ -39,12 +59,8 @@ portset_demuxer (mach_msg_header_t * inp, mach_msg_header_t * outheadp) outp->RetCodeType = RetCodeType; outp->RetCode = MIG_BAD_ID; - //fprintf(stderr, "=====Got message=====!\n"); - int ret = demuxer (inp->msgh_local_port, inp, outheadp); - //fprintf(stderr, "=====End Message!=====\n"); - if (ret == EOPNOTSUPP) { outp->RetCode = EOPNOTSUPP; @@ -52,7 +68,6 @@ portset_demuxer (mach_msg_header_t * inp, mach_msg_header_t * outheadp) } else { - //fprintf(stderr, "ret demuxer: %d\n", ret); return (ret); } } |