GNOME Bugzilla – Bug 759197
EBADFD is not available in POSIX standard
Last modified: 2015-12-08 17:53:21 UTC
EBADFD is not specified in POSIX standard, so it may be unavailable. Can we can replace it with EBADF? Vte code: vte::util::smart_fd fd(masterfd); if (fd == -1) { errno = EBADFD; return -1; } Linux man pages: EBADF Bad file descriptor (POSIX.1) EBADFD File descriptor in bad state -1 is an invalid file descriptor, not a valid file descriptor with bad state, so I think EBADF is better than EBADFD.
Created attachment 316965 [details] [review] Replace EBADFD with EBADF Using EBADF is more portable and correct because EBADFD means a file descriptor in bad state, not an invalid file descriptor.
Comment on attachment 316965 [details] [review] Replace EBADFD with EBADF Sure :-)
Attachment 316965 [details] pushed as 1e564f9 - Replace EBADFD with EBADF