From: Simone Piccardi Date: Sat, 17 Aug 2019 12:48:38 +0000 (+0200) Subject: Merge branch 'master' of ssh://roach.truelite.it/srv/git/gapil X-Git-Url: https://gapil.gnulinux.it/gitweb/?p=gapil.git;a=commitdiff_plain;h=2535dbace6167c4bcff7dd9c98f4d397bb699afd;hp=765eeb677771d137d01ceda494df4ce75981ae5a Merge branch 'master' of ssh://roach.truelite.it/srv/git/gapil --- diff --git a/build.tex b/build.tex index 09530a5..cec0b2d 100644 --- a/build.tex +++ b/build.tex @@ -1,6 +1,6 @@ %% build.tex %% -%% Copyright (C) 1999-2018 Simone Piccardi. Permission is granted to copy, +%% Copyright (C) 1999-2019 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 "Un preambolo", diff --git a/errors.tex b/errors.tex index 0d40a33..2aa5224 100644 --- a/errors.tex +++ b/errors.tex @@ -1,6 +1,6 @@ %% errors.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/fileadv.tex b/fileadv.tex index 20e8200..45a5615 100644 --- a/fileadv.tex +++ b/fileadv.tex @@ -1,6 +1,6 @@ %% fileadv.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/filedir.tex b/filedir.tex index 90e731e..d2558c5 100644 --- a/filedir.tex +++ b/filedir.tex @@ -1,6 +1,6 @@ %% filedir.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", @@ -1402,6 +1402,9 @@ trattazione, di queste funzioni, rimandando al manuale della \acr{glibc} % TODO (bassa priorità) scrivere delle funzioni (getfsent e getmntent &C) % TODO (bassa priorità) documentare ? swapon e swapoff (man 2 ...) +% TODO con il 5.2 è stata introdotta una serie di nuove syscall per montare un +% filesystem, vedi https://lwn.net/Articles/759499/ e +% https://git.kernel.org/linus/f1b5618e013a \section{La gestione di file e directory} diff --git a/fileio.tex b/fileio.tex index 94ac81d..27c02ac 100644 --- a/fileio.tex +++ b/fileio.tex @@ -1,6 +1,6 @@ %% fileio.tex (merge fileunix.tex - filestd.tex) %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/gapil.tex b/gapil.tex index f910799..4439b5b 100644 --- a/gapil.tex +++ b/gapil.tex @@ -1,6 +1,6 @@ %% gapil.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 Simone Piccardi. Permission is granted to %% copy, distribute and/or modify this document under the terms of the GNU Free %% Documentation License, Version 1.3 or any later version published by the %% Free Software Foundation; with the Invariant Sections being "Un preambolo", @@ -136,7 +136,7 @@ hyperfootnotes=false]{hyperref} \begin{quote} - Copyright \copyright\ 2000-2018 Simone Piccardi. Permission is granted to + Copyright \copyright\ 2000-2019 Simone Piccardi. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with the Invariant Sections being ``Un preambolo'' diff --git a/intro.tex b/intro.tex index bf872b8..4059f5e 100644 --- a/intro.tex +++ b/intro.tex @@ -1,6 +1,6 @@ %% intro.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/ipc.tex b/ipc.tex index fced05b..f50eeac 100644 --- a/ipc.tex +++ b/ipc.tex @@ -1,6 +1,6 @@ %% ipc.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/macro.tex b/macro.tex index 564d0b2..3cd6b92 100644 --- a/macro.tex +++ b/macro.tex @@ -1,6 +1,6 @@ %% macro.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/netlayer.tex b/netlayer.tex index 45239b4..4ed5260 100644 --- a/netlayer.tex +++ b/netlayer.tex @@ -1,6 +1,6 @@ %% netlayer.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/network.tex b/network.tex index 56120df..dde8230 100644 --- a/network.tex +++ b/network.tex @@ -1,6 +1,6 @@ %% network.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/othersock.tex b/othersock.tex index bffd4ae..325fb0d 100644 --- a/othersock.tex +++ b/othersock.tex @@ -1,6 +1,6 @@ %% othersock.tex %% -%% Copyright (C) 2004-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2004-2019 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 "Un preambolo", diff --git a/preambolo.tex b/preambolo.tex index 50be429..522eb13 100644 --- a/preambolo.tex +++ b/preambolo.tex @@ -1,6 +1,6 @@ %% preambolo.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/pref.tex b/pref.tex index 42ec844..4659e92 100644 --- a/pref.tex +++ b/pref.tex @@ -1,6 +1,6 @@ %% pref.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/procadv.tex b/procadv.tex index 0a5c441..d44570f 100644 --- a/procadv.tex +++ b/procadv.tex @@ -1941,6 +1941,9 @@ si intende creare un \textit{thread}. L'esecuzione del programma creato da \func{sys\_clone} riprende, come per \func{fork}, da dopo l'esecuzione della stessa. +% TODO trattare anche clone3 (vedi https://lwn.net/Articles/792628/), aggiunta +% con il kernel 5.3 + La necessità di avere uno \textit{stack} alternativo c'è solo quando si intende creare un \textit{thread}, in tal caso infatti il nuovo \textit{task} vede esattamente la stessa memoria del \textit{task} @@ -2123,6 +2126,9 @@ elenco, che illustra quelle attualmente disponibili:\footnote{si fa \item[\constd{CLONE\_PARENT\_SETTID}] \item[\constd{CLONE\_PID}] +% TODO trattare CLONE_PIDFD introdotto con il kernel 5.2, vedi +% https://lwn.net/Articles/787963/ e anche https://lwn.net/Articles/789023/ + \item[\constd{CLONE\_PTRACE}] se questo flag viene impostato ed il processo chiamante viene tracciato (vedi sez.~\ref{sec:process_ptrace}) anche il figlio viene tracciato. @@ -2193,6 +2199,13 @@ degli altri gruppi, che costituisce poi quello che viene chiamato un \label{sec:process_special} +% TODO: trattare userfaultfd, introdotta con il 4.23, vedi +% http://man7.org/linux/man-pages/man2/userfaultfd.2.html + +% TODO: trattare process_vm_readv/process_vm_writev introdotte con il kernel +% 3.2, vedi http://man7.org/linux/man-pages/man2/process_vm_readv.2.html e i +% precedenti tentativi https://lwn.net/Articles/405346/ + \subsection{La gestione delle operazioni in virgola mobile} \label{sec:process_fenv} diff --git a/process.tex b/process.tex index f444745..cb1fa55 100644 --- a/process.tex +++ b/process.tex @@ -1,6 +1,6 @@ %% process.tex %% -%% Copyright (C) 2000-2018 by Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 by 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 "Un preambolo", diff --git a/prochand.tex b/prochand.tex index 3b69db3..3da6faf 100644 --- a/prochand.tex +++ b/prochand.tex @@ -1,6 +1,6 @@ %% prochand.tex %% -%% Copyright (C) 2000-2018 by Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 by 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 "Un preambolo", diff --git a/ringraziamenti.tex b/ringraziamenti.tex index b9b7321..6d4e77e 100644 --- a/ringraziamenti.tex +++ b/ringraziamenti.tex @@ -1,6 +1,6 @@ %% ringraziamenti.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/session.tex b/session.tex index 0fbe521..639cf0d 100644 --- a/session.tex +++ b/session.tex @@ -1,6 +1,6 @@ %% session.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/signal.tex b/signal.tex index 965ec01..59ef545 100644 --- a/signal.tex +++ b/signal.tex @@ -1,6 +1,6 @@ %% signal.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", @@ -1292,6 +1292,8 @@ eventuali funzioni registrate con \func{atexit} e \func{on\_exit}. % usare un PID, vedi anche https://lwn.net/Articles/773459/, % https://git.kernel.org/linus/3eb39f47934f +% TODO c'è pure pidfd_open() (vedi https://lwn.net/Articles/789023/) per +% ottere un pid fd pollabile aggiunta con il kernel 5.3 \subsection{Le funzioni di allarme ed i \textit{timer}} \label{sec:sig_alarm_abort} @@ -3655,6 +3657,9 @@ In questo ultimo paragrafo esamineremo le rimanenti funzioni di gestione dei segnali non descritte finora, relative agli aspetti meno utilizzati e più ``\textsl{esoterici}'' della interfaccia. +% TODO: trattare (qui?) pidfd_send_signal() introdotta con il kernel 5.1 vedi +% https://lwn.net/Articles/784831/ e https://lwn.net/Articles/773459/ + La prima di queste funzioni è la funzione di sistema \funcd{sigpending}, anch'essa introdotta dallo standard POSIX.1, il suo prototipo è: diff --git a/sockadv.tex b/sockadv.tex index 98cb8dc..a9e4cd5 100644 --- a/sockadv.tex +++ b/sockadv.tex @@ -1,6 +1,6 @@ %% sockadv.tex %% -%% Copyright (C) 2004-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2004-2019 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 "Un preambolo", diff --git a/sockctrl.tex b/sockctrl.tex index 6cafe13..9d5279e 100644 --- a/sockctrl.tex +++ b/sockctrl.tex @@ -1,6 +1,6 @@ %% sockctrl.tex %% -%% Copyright (C) 2004-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2004-2019 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", diff --git a/socket.tex b/socket.tex index 78be58c..b01ff3a 100644 --- a/socket.tex +++ b/socket.tex @@ -1,6 +1,6 @@ %% socket.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/sources/Flock.c b/sources/Flock.c index 82790ec..90e7661 100644 --- a/sources/Flock.c +++ b/sources/Flock.c @@ -36,7 +36,7 @@ #include /* standard I/O library */ #include /* C strings library */ #include /* file control functions */ - +#include /* user defined header */ #include "macros.h" /* some useful macros */ diff --git a/sources/FortuneClient.c b/sources/FortuneClient.c index 5d8ba0a..99af385 100644 --- a/sources/FortuneClient.c +++ b/sources/FortuneClient.c @@ -38,6 +38,7 @@ #include /* file control functions */ #include /* C strings library */ #include /* system limits constants, types and functions */ +#include #include "macros.h" diff --git a/sources/Gapil.h b/sources/Gapil.h index dc421f4..70c796d 100644 --- a/sources/Gapil.h +++ b/sources/Gapil.h @@ -56,36 +56,36 @@ union semun { * Mutex handling Functions */ /* Function MutexCreate: create a mutex. See Mutex.c */ -inline int MutexCreate(key_t ipc_key); +int MutexCreate(key_t ipc_key); /* Function MutexFind: get the mutex ID given fomr IPC key. See Mutex.c */ -inline int MutexFind(key_t ipc_key); +int MutexFind(key_t ipc_key); /* Function MutexRead: read the current value of the mutex. See Mutex.c */ -inline int MutexRead(int sem_id); +int MutexRead(int sem_id); /* Function MutexLock: to lock a mutex/semaphore. See Mutex.c */ -inline int MutexLock(int sem_id); +int MutexLock(int sem_id); /* Function MutexUnlock: to unlock a mutex/semaphore. See Mutex.c */ -inline int MutexUnlock(int sem_id); +int MutexUnlock(int sem_id); /* Function MutexRemove: remove the mutex/semphore. See Mutex.c */ -inline int MutexRemove(int sem_id); +int MutexRemove(int sem_id); /* Function CreateMutex: create a mutex (using file locking). See Mutex.c */ -inline int CreateMutex(const char *path_name); +int CreateMutex(const char *path_name); /* Function UnlockMutex: find a mutex (using file locking). See Mutex.c */ -inline int FindMutex(const char *path_name); +int FindMutex(const char *path_name); /* Function LockMutex: acquire a mutex (using file locking). See Mutex.c */ -inline int LockMutex(int fd); +int LockMutex(int fd); /* Function UnlockMutex: release a mutex (using file locking). See Mutex.c */ -inline int UnlockMutex(int fd); +int UnlockMutex(int fd); /* Function ReadMutex: read a mutex (using file locking). See Mutex.c */ -inline int ReadMutex(int fd); +int ReadMutex(int fd); /* Function RemoveMutex: remove a mutex (using file locking). See Mutex.c */ -inline int RemoveMutex(const char *path_name); +int RemoveMutex(const char *path_name); /* * Lock files function: to create and destroy lock files */ /* Function LockFile: create a lock file. See FileLock.c */ -inline int LockFile(const char* path_name); +int LockFile(const char* path_name); /* Function UnlockFile: remove a lock file. See FileLock.c */ -inline int UnlockFile(const char* path_name); +int UnlockFile(const char* path_name); /* * Signal Handling Functions */ diff --git a/sources/Makefile b/sources/Makefile index 97f4dfe..ea5155b 100644 --- a/sources/Makefile +++ b/sources/Makefile @@ -23,13 +23,13 @@ $(OBJ): Gapil.h all: $(FINAL) $(LIB) dirmonitor: DirMonitor.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ $(CFLAGJ) -lrt readmon: ReadMonitor.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ $(CFLAGJ) -lrt myls: myls.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ $(CFLAGJ) -lrt mylschroot: mylschroot.c $(CC) --static $^ dir_scan.o -o $@ @@ -38,22 +38,22 @@ flock: Flock.c $(CC) $^ -o $@ mqfortune: MQFortuneClient.c FortuneParse.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ $(CFLAGJ) mqfortuned: MQFortuneServer.c FortuneParse.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ $(CFLAGJ) -lrt fortune: FortuneClient.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ fortuned: FortuneServer.c FortuneParse.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ $(CFLAGJ) -lrt message_setter: message_setter.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ $(CFLAGJ) -lrt message_getter: message_getter.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ $(CFLAGJ) -lrt -lpthread barcode: BarCode.c $(CC) $^ -o $@ @@ -62,60 +62,60 @@ barcodepage: BarCodePage.c $(CC) $^ -o $@ getparam: getparam.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ testfopen: test_fopen.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ testren: TestRen.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ forktest: fork_test.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ $(CFLAGJ) -lrt errcode: ErrCode.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ uecho: UDP_echo.c - $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@ + $(CC) $(CFLAGS) $^ -o $@ $(CFLAGJ) techo: TCP_echo.c - $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@ + $(CC) $(CFLAGS) $^ -o $@ $(CFLAGJ) -lrt echod: TCP_echod.c - $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@ + $(CC) $(CFLAGS) $^ -o $@ $(CFLAGJ) -lrt sechod: select_echod.c - $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@ + $(CC) $(CFLAGS) $^ -o $@ $(CFLAGJ) -lrt pechod: poll_echod.c - $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@ + $(CC) $(CFLAGS) $^ -o $@ $(CFLAGJ) -lrt daytimed: UDP_daytimed.c # TCP_cunc_daytimed.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ iterdaytimed: TCP_iter_daytimed.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ daytime: UDP_daytime.c # TCP_daytime.c - $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@ + $(CC) $(CFLAGS) $^ -o $@ ipctestid: IPCTestId.c - $(CC) $^ -o $@ + $(CC) $^ -o $@ writeshm: WriteShm.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ $(CFLAGJ) -lrt mygetaddr: mygetaddr.c - $(CC) $(CFLAGJ) $^ -o $@ + $(CC) $^ -o $@ endtest: endtest.c -readshm: ReadShm.c - $(CC) $(CFLAGJ) $^ -o $@ +#readshm: ReadShm.c +# $(CC) $^ -o $@ wwwd: wwwd.c - $(CC) $(CFLAGJ) $(CFLAGS) $^ -o $@ + $(CC) $(CFLAGS) $^ -o $@ $(CFLAGJ) -lrt acctctrl: AcctCtrl.c $(CC) $(CFLAGS) $^ -o $@ diff --git a/sources/getparam.c b/sources/getparam.c index f44f51d..b5207b7 100644 --- a/sources/getparam.c +++ b/sources/getparam.c @@ -172,8 +172,8 @@ int main(int argc, char *argv[]) usage(); } for (i=0; i<=4; i++) { - printf("Response for %s is %ld, values is %ld\n", names[i], - sysconf(argument[i]), values[i]); + printf("Response for %s is %ld, values is %ld\n",sc_names[i], + sysconf(sc_argument[i]), values[i]); } return 0; } diff --git a/sources/test_linkat.c b/sources/test_linkat.c index b43fa23..6931cd7 100644 --- a/sources/test_linkat.c +++ b/sources/test_linkat.c @@ -142,10 +142,12 @@ int main(int argc, char *argv[]) * routine to print usage info and exit */ void usage(void) { - printf("Program testlinkat : test fopen for a file \n"); + printf("Program testlinkat : test linkat for a file \n"); printf("Usage:\n"); - printf(" testfopen [-h] file mode \n"); + printf(" testlinkat [-h] file mode \n"); printf(" -h print this help\n"); + printf(" -w [N] wait N seconds\n"); + printf(" -f [file] use file as source\n"); exit(1); } diff --git a/system.tex b/system.tex index 820bf41..aa305f2 100644 --- a/system.tex +++ b/system.tex @@ -1,6 +1,6 @@ %% system.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/tcpsock.tex b/tcpsock.tex index da47e6f..488dbc5 100644 --- a/tcpsock.tex +++ b/tcpsock.tex @@ -1,6 +1,6 @@ %% tcpsock.tex %% -%% Copyright (C) 2000-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2000-2019 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 "Un preambolo", diff --git a/thread.tex b/thread.tex index d563477..62f4dfd 100644 --- a/thread.tex +++ b/thread.tex @@ -1,6 +1,6 @@ %% thread.tex %% -%% Copyright (C) 2007-2018 Simone Piccardi. Permission is granted to +%% Copyright (C) 2007-2019 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 "Un preambolo", diff --git a/trasplayer.tex b/trasplayer.tex index b43bd08..97b0efb 100644 --- a/trasplayer.tex +++ b/trasplayer.tex @@ -1,6 +1,6 @@ %% tcpprot.tex %% -%% Copyright (C) 2002-2018 Simone Piccardi. Permission is granted to copy, +%% Copyright (C) 2002-2019 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 "Un preambolo",