From: Simone Piccardi Date: Tue, 3 Dec 2002 22:30:11 +0000 (+0000) Subject: Aggiunte delle note di Copyright su tutti i .tex X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=commitdiff_plain;h=9c3be0a6a901fad667ba1abcd8b46c712020cf26 Aggiunte delle note di Copyright su tutti i .tex --- diff --git a/compatib.tex b/compatib.tex index 8ccff78..2153867 100644 --- a/compatib.tex +++ b/compatib.tex @@ -1,6 +1,19 @@ +%% compatib.tex +%% +%% Copyright (C) 2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% +% % Pacchetto di contabilità per evitare casini con latex2html -\newenvironment{description*} -{ +% +% Simone Piccardi, Aug. 2002 +% +\newenvironment{description*} { \begin{description} } { diff --git a/elemtcp.tex b/elemtcp.tex index 6715770..b7e7efa 100644 --- a/elemtcp.tex +++ b/elemtcp.tex @@ -1,3 +1,13 @@ +%% elemtcp.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{Socket TCP elementari} \label{cha:elem_TCP_sock} diff --git a/errors.tex b/errors.tex index a75e0e1..68e0584 100644 --- a/errors.tex +++ b/errors.tex @@ -1,3 +1,13 @@ +%% errors.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{I codici di errore} \label{cha:errors} diff --git a/fileadv.tex b/fileadv.tex index 811d9b1..8a135b5 100644 --- a/fileadv.tex +++ b/fileadv.tex @@ -1,3 +1,13 @@ +%% fileadv.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{La gestione avanzata dei file} \label{cha:file_advanced} diff --git a/filedir.tex b/filedir.tex index ac0a3bc..7ba4265 100644 --- a/filedir.tex +++ b/filedir.tex @@ -1,3 +1,13 @@ +%% filedir.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{File e directory} \label{cha:files_and_dirs} diff --git a/fileintro.tex b/fileintro.tex index 7da0dab..dfedd39 100644 --- a/fileintro.tex +++ b/fileintro.tex @@ -1,3 +1,13 @@ +%% fileintro.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{L'architettura dei file} \label{cha:file_intro} diff --git a/filestd.tex b/filestd.tex index 8ab8956..5fbdced 100644 --- a/filestd.tex +++ b/filestd.tex @@ -1,3 +1,13 @@ +%% filestd.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{I file: l'interfaccia standard ANSI C} \label{cha:files_std_interface} diff --git a/fileunix.tex b/fileunix.tex index 8a39680..9f4e4a8 100644 --- a/fileunix.tex +++ b/fileunix.tex @@ -1,3 +1,13 @@ +%% fileunix.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{I file: l'interfaccia standard Unix} \label{cha:file_unix_interface} diff --git a/gapil.tex b/gapil.tex index f6de7cf..ed88f9a 100644 --- a/gapil.tex +++ b/gapil.tex @@ -1,9 +1,18 @@ +%% gapil.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". %% %% GaPiL : Guida alla Programmazione in Linux %% %% S. Piccardi Oct. 2000 %% -%% main.tex: file principale, gli altri vanno inclusi da questo. +%% gapil.tex: file principale, gli altri vanno inclusi da questo. %% \documentclass[a4paper,11pt,twoside,italian]{book} \usepackage[latin1]{inputenc} diff --git a/html/index.html b/html/index.html index 36c9d09..52a8329 100644 --- a/html/index.html +++ b/html/index.html @@ -143,7 +143,7 @@ Cap. 2-3 Gestione dei processi - qausi completi e parzialmente revisionati + quasi completi e parzialmente revisionati @@ -155,12 +155,12 @@ Cap. 8 Sistema, parametri, errori - completo, da revisionare + quasi completo, da revisionare Cap. 9 Segnali - completo, da revisionare + quasi completo, da revisionare Cap. 10 @@ -180,18 +180,18 @@ Cap. 12 IPC Pipe, fifo e code complete, - semafori quasi completi, memoria condivisa e + semafori memoria condivisa quasi completi, IPC POSIX da fare Cap. 13-14 Introduzione alla rete - completi, da revisionare + quasi completi, da revisionare Cap. 15-16 Socket TCP elementari - Caratteristiche base complete, esempio - elementare da concludere + Caratteristiche base quasi complete, + esempio elementare da concludere diff --git a/intro.tex b/intro.tex index 0ec6bcb..2330e66 100644 --- a/intro.tex +++ b/intro.tex @@ -1,3 +1,13 @@ +%% intro.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{L'architettura del sistema} \label{cha:intro_unix} @@ -181,17 +191,22 @@ programma. Quanto appena illustrato mette in evidenza il fatto che nella stragrande maggioranza dei casi,\footnote{esistono implementazioni diverse delle librerie - del C, come le \textit{libc5} o le \textit{uclib}, che non derivano dal - progetto GNU, ma oggi sono, tranne casi particolari, completamente - soppiantate dalle \acr{glibc}.} si dovrebbe usare il nome GNU/Linux -(piuttosto che soltanto Linux) in quanto una parte essenziale del sistema -(senza la quale niente funzionerebbe) è la GNU Standard C Library (in breve -\acr{glibc}), ovvero la libreria realizzata dalla Free Software Foundation -nella quale sono state implementate tutte le funzioni essenziali definite -negli standard POSIX e ANSI C, utilizzabili da qualunque programma. + Standard del C, come le \textit{libc5} o le \textit{uClib}, che non derivano + dal progetto GNU. Le \textit{libc5} oggi sono, tranne casi particolari, + completamente soppiantate dalle \acr{glibc}, le \textit{uClib} pur non + essendo complete come le \acr{glibc}, restano invece molto diffuse nel mondo + embedded per le loro di dimensioni ridotte (e soprattutto la possibilità di + togliere le parti non necessearie), e pertanto costituiscono un valido + rimpiazzo delle \acr{glibc} in tutti quei sistemi specializzati che + richiedono una minima occupazione di memoria.} si dovrebbe usare il nome +GNU/Linux (piuttosto che soltanto Linux) in quanto una parte essenziale del +sistema (senza la quale niente funzionerebbe) è la GNU Standard C Library (in +breve \acr{glibc}), ovvero la libreria realizzata dalla Free Software +Foundation nella quale sono state implementate tutte le funzioni essenziali +definite negli standard POSIX e ANSI C, utilizzabili da qualunque programma. Le funzioni di questa libreria sono quelle riportate dalla terza sezione del -\textsl{Manuale di Programmazione di Unix }(cioè accessibili con il comando +\textsl{Manuale di Programmazione di Unix} (cioè accessibili con il comando \cmd{man 3 }) e sono costruite sulla base delle chiamate al sistema del kernel; è importante avere presente questa distinzione, fondamentale dal punto di vista dell'implementazione, anche se poi, nella realizzazione di normali diff --git a/ipc.tex b/ipc.tex index 63b1557..783bfee 100644 --- a/ipc.tex +++ b/ipc.tex @@ -1,3 +1,13 @@ +%% ipc.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{La comunicazione fra processi} \label{cha:IPC} diff --git a/ipprot.tex b/ipprot.tex index 23598b1..8a64949 100644 --- a/ipprot.tex +++ b/ipprot.tex @@ -1,3 +1,13 @@ +%% ipprot.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{Il protocollo IP} \label{cha:ip_protocol} diff --git a/macro.tex b/macro.tex index c40e18c..d5b7574 100644 --- a/macro.tex +++ b/macro.tex @@ -1,3 +1,13 @@ +%% macro.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% % % Defining some commands to manipulate counter to avoid ude of % \label and \ref commands (and related problem to remeber the diff --git a/network.tex b/network.tex index eda8248..e0e7d28 100644 --- a/network.tex +++ b/network.tex @@ -1,3 +1,13 @@ +%% network.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{Introduzione alla programmazione di rete} \label{cha:network} diff --git a/pref.tex b/pref.tex index 2fd6792..ce22a11 100644 --- a/pref.tex +++ b/pref.tex @@ -1,3 +1,13 @@ +%% pref.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{Prefazione} \label{cha:preface} diff --git a/process.tex b/process.tex index dd898a8..cc8b3df 100644 --- a/process.tex +++ b/process.tex @@ -1,3 +1,13 @@ +%% process.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{L'interfaccia base con i processi} \label{cha:process_interface} @@ -482,10 +492,15 @@ allineato correttamente per tutti i tipi di dati; ad esempio sulle macchine a multipli di 8 byte. In genere si usano le funzioni \func{malloc} e \func{calloc} per allocare -dinamicamente la memoria necessaria al programma, e siccome i puntatori -ritornati sono di tipo generico non è necessario effettuare un cast per -assegnarli a puntatori al tipo di variabile per la quale si effettua -l'allocazione. +dinamicamente la quantità di memoria necessaria al programma indicata da +\param{size},\footnote{queste funzioni presentano un comportamento diverso fra + le \acr{glibc} e le \acr{uClib} quando il valore di \param{size} è nullo. + Nel primo caso viene comunque restituito un puntatore valido, anche se non è + chiaro a cosa esso possa fare riferimento, nel secondo caso viene restituito + \func{NULL}. Il comportamento è analogo con \code{realloc(NULL, 0)}.} e +siccome i puntatori ritornati sono di tipo generico non è necessario +effettuare un cast per assegnarli a puntatori al tipo di variabile per la +quale si effettua l'allocazione. La memoria allocata dinamicamente deve essere esplicitamente rilasciata usando \func{free}\footnote{le glibc provvedono anche una funzione \func{cfree} diff --git a/prochand.tex b/prochand.tex index 9c99227..583011a 100644 --- a/prochand.tex +++ b/prochand.tex @@ -1,3 +1,13 @@ +%% prochand.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{La gestione dei processi} \label{cha:process_handling} diff --git a/ringraziamenti.tex b/ringraziamenti.tex index 779eccc..8bd867d 100644 --- a/ringraziamenti.tex +++ b/ringraziamenti.tex @@ -1,3 +1,13 @@ +%% ringraziamenti.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{Ringraziamenti} \label{cha:ringraziamenti} diff --git a/session.tex b/session.tex index b2016fc..98a308a 100644 --- a/session.tex +++ b/session.tex @@ -1,3 +1,13 @@ +%% session.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{Terminali e sessioni di lavoro} \label{cha:session} diff --git a/signal.tex b/signal.tex index 4d748d9..3b11014 100644 --- a/signal.tex +++ b/signal.tex @@ -1,3 +1,13 @@ +%% signal.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{I segnali} \label{cha:signals} @@ -1384,8 +1394,8 @@ zombie. In \figref{fig:sig_sigchld_handl} è mostrato il codice contenente una implementazione generica di una routine di gestione per \macro{SIGCHLD}, (che -si trova nei sorgenti allegati nel file \file{HandSIGCHLD.c}); se ripetiamo i -test di \secref{sec:proc_termination}, invocando \cmd{forktest} con l'opzione +si trova nei sorgenti allegati nel file \file{SigHand.c}); se ripetiamo i test +di \secref{sec:proc_termination}, invocando \cmd{forktest} con l'opzione \cmd{-s} (che si limita ad effettuare l'installazione di questa funzione come gestore di \macro{SIGCHLD}) potremo verificare che non si ha più la creazione di zombie. @@ -1407,7 +1417,7 @@ di zombie. #include #include "macro.h" -void HandSIGCHLD(int sig) +void HandSigCHLD(int sig) { int errno_save; int status; diff --git a/simpltcp.tex b/simpltcp.tex index 8a6b2ae..dab0667 100644 --- a/simpltcp.tex +++ b/simpltcp.tex @@ -1,3 +1,13 @@ +%% simpltcp.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{Un esempio completo di client/server TCP} \label{cha:simple_TCP_sock} diff --git a/socket.tex b/socket.tex index ef729a5..0daa53a 100644 --- a/socket.tex +++ b/socket.tex @@ -1,3 +1,13 @@ +%% socket.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{Introduzione ai socket} \label{cha:socket_intro} diff --git a/sources/Gapil.h b/sources/Gapil.h index 00dc3a6..541cd49 100644 --- a/sources/Gapil.h +++ b/sources/Gapil.h @@ -1,3 +1,21 @@ +/* Gapil.h + * + * Copyright (C) 2002 Simone Piccardi + * + * 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 of the License, 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. + */ /***************************************************************************** * * File Gapil.h: @@ -5,7 +23,7 @@ * * Author: S. Piccardi * - * $Id: Gapil.h,v 1.1 2002/12/03 11:06:05 piccardi Exp $ + * $Id: Gapil.h,v 1.2 2002/12/03 22:30:11 piccardi Exp $ * *****************************************************************************/ #include /* IPC semaphore declarations */ diff --git a/sources/LockFile.c b/sources/LockFile.c index 492c23c..5fe7c3b 100644 --- a/sources/LockFile.c +++ b/sources/LockFile.c @@ -1,3 +1,21 @@ +/* LockFile.c + * + * Copyright (C) 2002 Simone Piccardi + * + * 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 of the License, 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. + */ /***************************************************************************** * * File LockFile.h: @@ -5,7 +23,7 @@ * * Author: S. Piccardi, Dec 2002 * - * $Id: LockFile.c,v 1.1 2002/12/03 11:06:05 piccardi Exp $ + * $Id: LockFile.c,v 1.2 2002/12/03 22:30:11 piccardi Exp $ * *****************************************************************************/ #include diff --git a/sources/Mutex.c b/sources/Mutex.c index 78b4fca..ddbb9b1 100644 --- a/sources/Mutex.c +++ b/sources/Mutex.c @@ -1,10 +1,28 @@ +/* Mutex.c + * + * Copyright (C) 2002 Simone Piccardi + * + * 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 of the License, 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. + */ /***************************************************************************** * * File Mutex.c: define a set of functions for mutex manipulation * * Author: S. Piccardi Dec. 2002 * - * $Id: Mutex.c,v 1.1 2002/12/03 11:06:05 piccardi Exp $ + * $Id: Mutex.c,v 1.2 2002/12/03 22:30:11 piccardi Exp $ * *****************************************************************************/ #include /* IPC semaphore declarations */ diff --git a/sources/SharedMem.c b/sources/SharedMem.c index 2715ca1..23f9c09 100644 --- a/sources/SharedMem.c +++ b/sources/SharedMem.c @@ -1,3 +1,21 @@ +/* SharedMem.c + * + * Copyright (C) 2002 Simone Piccardi + * + * 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 of the License, 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. + */ /*************************************************************** * * File SharedMem.c @@ -5,7 +23,7 @@ * * Author: S. Piccardi * - * $Id: SharedMem.c,v 1.1 2002/12/03 11:06:05 piccardi Exp $ + * $Id: SharedMem.c,v 1.2 2002/12/03 22:30:11 piccardi Exp $ * ***************************************************************/ #include /* SysV IPC shared memory declarations */ diff --git a/sources/SigHand.c b/sources/SigHand.c index 12a7c5b..53d185a 100644 --- a/sources/SigHand.c +++ b/sources/SigHand.c @@ -1,10 +1,28 @@ +/* SigHand.c + * + * Copyright (C) 2002 Simone Piccardi + * + * 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 of the License, 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. + */ /***************************************************************************** * * File SigHand.c: define a set of functions for signal manipulation * * Author: S. Piccardi Dec. 2002 * - * $Id: SigHand.c,v 1.1 2002/12/03 11:06:05 piccardi Exp $ + * $Id: SigHand.c,v 1.2 2002/12/03 22:30:11 piccardi Exp $ * *****************************************************************************/ #include /* error simbol definitions */ @@ -50,7 +68,7 @@ inline SigFunc * Signal(int signo, SigFunc *func) * Generic handler for SIGCHLD signal * * Simone Piccardi Dec. 2002 - * $Id: SigHand.c,v 1.1 2002/12/03 11:06:05 piccardi Exp $ + * $Id: SigHand.c,v 1.2 2002/12/03 22:30:11 piccardi Exp $ */ void HandSigCHLD(int sig) { diff --git a/sources/macros.h b/sources/macros.h index a82bdfe..9784c7a 100644 --- a/sources/macros.h +++ b/sources/macros.h @@ -1,3 +1,21 @@ +/* macros.h + * + * Copyright (C) 2000-2002 Simone Piccardi + * + * 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 of the License, 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. + */ /* * Endianess conversion for int and short types */ diff --git a/system.tex b/system.tex index 07e74f7..301d8ab 100644 --- a/system.tex +++ b/system.tex @@ -1,3 +1,13 @@ +%% system.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{La gestione del sistema, delle risorse, e degli errori} \label{cha:system} diff --git a/tcpprot.tex b/tcpprot.tex index 1625b62..12c66cd 100644 --- a/tcpprot.tex +++ b/tcpprot.tex @@ -1,3 +1,13 @@ +%% tcpprot.tex +%% +%% Copyright (C) 2000-2002 Simone Piccardi. Permission is granted to +%% copy, distribute and/or modify this document under the terms of the GNU Free +%% Documentation License, Version 1.1 or any later version published by the +%% Free Software Foundation; with the Invariant Sections being "Prefazione", +%% with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the +%% license is included in the section entitled "GNU Free Documentation +%% License". +%% \chapter{Il protocollo TCP} \label{cha:tcp_protocol}