uhd/host/lib/utils
Paul R. Tagliamonte 2b3c2008be Add in OpenBSD support to uhd::path_expandvars
OpenBSD has explicitly declined[1] to support 'wordexp' on their platform,
which just leaves glob(3) for expanding strings according to shell-like rules.
The API is similar, but -- notably -- does not support environment variable
expansion (for instance, the string "/home/${USER_NAME}/" will be left
unchanged, whereas wordexp(3) would expand it).

However, OpenBSD supports the well understood but non-POSIX extension to glob,
'GLOB_TILDE', which will allow for user directory expansion, such as
'~user/.ssh/authorized_keys' or '~/bin/*.sh'.

This is a fairly large difference between OpenBSD and other supported
platforms, but one that will at least enable libuhd to be built, but users
may need to be careful with filepaths, since they'll behave slightly
differently on OpenBSD than Windows, Linux or OSX.

```
sugartoad# uhd_find_devices
[INFO] [UHD] OpenBSD 1; Clang version 13.0.0 ; Boost_108000; UHD_4.4.0.0-68-g02558b69
[INFO] [B200] Loading firmware image: /usr/local/share/uhd/images/usrp_b200_fw.hex...
--------------------------------------------------
-- UHD Device 0
--------------------------------------------------
Device Address:
    serial: XXXXXXX
    name: MyB210
    product: B210
    type: b200
```

[1]: https://www.mail-archive.com/tech@openbsd.org/msg02325.html
2023-04-25 17:08:17 -05:00
..
chdr
cast.cpp
CMakeLists.txt
compat_check.cpp
config_parser.cpp
csv.cpp
eeprom_utils.cpp
gain_group.cpp
graph_utils.cpp rfnoc: graph_utils: Add ability to declare back-edges 2022-02-24 13:39:41 -06:00
ihex.cpp
load_modules.cpp
log.cpp log: Add DPDK version to system info 2022-04-01 13:26:09 -07:00
log_c.cpp
paths.cpp utils: Check install-prefix for images 2022-04-19 09:38:47 -07:00
paths_python.hpp
pathslib.cpp Add in OpenBSD support to uhd::path_expandvars 2023-04-25 17:08:17 -05:00
platform.cpp
prefs.cpp uhd: update to uniform SPDX license identifier 2022-09-01 14:16:30 -05:00
serial_number.cpp Fix build with GCC 13 (add missing <cstdint> include) 2023-01-12 17:52:12 -08:00
static.cpp
system_time.cpp uhd: update to uniform SPDX license identifier 2022-09-01 14:16:30 -05:00
tasks.cpp
thread.cpp
thread_priority_c.cpp
utils_python.hpp