Examples of using Errno in English and their translations into Polish
{-}
-
Colloquial
-
Official
-
Medicine
-
Ecclesiastic
-
Ecclesiastic
-
Financial
-
Official/political
-
Programming
-
Computer
-1 is returned, and errno is set appropriately.
It was common in traditional C to declare errno manually(i.e., extern int errno) instead of including< errno.h.
H> header file defines the integer variable errno, which is set by system calls
this condition is detected, errno is set to EINVAL.
The fopen() function may also fail and set errno for any of the errors specified for the routine open2.
POSIX allows a read() that is interrupted after reading some data to return -1(with errno set to EINTR)
seq routines may fail and set errno for any of the errors specified for the library routines read(2),
no child process will be created, and errno will be set appropriately.
The dbopen() routine may fail and set errno for any of the errors specified for the library routines open(2)
Open() and creat() return the new file descriptor, or -1 if an error occurred in which case, errno is set appropriately.
The fdopen() function may also fail and set errno for any of the errors specified for the routine fcntl2.
Dup() and dup2() return the new descriptor, or -1 if an error occurred in which case, errno is set appropriately.
The fclose() function may also fail and set errno for any of the errors specified for the routines close(2), write(2)
The sync routines may fail and set errno for any of the errors specified for the library routine fsync(2). BUGS.
The freopen() function may also fail and set errno for any of the errors specified for the routines open(2), fclose(3) and fflush3.
freopen() functions may also fail and set errno for any of the errors specified for the routine malloc3.
All of these functions may fail and set errno for any of the errors specified for the library function execve2.
buffer if it succeeds, or a -1 if an error occurs, placing the error code in errno.
if you use a private malloc implementation that does not set errno, then certain library routines may fail without having a reason in errno.
it is necessary to clear the external variable errno prior to the call,