ptsname_r is a non-portable GNU extension
Unfortunately, POSIX doesn't seem to have a thread-safe version of
ptsname_r is not available on FreeBSD. I am not sure how should we fix the issue. Should we simply fallback to the thread-unsafe
ptsname, or implement an equivalent of
ptsname_r for FreeBSD and leave an
#error in the
#else block for other operating systems?
ptsname on FreeBSD is a simple wrapper of
fdevname_r, so it is possible to implement a thread-safe
I found there is fallback code in
F_SETFD to set
O_NONBLOCK. I haven't checked whether it works, but the man page says
FD_CLOEXEC is the only flag that can be used with
O_* flags should be set by
There are still a few problems which prevent GNOME Builder from working properly on FreeBSD. This is just a quick note because I haven't spend time making patches for them.
ctagsshould be moved to the bottom of the list of possible names in
exctagscan be found before
autoreconfis usually installed in
/usr/bin, so autotools projects cannot be built because of 'command not found' error.
- The default
grepcommand is too old and it doesn't support
--exclude-dir. We may want to add a meson option for specifying the path to a recent version of GNU grep.
- GNOME Builder hangs in 'Caching build commands' step. I haven't debugged this issue.