[LTP] [PATCH] lib/tlibio: Get rid of support for old UNIXes
Petr Vorel
pvorel@suse.cz
Tue Apr 29 10:43:11 CEST 2025
Hi Cyril,
> Removes support for obsolete UNIXes CRAY, sgi, etc.
> Also removes the UCLIBC ifdefs that disabled most of the code because
> aio is not supported on UCLIBC.
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Great work, thanks!
Removing unused code is always useful.
Code is really old and would deserve refactoring.
Kind regards,
Petr
tlibio.c: In function ‘lio_write_buffer’:
tlibio.c:617:17: warning: ‘sigset’ is deprecated: Use the signal and sigprocmask functions instead [-Wdeprecated-declarations]
617 | sigset(sig, lio_async_signal_handler);
| ^~~~~~
In file included from /usr/include/x86_64-linux-gnu/sys/param.h:28,
from tlibio.c:83:
/usr/include/signal.h:367:23: note: declared here
367 | extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __THROW
| ^~~~~~
tlibio.c:698:25: warning: ‘sighold’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
698 | sighold(sig);
| ^~~~~~~
/usr/include/signal.h:355:12: note: declared here
355 | extern int sighold (int __sig) __THROW
| ^~~~~~~
tlibio.c:705:33: warning: ‘sigrelse’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
705 | sigrelse(sig);
| ^~~~~~~~
/usr/include/signal.h:359:12: note: declared here
359 | extern int sigrelse (int __sig) __THROW
| ^~~~~~~~
tlibio.c:725:25: warning: ‘sighold’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
725 | sighold(sig);
| ^~~~~~~
/usr/include/signal.h:355:12: note: declared here
355 | extern int sighold (int __sig) __THROW
| ^~~~~~~
tlibio.c:732:33: warning: ‘sigrelse’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
732 | sigrelse(sig);
| ^~~~~~~~
/usr/include/signal.h:359:12: note: declared here
359 | extern int sigrelse (int __sig) __THROW
| ^~~~~~~~
tlibio.c:759:25: warning: ‘sighold’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
759 | sighold(sig);
| ^~~~~~~
/usr/include/signal.h:355:12: note: declared here
355 | extern int sighold (int __sig) __THROW
| ^~~~~~~
tlibio.c:766:33: warning: ‘sigrelse’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
766 | sigrelse(sig);
| ^~~~~~~~
/usr/include/signal.h:359:12: note: declared here
359 | extern int sigrelse (int __sig) __THROW
| ^~~~~~~~
tlibio.c:507:22: warning: unused parameter ‘wrd’ [-Wunused-parameter]
507 | long wrd) /* to allow future features, use zero for now */
| ~~~~~^~~
tlibio.c: In function ‘lio_read_buffer’:
tlibio.c:999:17: warning: ‘sigset’ is deprecated: Use the signal and sigprocmask functions instead [-Wdeprecated-declarations]
999 | sigset(sig, lio_async_signal_handler);
| ^~~~~~
/usr/include/signal.h:367:23: note: declared here
367 | extern __sighandler_t sigset (int __sig, __sighandler_t __disp) __THROW
| ^~~~~~
tlibio.c:1080:25: warning: ‘sighold’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
1080 | sighold(sig);
| ^~~~~~~
/usr/include/signal.h:355:12: note: declared here
355 | extern int sighold (int __sig) __THROW
| ^~~~~~~
tlibio.c:1087:33: warning: ‘sigrelse’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
1087 | sigrelse(sig);
| ^~~~~~~~
/usr/include/signal.h:359:12: note: declared here
359 | extern int sigrelse (int __sig) __THROW
| ^~~~~~~~
tlibio.c:1107:25: warning: ‘sighold’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
1107 | sighold(sig);
| ^~~~~~~
/usr/include/signal.h:355:12: note: declared here
355 | extern int sighold (int __sig) __THROW
| ^~~~~~~
tlibio.c:1114:33: warning: ‘sigrelse’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
1114 | sigrelse(sig);
| ^~~~~~~~
/usr/include/signal.h:359:12: note: declared here
359 | extern int sigrelse (int __sig) __THROW
| ^~~~~~~~
tlibio.c:1141:25: warning: ‘sighold’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
1141 | sighold(sig);
| ^~~~~~~
/usr/include/signal.h:355:12: note: declared here
355 | extern int sighold (int __sig) __THROW
| ^~~~~~~
tlibio.c:1148:33: warning: ‘sigrelse’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
1148 | sigrelse(sig);
| ^~~~~~~~
/usr/include/signal.h:359:12: note: declared here
359 | extern int sigrelse (int __sig) __THROW
| ^~~~~~~~
tlibio.c:888:22: warning: unused parameter ‘wrd’ [-Wunused-parameter]
888 | long wrd) /* to allow future features, use zero for now */
| ~~~~~^~~
tlibio.c: In function ‘lio_check_asyncio’:
tlibio.c:1249:17: warning: ‘sigrelse’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
1249 | sigrelse(aiocbp->aio_sigevent.sigev_signo);
| ^~~~~~~~
/usr/include/signal.h:359:12: note: declared here
359 | extern int sigrelse (int __sig) __THROW
| ^~~~~~~~
tlibio.c: In function ‘lio_wait4asyncio’:
tlibio.c:1389:25: warning: ‘sigrelse’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
1389 | sigrelse(aiocbp->aio_sigevent.sigev_signo);
| ^~~~~~~~
/usr/include/signal.h:359:12: note: declared here
359 | extern int sigrelse (int __sig) __THROW
| ^~~~~~~~
tlibio.c:1397:25: warning: ‘sigrelse’ is deprecated: Use the sigprocmask function instead [-Wdeprecated-declarations]
1397 | sigrelse(aiocbp->aio_sigevent.sigev_signo);
| ^~~~~~~~
/usr/include/signal.h:359:12: note: declared here
359 | extern int sigrelse (int __sig) __THROW
| ^~~~~~~~
CC lib/tlibio.o
AR libltp.a
RANLIB libltp.a
More information about the ltp
mailing list