Top "Errno" questions

errno is an integer variable, which is set by system calls and some library functions in the event of an error to indicate what went wrong.

Write to /tmp directory in aws lambda with python

Goal I'm trying to write a zip file to the /tmp folder in a python aws lambda, so I can …

python amazon-web-services lambda errno tmp
error: use of undeclared identifier 'errno_t'

Here is my dead simple dummy code: #include <errno.h> int main(void) { errno_t e; return 0; } Which …

c clang c11 errno tr24731
In which header file are EINVAL, ENOMEM, etc. defined in Linux?

It’s said that the error numbers like EINVAL, ENOMEM, etc. are defined in errno.h, but I can’t …

c linux errno
MY SQL - Error Code: 1010. Error dropping database (can't rmdir; errno: 13)

When trying to drop a database in MySQL 'DROP DATABASE IF EXISTS temporarydata' I am getting the following error Error …

mysql windows errno rmdir
What's the meaning of the %m formatting specifier?

The output for this code printed out ‘Success’. printf("%m\n");

c printf glibc errno format-specifiers
Bind error (99): Cannot assign requested address

I am trying to get the following piece of code working but receiving the above error. I am reasonably sure …

c sockets bind errno
Why return a negative errno? (e.g. return -EIO)

Another simple example: if (wpa_s->mlme.ssid_len == 0) return -EINVAL; Why the unary minus? Is this (usually) done …

c return-value errno
How to detect if errno_t is defined?

I'm compiling code using gcc that comes from Visual C++ 2008. The code is using errno_t, but in some versions …

c++ typedef errno
Should I set errno?

I'm writing a module which exports an interface similar to send and recv. Since those functions are supposed to return …

c errno
Get Errno from Python Requests ConnectionError?

I'm catching and printing Python Requests ConnectionErrors fine with just this: except requests.exceptions.ConnectionError as e: logger.warning(str(…

python python-2.7 exception-handling python-requests errno