Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Create new simple System Call. Post 302315061 by kostis1904 on Monday 11th of May 2009 11:10:15 AM
Old 05-11-2009
Create new simple System Call.

Hello to all!

I am new with unix and i need your help to make something..
First of all i want to inform you that i am working under the Minix 3 OS.

What i want to make is, a new system call in terms of the process manager.
This system call should take an integer as a parameter (input) and return the square of this number. i.e. input = 3, output = 3^2 = 9.

Thanks for your support, i really appreciate it! Smilie
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

how to differentiate system call from library call

Hi, Ho do I differentiate system call from library call? for example if I am using chmod , how do I find out if it is a system call or library call? Thanks Muru (2 Replies)
Discussion started by: muru
2 Replies

2. Programming

c system call

How the c compiler differentiates the system calls and function calls? (1 Reply)
Discussion started by: rangaswamy
1 Replies

3. Programming

C:system call

Hi I'm studing the system call. I've written a small program that return the time spent in doing some operations. Now I'd like to write one that return the time spent in user mode of a process. I'm reading that i should use the tms struct: clock_t times(struct tms *buf); struct tms {... (2 Replies)
Discussion started by: Dedalus
2 Replies

4. Programming

system call

I have a cgi script which is called after certain time interval, which has this: system ("ls -l /tmp/cgic* | grep -v \"cgicsave.env\" | awk '{print $5}'"); During the execution of this script,the output is 0 sometimes. But due to this the system call is not working at all and doesnt o/p... (2 Replies)
Discussion started by: xs2punit
2 Replies

5. Shell Programming and Scripting

How to create and call mysql stored procedure in perl?

Hi, I want to create MySQL stored procedure and call the stored procedure using perl. I tried like this: use DBI; my $dbh = DBI->connect ("DBI:mysql:test", "root", "ibab", { RaiseError => 1, PrintError => 0}); $create_procedure =... (5 Replies)
Discussion started by: vanitham
5 Replies

6. Programming

need help with system call

hi everyone i wrote a system call and compiled the kernel succesfully... my system call is in a file in the kernel folder named my_syscall1.c (kernel/my_syscall1.c) the header file for this system call i added it in the folder include like this include/my_syscall1/my_syscall1.h my problem is... (2 Replies)
Discussion started by: demis87
2 Replies

7. Shell Programming and Scripting

system call

Trying to figure out a load issue with a webserver. I have traced a php script and noticed the following connect(4, {sa_family=AF_INET, sin_port=htons(3306), sin_addr=inet_addr("XX.XX.XX.XX")}, 16) = -1 EINPROGRESS (Operation now in progress) <0.000035> poll(, 1, 2000) = 1 () <0.000120>... (5 Replies)
Discussion started by: rajan007
5 Replies

8. Shell Programming and Scripting

Help making simple perl or bash script to create a simple matrix

Hello all! This is my first post and I'm very new to programming. I would like help creating a simple perl or bash script that I will be using in my work as a junior bioinformatician. Essentially, I would like to take a tab-delimted or .csv text with 3 columns and write them to a "3D" matrix: ... (16 Replies)
Discussion started by: torchij
16 Replies

9. Cybersecurity

please help to verify the simple firewall rules is ok for the call testing of my VOIP telephony syst

Dear Sir, I want to test the VOIP Telephony system installed in a IP PBX server behind a NAT router. This NAT router connects to a modem (with NAT as well), and then the modem (with static public IP assigned by the ISP, e.g. 219.45.67.80) directly connects to the Internet. There are several... (0 Replies)
Discussion started by: qiubosu
0 Replies

10. Shell Programming and Scripting

Call two files and merge all entities to create all combos

Hello, I am preparing an expanded verb morphology of Indian languages for the Open Source Community and have developed two files. The first file called root contains the verbal roots and the second (called prefix) contains all the syntactic elements which can be appended to the root file. An... (8 Replies)
Discussion started by: gimley
8 Replies
XmImVaSetFocusValues(library call)										XmImVaSetFocusValues(library call)

NAME
XmImVaSetFocusValues -- An input manager function that notifies an input manager that a widget has received input focus and updates the input context attributes SYNOPSIS
#include <Xm/XmIm.h> void XmImVaSetFocusValues( Widget widget); DESCRIPTION
XmImVaSetFocusValues notifies the input manager that the specified widget has received input focus. This function also updates the attributes of the input context associated with the widget. This function passes the attributes and values to XICSetValues. The caller of this routine should pass in only those values that have changed since the last call to any of these functions; XmImVaSetValues, XmImVaSet- FocusValues, XmImSetValues, or XmImSetFocusValues. See the description in the XmImSetValues(3) reference page for a list of associated resources. This routine uses the ANSI C variable-length argument list (varargs) calling conventions. The variable-length argument list consists of groups of arguments each of which contains an attribute followed by the value of the attribute. The last argument in the list must be NULL Note that the List and TextField widgets call the XmImVaSetFocusValues function when they receive focus. Therefore, further calls to the XmImVaSetFocusValues function for these widgets are unnecessary. widget Specifies the ID of the widget registered with the input manager For more information on variable-length argument lists, see the X Toolkit Intrinsics documentation. RELATED
XmImSetFocusValues(3), XmImSetValues(3), and XmImVaSetValues(3). XmImVaSetFocusValues(library call)
All times are GMT -4. The time now is 07:42 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy