From 6dbafc3dcbc3e96af38174f5c5ef446c65ce6ead Mon Sep 17 00:00:00 2001 From: Simone Piccardi Date: Tue, 30 Jul 2019 19:39:40 +0200 Subject: [PATCH] Piccole correzioni ed aggiunte di TODO --- filedir.tex | 3 +++ procadv.tex | 10 ++++++++++ signal.tex | 3 +++ sources/test_linkat.c | 6 ++++-- 4 files changed, 20 insertions(+), 2 deletions(-) diff --git a/filedir.tex b/filedir.tex index 90e731e..cd2905c 100644 --- a/filedir.tex +++ b/filedir.tex @@ -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/procadv.tex b/procadv.tex index 0a5c441..06454cc 100644 --- a/procadv.tex +++ b/procadv.tex @@ -2123,6 +2123,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 +2196,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/signal.tex b/signal.tex index 965ec01..2216c9d 100644 --- a/signal.tex +++ b/signal.tex @@ -3655,6 +3655,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/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); } -- 2.30.2