General :: Tell What Number '2' Refers To In Function Calls?

Apr 29, 2010

Can someone tell me what the number '2' refers to in function calls, for example fork(2).

View 3 Replies


ADVERTISEMENT

Programming :: Real Difference Between System Calls And Normal Function Calls?

Oct 26, 2010

What is the real difference between system calls and normal function calls. Ultimately function calls too would be passed to kernel for some or the other work.

View 7 Replies View Related

General :: Command / C Function To See Cpu Number On Which Process Running?

Feb 22, 2011

When I fork multiple processes, is there some command or c function to see the cpu number on which the processes are running?

View 3 Replies View Related

Programming :: Write A Function That Counts The Number Of Occurrences Of A Pair Of Letters In A String?

Sep 9, 2010

Some help with this problem:Code:Write a function that counts the number of occurrences of a pair of letters in a string

View 13 Replies View Related

General :: Write Script To Use Function And Still Keep Function Active?

Feb 21, 2010

the 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?

View 6 Replies View Related

General :: How To Know If A Symbol Refers To A Static Linked Library With "nm"

Apr 19, 2011

Given the code below:

<<snip>>
jlfdiaz@narcea:/tmp$ cat foo1.c
int foo1() {}
jlfdiaz@narcea:/tmp$ gcc -c -o foo1.o foo1.c

[code]....

Is possible to know with "nm", "ldd", "ar" or other unix similar command that executable "a.out" is statically linked with "libfoo1.a".

View 1 Replies View Related

General :: Setup Iwatch - Readme Refers To Iwatch.pid File

Nov 24, 2010

I downloaded the iwatch tgz file [URL]... I unzipped them and so have a directory called iwatch that contains several files, but I do not know how to install it, or even if I do not need to. But the readme refers to an iwatch.pid file, that is not there, so I am not sure what to do. Has anyone installed and used iwatch that could help me get it working, as I want to monitor a directory and be alerted of changes.

View 3 Replies View Related

Software :: Script Calls Another Script Which Calls 'bash' Inside

Mar 15, 2010

I need to write a script. In which, the 2nd part commands need to run under another bash shell environment.The enter_antoher_bash_env.sh will setup a new shell environment, call "bash". The rest commands need to run under the new env. (I cannot change this script too. )If I run these command one by one manually, it works of course. If I put them into a script, enter_another_bash_env.sh won't return because it calls "bash" command inside.

View 10 Replies View Related

General :: Unix Ps -l Priority Whoes One Number In Column "PRI" But In Same Time Ps -o Pri Shows Another Number?

May 21, 2011

Why does unix ps -l whows one number in column "PRI" but in same time ps -o pri shows another number? cpu and nice are zero for those processes

View 1 Replies View Related

Ubuntu Installation :: Creating A Live CD That Refers To Repository Mirrors?

Feb 25, 2010

OK. I've successfully mirrored the Karmic Koala repositories. Now I have, and will have as time goes on, various computers I'll want to install Ubuntu on and point at the repository mirrors (Karmic now, Lucid later). Can I create a modified Live CD that will set up out computers from the beginning with /etc/apt/sources.list pointing at our mirrors, so we don't have to edit it later or tell people to edit it later? I've looked around and not found instructions on how to do it so far.

View 1 Replies View Related

Ubuntu :: Checking For Updates From The Update Manager - Refers To Old IP Address For Wireless

Mar 22, 2011

I changed my internet source from wireless to wired cable which came with a new IP address. Subsequently anytime I try checking for updates from the update manager it still refers me to my old IP address for wireless and here is the results I get:

[Code].....

View 1 Replies View Related

General :: Printf Calls - Cost Of I / O Redirection

Dec 16, 2010

Some context: I'm calling some functions from within a C program and want to measure how long they take to execute. I've done this successfully, calling printf to print the results to the screen. This is reasonably fast. Ideally I'd like these to be dumped to a file, but fprintf presumably has some overhead since it writes to disk? Unless the data is buffered by the kernel and flushed later? What kind of delay can I expect before fprintf returns?

