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
1 answer

Errno::EACCEs...something to do with 'Sprockets'

Can anyone tell me how I can resolve this error that has started appearing in my app? Thanks for any help. Soemthing to do with...Sprockets? My app was working fine until recently. With regards 'line 9', application.js is in the admin folder, in…
CHarris
  • 2,693
  • 8
  • 45
  • 71
0
votes
0 answers

I can't upgrade Django to 1.5.2 - OSError: [Errno 13]

I already installed Django 1.4.3. Then when I used pip to upgrade Django, I got this error. $ pip install Django --upgrade Downloading/unpacking Django from…
Kenzo
  • 61
  • 2
  • 8
0
votes
1 answer

In which include file EPERM (returned by pthread_mutex_unlock) error code is declared?

Can anyone give me the right direction for this, as I am not able to find the declaration of EPERM in either pthread.h or errno.h (on openSUSE Linux). I found this in asm-generic/errno-base.h but is this the right one? Why its not in errno.h? Thanks
raj_arni
  • 959
  • 2
  • 15
  • 29
0
votes
1 answer

C socket: Connection refused[Errno 111]

I'm writing a simple socket server/client. Here is the server part: #include #include #include #include #include #include #include #include using…
nzomkxia
  • 1,219
  • 4
  • 16
  • 35
0
votes
1 answer

STDIN.getch as a non block event (it's possible?)

I'm trying to read a character instantly from command line without use of Enter. The ruby (ruby 1.9.3p374) code that I'm using is the following: require 'io/console' ch = STDIN.getch puts ch until now everithing is working fine but now i want to…
0
votes
1 answer

pthread error numbers: negated or not?

Looking at documentation for pthread_* functions such as pthread_rwlock_destroy and many others, this is how the documentation is worded: RETURN VALUE If successful, the pthread_rwlock_destroy() and pthread_rwlock_init() functions shall return…
Shahbaz
  • 46,337
  • 19
  • 116
  • 182
0
votes
4 answers

MYSQL Foreign Key Errno (150) Can't create table

I just started learning MYSQL in college and I have an important assignment to do for my class. I have to create a small database and I can't seem to add a table with foreign keys because of the errno(150) Here's what I have. create table…
0
votes
2 answers

MySQL can't add foreign key although column signatures are the same

I'm creating new database and I want to create a table Supplier_StockOut: CREATE TABLE StockOut_Supplier ( idStockOut_Supplier INT NOT NULL, idStockOut INT NOT NULL, idSupplier INT NOT NULL, idTransactionType INT NOT NULL, FOREIGN KEY…
Joe
  • 2,551
  • 6
  • 38
  • 60
0
votes
1 answer

Unable to download file from FTP using python. [Errno 10054] An existing connection was forcibly closed by the remote host

I am trying to download file from FTP using python 2.7. on Windows XP I am able to connect FTP but getting following error [Errno 10054] An existing connection was forcibly closed by the remote host Below is my code . import os from time import…
0
votes
2 answers

Can't create table errno 150

Here is my SQL script CREATE TABLE tracks( track_id int NOT NULL AUTO_INCREMENT, account_id int, track_name varchar(255), track_path varchar(255), track_art_path varchar(255), track_desc text, primary key(track_id), FOREIGN KEY (account_id)…
user962206
  • 15,637
  • 61
  • 177
  • 270
0
votes
1 answer

Errno 22 after call to fdopen()

I am getting an error when calling fdopen and it sets errno to 22. I am using the exec command to call a child process. The child calls fdopen on file descriptor 4. The first child works and sends data back to the parent and errno is 0. After the…
DFord
  • 2,352
  • 4
  • 33
  • 51
0
votes
2 answers

How to add description of my error to perror function

How can I add an error to the perror stack? here is an example of what I want #include #include int Div (int a, int b, int * c) { if (b == 0) { // add to perror: "cannot divide by zero!" return 0; } *c =…
Patrick Lorio
  • 5,520
  • 11
  • 45
  • 74
-1
votes
1 answer

Using Select() and getting "no error" errors returned

I'm having some issues using Select() to determine when there is data available to read on a socket. I expect the socket I'm connecting to to have no data and thus for select to return a timeout or 0 value. Instead, I get -1 value and the message…
ProGirlXOXO
  • 2,170
  • 6
  • 25
  • 47
-1
votes
0 answers

PermissionError: [Errno 13] Permission denied on python

I have this PermissionError, I know it has been already solved but I don't know how to change it. Failed to download model: web-bert-similarity Traceback (most recent call last): File "c:/ESEO-ANGERS/Stage-S7/IVI/.venv/test.py", line 52, in…
Hervegmz
  • 11
  • 3
-1
votes
1 answer

Should you print perror if errno isn't set?

I have a function that may or may not set errno because it is implementation-defined, and I just want to print errno if it exists, and not if it doesn't. I tried to figure out if I can test if errno == 0, but people say not to do that, so now I had…
devgirl05
  • 173
  • 7