Questions tagged [errno]

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. Its value is significant only when the return value of the call indicated an error.

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. Its value is significant only when the return value of the call indicated an error.

559 questions
0
votes
2 answers

IO ERROR(ERRNO 20) while Accessing a file inside a folder in python

This is a code for accessing a file inside a folder using with open() as:{} option. with open("DATABASE\password.txt") as _2_: password=_2_.readlines() with open("DATABASE/names.txt") as _3_: names=_3_.readlines() with…
Kishore_Vasan
  • 11
  • 1
  • 7
0
votes
1 answer

Errno 10048 when trying to read again from network through Bacpypes

I use a python library called Bacpypes in order to read bacnet points in network. In my first trial of reading my points with function MultipleReadProperty , there is no problem. I get all values without any problem. But in second poll i get an…
Şansal Birbaş
  • 443
  • 1
  • 6
  • 14
0
votes
2 answers

Can't create table (errno: 150) on FOREIGN KEY

I saw a lot of same question but I couldn't solve my case. If I run this code:
ali raha
  • 211
  • 1
  • 2
  • 14
0
votes
0 answers

Python: Recursively move/backup file folders older than x days. error 183

I'm writing a script to backup folders older then X days to another destination. I keep getting an error 183 'Access is denied' What do I do wrong? import os import time xdays = 21 path = 'c:\\test' new = 'c:\\test_test' now = time.time() for…
0
votes
1 answer

How to see the error of open()

I am working with pipes and one pipe won't open, even though mkfifo() was successful. I have this: /* create the FIFO (named pipe) */ int ret_mk = mkfifo(out_myfifo, 0666); if(ret_mk < 0) { perror(out_myfifo); unlink(out_myfifo); return…
gsamaras
  • 71,951
  • 46
  • 188
  • 305
0
votes
1 answer

Invalid Argument Reported By getdelim

I'm trying to use the getdelim function to read an entire text file's contents into a string. Here is the code I am using: ssize_t bytesRead = getdelim(&buffer, 0, '\0', fp); This is failing however, with strerror(errno) saying "Error: Invalid…
Arcana
  • 239
  • 5
  • 13
0
votes
0 answers

torque qsub mpiexec error. Errno:9

I have installed Torque 4.2.0 on a Raspberry Pi cluster with 2 nodes. Installed Torque_server and torque_sched on server and torque_mom on the nodes. I managed to run qsub scripts successfully, but, after installing "the other" mpiexec ( as…
0
votes
1 answer

Unexpected errno 24 (too many open files) from ld linker

I'm trying to build Stepmania (https://github.com/stepmania/stepmania @ master[a09e3477]) on OSX 10.10 with Xcode 6.0.1. Others have successfully done so on OSX 10.10, though because of the merge date, it would have had to have been on an earlier…
Edward Anderson
  • 13,591
  • 4
  • 52
  • 48
0
votes
1 answer

Prepared statement getting error 0

Trying to make a prepare statement but for some reason it fails me and i'm getting errno 0 with error (text) being blank. What is causing this? Have been searching the web for a quite while now.
0
votes
1 answer

set errno by pthread_create() function (issue)

I run below code on ubuntu and embedded linux(our project chip). But outputs are different. Why thread errno is 0 when run on the embedded linux? How can i get same output? Can pthread_create() function set errno? Besides I used fork() function…
0
votes
2 answers

C - Returning negative value as unsigned sets errno?

Good day, I'm reading through some old code I've been asked to maintain, and I see a number of functions that are like so: uint32_t myFunc(int* pI); In the case of error conditions within the body of the function, the function exits early by…
Cloud
  • 18,753
  • 15
  • 79
  • 153
0
votes
2 answers

errno returns zero always in VxWorks PPC

I am running my code on VxWorks PPC and incase of system call failures especially for socket send / recv functions, errno returns 0 always. After some analysis I found that, errno returns 0 incase of all system call failures. Is there any…
Jay
  • 24,173
  • 25
  • 93
  • 141
0
votes
1 answer

select returns "No such file or directory"

I have implemented a client that talks to another server. Both exchange messages using a TCP/IP socket. I notice that each time the server sends me a message i get the following perror "No such file or directory" on my select call. Whats strange is…
Abhishek
  • 275
  • 7
  • 18
0
votes
1 answer

python errno 23 - socket livestatus

I'm trying to send two queries to the server with this script, to get the MK Livestatus: live.py #!/usr/bin/python socket_path = "/tmp/run/live" import socket s = socket.socket(socket.AF_UNIX, socket.SOCK_STREAM) s.connect(socket_path) # Get…
0
votes
1 answer

Can't create table (errno: 150) with added KEY

I have a problem with adding part of db to ready db. It looks like: SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE,…
user3713526
  • 435
  • 7
  • 16