If I redirect the stdout to a file when I instantiate the binary as a process, will calls to printf also experience any overhead from redirection to a file? My aim here is to capture all data in a file, with the minimal amount of coding and effort, but with minimal impact in terms of time overheads for printf calls.

View 10 Replies View Related

General :: Tracing An User's System Calls?

Mar 27, 2010

I would like to trace a user's activity by monitoring system calls. Is there a way to use strace such that at startup it will begin tracing all system calls? Or is there any other method to automatically trace the system calls used during a user's session automatically without having to call strace manually?

View 6 Replies View Related

General :: Error Checking On System Calls

Sep 19, 2010

I'm new to C language and some help finding places in the following code where a system call is made and error checking is not done. I found one but since I don't know C language at all I'm not exactly sure what else to look for. Link to my file: [URL]...

I found one and added error checking:
if (setoutpipe){
//Changes: Added error checking to the system call close()
//Orginal Code: close(pidefd[1]);
if(close(pipefd[1] != 0){
fprintf(stderr, "Could not close piple.
");
exit(255);
}

View 1 Replies View Related

General :: OpenSuse - Video Calls / Webcam Chat

Mar 4, 2010

Whats the best app/client for video calls in OpenSuse 11.2 or any other OpenSuse for that matter, other than Kopete or Skype?

View 1 Replies View Related

General :: Create A Script That Calls A Command With A Flag?

Jul 24, 2011

i would like to create a script that calls a command with a flag....

/usr/bin/wget
calling
"curl -O"

[code]....

View 1 Replies View Related

Software :: Git Over Http / Warning: Remote HEAD Refers To Nonexistent Ref, Unable To Checkout Error?

Jul 27, 2009

I am trying to use a git repo over http on my Debian 5.0 machine.

The git repository is located in /var/www/ on the Debian machine.

I can push/pull the repo using git protocol:

Code:
git clone git://192.168.0.1/project.git
but when I try to do the same over HTTP it give me following error message:

Code:
git cloneurl
warning: remote HEAD refers to nonexistent ref, unable to checkout.

View 1 Replies View Related

General :: Getting Static With No Picture Or Audible Voice In Skype Calls

Mar 10, 2010

I have an ASUS eec901 Linux version with Jolicloud installed. When I dial Skype contacts I can hear and see them but THEY just get static with no picture or audible voice. Skype informs me that I must change my settings from Pulse audio to ALSA using a program called pavucontrol. I must delete Pulse audio, but although i have tried I can see no way to do this.Pavu control does not seem to install either.

View 1 Replies View Related

General :: Send SMS Or Place Voice Calls Via Mobile 3g Modem In Linux?

May 26, 2011

I have a ZTE MF112 mobile broadband modem, which comes with Windows drivers and software. This software allows not only connect to Internet, but also send SMS and place calls (as in you dial number in program and when you're connected, sound goes through the sound card). As far as I know, almost any USB mobile modem comes with application to send SMS via its GSM connection.Now the question is - is there any vendor-independent software that runs under Linux and allows you to use your mobile broadband modem to turn your PC into larger mobile phone? I want at least to be able to send and receive SMS using PC + mobile modem.

View 1 Replies View Related

General :: Log Or Live Data That Discloses The System Calls An Application Makes?

Apr 5, 2011

I want a log or live data that discloses the system calls an application makes. I have used strace but can't find a guide for it that is decent. I'm interested in knowing the calls made after user intervention like opening a menu and so on. If you run (strace application_name) it is static. What good is this? When does strace make this file? When is this log produced?

View 4 Replies View Related

OpenSUSE Hardware :: Multi-function Epson Stylus Sx218 - Can Not Run The Scanner Function ?

Mar 24, 2011

I bought a multifunction stylus sx218 Espon model and I can not run the scanner function. I did some research and found a few solutions and very functional. I hope someone solves the problem. My version of openSUSE 11.2.

View 9 Replies View Related

Programming :: How Can A Friend Function Access A Public Function From A Base Class

Nov 16, 2010

Code:
#include <iostream>
using namespace std;

[code]...

View 1 Replies View Related

Programming :: Passing Data From Interrupt Handler Function To Tasklet Function?

May 18, 2010

I am doing some Linux kernel programming for my research project. I need to record the timestamp (by using cpuid and rdtsc) when an interrupt handler (top half) is first invoked. Due to the time critical nature of the problem itself, I have to do the timestamping inside the interrupt handler itself (the first operation when the handler is called). However, I understand that tasks that are not so time critical should be deferred to a tasklet function (bottom half) for processing because other interrupts are disabled in a (top-half) interrupt handler. I am currently out of idea on how I can pass the timestamp information that I have obtained in the interrupt handler to the corresponding tasklet function.

View 2 Replies View Related

OpenSUSE :: Get Function Set_magic_quotes_runtime() To Function On The Newer Versions?

Mar 30, 2011

I'm currently using OpenSuse 11.1 web server. This is bad since 11.1 is no longer supported. the reason why I am using it is because Function set_magic_quotes_runtime() was no longer being used. (so I was told)

That being said, is there a way to get Function set_magic_quotes_runtime() to function on the newer versions of OpenSuSE?

View 9 Replies View Related

Ubuntu Installation :: Install Inside Windows It Refers Installation Size?

Sep 6, 2010

When you install inside windows it refers installation size???

View 2 Replies View Related

General :: Windows - Keyboard Shortcut Manager - "calls Applications"

Jul 13, 2010

Is there an application in windows wherein you can see and manage the available shortcuts:

Keyboard shortcuts that calls applications
Keyboard shortcuts in applications
Built-in Windows shortcuts

So that you can actually see if you are repeating a keyboard shortcut or not. Because often times I tend to assign similar shortcuts to applications. Anything for windows(freeware), if this is available on linux then please share it.

View 1 Replies View Related

General :: Bash Script -- Script2 Calls Script1 And Supplies Input To Script1?

Nov 2, 2010

I have an app startup script that requires user input.

# start-app.sh
Enter PIN <user manually enters PIN here>
<app startup continues>

[code]....

View 1 Replies View Related

General :: Make A Bash Script Keep Running In Same Terminal After It Calls Second Script?

Jun 25, 2010

I have a startup script for jboss (start.sh) that sets some JAVA_OPTS and then calls bash run.sh.If I run it (start.sh) from the command line it runs in the terminal fine. If I make a shortcut launcher for it in gnome and set it for 'application in terminal' it pops up then immediately dies after launch.Not sure what the problem is. Is this not working because one script is calling a second script? But then why does it work when I call ./start.sh?

View 4 Replies View Related

Ubuntu Networking :: Wireless - Lost It - 'wmaster0 No Wireless Extensions', But Then Refers To Wlan0 As The Wireless Connection

Mar 28, 2010

A friend who switched ISP's gave me his old Linksys WRT54-G wireless router. I went through the installation procedure and had a wireless connection up and running - smiley face. I had security set up for WPA, and decided to upgrade it to WPA2. Another smiley face. When I went to connect (had already done so successfully), I noticed it referred to my wireless as Linksys - I was expecting to see the SSID. So I started playing around in Network Manager and now I have things all effed up.

Don't know exactly what I did, but now I have no wireless. So I ran a few commands (lshw -C network, iwconfig, ifconfig, and iwlist scan), and looking at the results I see what appear to be inconsistencies in the output. I've posted them below, and make the following observations:

1. Under the lshw it refers to my wireless connection logical name as wmaster0, and has the correct MAC address, etc.

2. Under the iwconfig it says, 'wmaster0 no wireless extensions', but then refers to wlan0 as the wireless connection (although it does not seem to be running).

3. Under ifconfig I see both a wlan0 and a wlan0:avahi. The wlan0 has no IP, the wlan0:avahi does, but it is incorrect.

[Code]...

View 7 Replies View Related

Programming :: Bash Array Add Function Example Using Indirect Array Reference As Function Argument?

Jun 20, 2010

I looked on the net for such function or example and didin't find anything, thus after having made one i guess it would be legitimate to drop it to see what others thinks of it.

#!/bin/bash
addelementtoarray()
{
local arrayname=$1

[code]....

View 10 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved