Ludovic Courtès a14dafaa01
syscalls: Add fallback case for ‘terminal-string-width’.
This makes ‘terminal-string-width’ synonymous with ‘string-length’ when
running one a statically-linked Guile, as is the case in some unit
tests, instead of throwing ENOSYS.

* guix/build/syscalls.scm (terminal-string-width): Use ‘dynamic-func’
and ‘pointer->procedure’ instead of ‘syscall->procedure’.  Return
‘string-length’ when one of the ‘dynamic-func’ calls fails.

Change-Id: Icf55c9e7c34b46fac91b665fb4a2ecb02160f22e
2023-11-25 16:29:25 +01:00
..
2023-08-12 23:02:31 +02:00
2023-03-13 15:08:33 +01:00
2019-12-15 00:34:05 +01:00
2023-09-26 17:36:58 +02:00
2023-03-13 15:08:33 +01:00
2020-12-09 22:25:17 +01:00
2023-08-25 14:24:43 +02:00
2017-11-08 22:31:58 +01:00
2023-03-13 15:08:33 +01:00
2022-06-10 23:52:34 -04:00
2023-11-05 17:51:38 +00:00
2022-12-02 23:11:09 +01:00
2022-07-10 23:57:14 +02:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-03-13 15:08:33 +01:00
2023-09-26 17:36:58 +02:00
2015-01-11 23:50:01 +01:00
2023-03-13 15:08:33 +01:00
2022-02-14 11:23:07 +01:00
2023-10-26 15:21:35 +02:00