General :: Error While Calling Capget Function (EINVAL)?
Apr 27, 2011Error while calling capget function (EINVAL)
View 1 RepliesError while calling capget function (EINVAL)
View 1 RepliesI read somewhere that you should not be reading config space to determine the irq value to pass as the first argument to request_irq(). What is the proper way to determine the value of the 'irq' argument before calling this function? Hope this is the correct forum. I don't see one for drivers.
View 1 Replies View RelatedI have a question about calling an asm function from C....It doesn't work unless I create an asm variable to hold the value of the function in....Why?Here's the code that doesn't work...
asmfile.s - version one Code: .section .data
mydata: .ascii "this is the message!
.equ mylen, . - mydata
[code]...
I am doing a web site program and what I need is to call a C program in the PHP cloud.Do u think it would be possible? The web site would get the user input from PHP UI and pass to the C program , the C program would process the function with the user input and output the a PHP page.
View 2 Replies View RelatedI am writing device driver in which i have to call callback function from kernel space, which are saving my data. But the callback functions are in userspace. While accessing them i am getting segmentation fault.
View 1 Replies View Related[URL]
Code:
/* bsearch example */
#include <stdio.h>
[code]...
lets look at code in C
Code:
#include <stdio.h>
#include <stdlib.h>
[code]...
I have a new problem; i want to call a subroutine's fortran which have a function in the argument and the compilation ran properly, but when i execute the program this shows me an "Segmentation fault". This is my c++ program:
Code: //Main.cpp
#include <stdio.h>
#include <iostream>
[code]....
This is my first post. I am unable to call some of the fftw3 library functions in a very simple fortran code. The code is as follows (the filename is trial.f):
Code:
program trial
implicit none
[code]...
My calling application will accept only strings and interger. we are replacing RSA bsafe library to openssl. using RSA bsafe, we have generated the private and public key in BER format. Then convert the keys, BER format into ASCII format to send the calling function. (these everything done by using RSA supplied bsafe library) same way i have to right using openssl..i m now able convert the RSA public and private key into DER format
rsa = RSA_generate_key(1024, 3, NULL, NULL);
{
size_t size;
[code]....
Im really new to Linux much less Compiz. When I try to start in the terminal this is what I get. What can I do?WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported! This is an application bug!WARNING: Application calling GLX 1.3 function "glXDestroyPixmap" when GLX 1.3 is not supported
View 1 Replies View RelatedWhen boot-up in Ubuntu 10.04LTS and open my webpage, I can only see 1/4 of the page. The temporary fix that I have found is 'compiz --replace', BUT IS THERE A PERMANENT FIX? Below are the warnings I get after the temp. fix. compiz --replace
WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported! This is an application bug! Couldn't find a perfect decorator match; trying all decorators Starting gtk-window-decorator WARNING: Application calling GLX 1.3 function "glXDestroyPixmap" when GLX 1.3 is not supported! This is an application bug!
when i call the "system()" function from my C program everything works well, but when i try to call it from a cgi C program it doesn't work. the server log tells me this is a permission error.i have chmod'ed 755 the cgi program but it still does not work.
View 5 Replies View Relatedhi..
I'm using ubuntu 10.04 and whenever i start nautilus from command line it shows error:
Code:
root@aduait-laptop:~/Desktop# nautilus
Initializing nautilus-gdu extension
** (nautilus:9990): WARNING **: Error calling get_folders: Launch helper exited with unknown return code 1
** (nautilus:9990): WARNING **: Error calling get_folders: Launch helper exited with unknown return code 1
** (nautilus:9990): WARNING **: Error calling get_folders: Launch helper exited with unknown return code 1
** (nautilus:9990): WARNING **: Error calling get_folders: Launch helper exited with unknown return code 1
** (nautilus:9990): WARNING **: Error calling get_folders: Launch helper exited with unknown return code 1
I am working on software that is to run on a variety of linux machines where changing the os/version is not an option.My software uses the inotify_rm_watch call, and this is occassionally failing. In every case the operands are both valid, yet the result is EINVAL. This appears to only occurr when a watched file is deleted, and the read command on the inotify yeilds two events IN_DELETE_SELF AND IN_IGNORE (at the same time).I have seen a few messages detailing this same scenario - but no workarounds.
View 7 Replies View RelatedI have to unzip only files in zipped folder in current directory by c program. For that I am using system() function. This function returns zero.
when I write system("unzip -jo /storage/conf.zip") but folder will not be unzipped. Same will be successful if tried on command line.
I have a simple code like below. when I run this command javac callSMSClient.java I get this erros. Any solution to this please?
View 13 Replies View Relatedthe function terminates if no key is pressed for 10 consecutive seconds. I tried using the -t option as suggested in some forums, but my version of showkey doesn't have the option of changing the timeout. The options I get are:
-h --helpdisplay this help text
-a --asciidisplay the decimal/octal/hex values of the keys
-s --scancodesdisplay only the raw scan-codes
-k --keycodesdisplay only the interpreted keycodes (default).
Is it possible to write a script to use this function and still keep the function active until an interrupt is recieved?
I wrote the following script to organize my music files and to learn a bit more about bash.
My problem is, now that I'm almost over the first version, that functions which are surely spelled correctly and were recognized in the past, are giving me the "command not found" error!
Code:
#!/bin/bash
# This is a script for moving tagged files into organized directory trees.
##### Variables
filenum=0
[Code]....
I recently installed Matlab R2009b(64 bit) on my machine (AMD Athlon, 64 bit), and its working fine. I've been trying to run a few m-files which I downloaded (from here: [URL]) for a project of mine. A part of the code is as follows
% Call the binary executable
fpath = fileparts(which(mfilename));
if strncmp(computer,'PC',2) % MS Windows
exec_str = ['"' fpath '/xcv_segment.exe"'];
[Code]....
The issue is that as you can see, the code checks if it is a Windows or Linux platform, and it checks the latter by comparing with the string 'GLNX86'. When the code runs the error "This function can run only with MS Windows or Linux" is output as specified in the code. A little bit of googling revealed that GLNX86 is a library that has something to do with the 32 bit architecture of MATLAB.
So I tried installing the 32 bit version using the command,./install -glnx86 and I get the error message:./install: line 736: /lib/libc.so.6: No such file or directory (I also tried it without the GUI using -t but to no avail)
I've been trying to look for a way install the glnx86 library to see if that would address the problem but with no success.
I am just looking for a way to get this code run. (i tried commenting that part where it checks for the platform, but then the next error "Calling the binary failed." is output.
I have to call URL from shell script. E.g.: www.google.com. How can I call URL from the shell script.
View 6 Replies View RelatedSuddenly, i have problems when i call a script when i use some arguments/variables
Here is my code:
Code:
This is my output:
Code:
I want to call a application file in user space through a character driver running in kernel space.
View 1 Replies View Relatedhow can you remove all the makefiles and whatnot and basically restore the source package to its original form after you've called "./configure" or even "make" ?
for instance you changed the source code then you ran ./configure then make then make install ....etc you checked the software and it functioned as you expected it does , now you want to remove all the makefiles and all that other jizz that you don't need or want anymore in the source (obviously in order to package it for distribution)
what is the "standard" method for doing so?
I have a script1.sh (see code below) which calls another script (which is a sort of template -> template.sh). But when i call template.sh i need to send an argument with it.
Code:
#!/bin/sh
VAR=`./template.sh -d $dirpath`
exitstatus=`echo $VAR`
[code]....
echo "$VAR files which are older than 1 hour in folder $dirpath" exit $exitstatus I geuss the command should look like something like this command
Code:
./script1.sh -d /
You don't have to look at the code of template.sh, thats not important. I just need to know how i get this to work I don't think it's that hard, but i just can't see it ...
I have 2 shell scripts, script1.sh and script2.sh. I call script2.sh from within script1.sh ( by simple ./script2.sh command). Based on some condition, i use exit 0 to exit out of script2.sh. I was trying to find if i can exit out of script1.sh as well at once. below is the example
script1.sh
#!/bin/bash
echo "Before ..."
[code]....
When i execute below is the output
Before ...
There was problem file is empty
The Script will Exit. Please fix the issue and run again...
After ...
I am trying to exit out of script1.sh as well so that i dont print "After ..."
I am setting up a cron job, where i am calling a shell script to make few builds. I got struck at a point, need some expert inputs to proceed further. The script is categorized in 5 parts and in the last part while building software it asks for few questions like:-
1. Build mode choice
2. normal build
3. Copy Images
4. Arch
User manually has to input ans for these questions:-
1
yes
n
64
The ans's are fixed and this won't change. How shall i hard-code them or do something in the script so as when script flow reaches to this point it automatically take's these value. So far the cron job is not getting completed as it's waiting for user to key in these values manually. I had faced similar issue while building kernel modules but there it was easier as i had to take default values always:-
I am trying (desperately) to setup freeNX so that I can access my Mandriva box from my Macbook over my network. I have great need to be able to do this. Here's the necessary info for you: Mandriva PC: running Mandriva 2010.0 with freeNX installed from the Mandriva repos Macbook: running OS 10.4 with the Nomachine NX Client installed Now, I have followed the setup from the Mandriva wiki as well as the freenx wiki to no avail. I simply cannot connect the Macbook's NX client to the server. I get an authentication failed message. However, I can ssh from the Macbook to the server just fine (that's how I'm getting most of this work done).
[Code]...
I'm learning how to program kernel drivers, and I'm making a hello world module for that. But I can't find the cause of some errors... My module as three files:
test_regulator.c: Code: /*test_regulator.c
2 */
3 #include <linux/test_regulator.h>
4 #include <linux/module.h>
5 #include <linux/kernel.h>
6 #include <linux/regulator/driver.h>
code....
I don't understand, because I had declared the test_regulator_driver.
I have been trying to build a file called main.cpp through my make file which is in Linux.
There are functions like
Which are being called. I have included all the necessary headers and also have included the necessary lib.a files in the make file as below:
I am still getting the below error. I use make -j makefile.mak clean all command to make the build.