uhd/host/lib
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
..
cal
convert convert: Make narrowing conversions saturate 2022-02-28 14:47:47 -06:00
deps python: update to pybind11 for Python 3.11 2022-08-22 12:45:38 -05:00
experts experts: Move expert framework into public API 2022-07-20 15:56:32 -05:00
extension extension: Add extension framework 2022-08-30 08:49:26 -05:00
features
ic_reg_maps fixup! uhd: change default into option flag in register definition 2022-07-19 09:36:31 -05:00
include lib: Mark selected x400_dboard_iface child methods final 2023-04-10 10:38:06 -05:00
rc Fix handling of discontinuities in power calibration data 2022-03-23 16:12:03 -05:00
rfnoc fixup! rfnoc: Enable SEP throttle register 2023-04-25 16:31:05 -05:00
transport transport: Remove zero_copy_flow_ctrl 2022-06-03 06:12:41 -07:00
types C API: Fix double-free issue with sensor values 2022-11-11 15:31:50 -06:00
usrp b200: Fix invalid RF switch positions 2023-04-11 14:29:52 -05:00
usrp_clock octoclock: Fix uhd_usrp_probe error 2023-04-07 15:47:14 -05:00
utils Add in OpenBSD support to uhd::path_expandvars 2023-04-25 17:08:17 -05:00
build_info.cpp
CMakeLists.txt extension: Add extension framework 2022-08-30 08:49:26 -05:00
device.cpp
device_python.cpp
device_python.hpp
error_c.cpp
exception.cpp
image_loader.cpp
property_tree.cpp host: Throw exception when accessing properties with incorrect type 2022-02-07 14:43:46 -06:00
property_tree_python.cpp
property_tree_python.hpp
stream.cpp
stream_python.hpp
uhd.rc.in
version.cpp
version_c.cpp