Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Create new simple System Call. Post 302316099 by orestis7 on Thursday 14th of May 2009 04:45:49 AM
Old 05-14-2009
...well this is an interesting question...anybody has some ideas on this?
 

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
PART(8) 						      System Manager's Manual							   PART(8)

NAME
part - partition table editor SYNOPSIS
part [device] ... DESCRIPTION
Part is a screen oriented partition table editor. While editing you will see six lines of numbers, the first line shows the device name and its geometry (number of cylinders, heads and sec- tors), the second shows the start and end of the drive or partition you are working on, the last four lines show the different partitions or subpartitions. All numbers except those on the second line can be edited. Question marks are showed instead of numbers if the parti- tion table is not loaded yet. You have to select a device and type 'r'. Editing is a simple matter of moving around with the arrow keys and changing the values with + and - (or PgUp and PgDn), or by typing the desired value. The '?' key will give a small list of commands, the '!' key gives advice on how to make a new entry. The spacebar toggles between showing the size of the partition and the last sector on the partition. Useful to check if a partition is adjacent to the next. The 'm' key is "magical", it lets you cycle through a set of interesting values for the base or size of a partition. These values are: Aligned to a cylinder, taped to other partitions (inside or outside), or filling out holes. Use this key! Minix subpartition tables or extended partitions may be edited after hitting the '>' key. The number of this partition will be shown after the device name on the second row, e.g. /dev/hd0:2. Minix subpartition tables are shown as is, but extended partition bases are trans- lated to absolute offsets on the screen to hide the gory details of their implementation from the innocent user. (Hit 'p' if you dare.) The '<' key will bring you back to the enclosing partition table. With arguments, part will use the given devices or files. Without arguments, part will use all interesting block devices in /dev sorted by device number and starting with /dev/hd0. Values that are out of range, overlapping, or otherwise strange are shown in reverse video. Values that may possibly be a problem for operating systems other then Minix are shown in bold characters. The name of the device is highlighted when it has not been read yet. Head or sector numbers are highlighted if the partition does not start or end at a cylinder boundary. The base and/or size field is highlighted if they fall outside the device, if they are inside some other partition, if the base equals the device's base (no room for the boot sector), or if the size is zero. Part complies with the good old UNIX tradition of trusting the user. It will write any table, no matter how bad. You have been warned. By the way, as far as Minix is concerned there is absolutely no reason to make partitions start precisely on a cylinder or track nor does it have to be an exact number of cylinders long. Minix only looks at the base and size of a partition, the geometry of the drive doesn't have to be correct. Other Operating systems can be very picky about partitions that are not aligned. Some partition editors may refuse to edit a table, others may even make a mess of the table. The only exception is the first partition, it traditionally starts on the first track, not the first cylinder. All editors must understand this. (Subpartition tables are Minix specific, so there is no reason at all for any alignment.) Extended Partitions Extended partitions are a mess that is only made slightly better by part by translating the base offsets to absolute numbers. It is better to use DOS fdisk to create them, but if you insist on using part then this is what they should look like: The extended partition entry in the primary partition table must cover the whole logical partition space within it. The area thus created is split in segments, each segment contains a partition table in sector 0 and one (just one) logical parti- tion. The first entry of a segment's partition table describes this logical partition: it's partition ID, base and size. The second entry is an extended partition that describes base and size of the next segment (partition table and logical partition). The last segment's partition table is empty, or contains one logical partition. SEE ALSO
fd(4), hd(4). BUGS
You can have a table read, messed up, and written in no time, be careful. You can't type head or sector numbers directly. Sectors are counted from 0 for consistency, but the partition table counts from 1 like DOS addresses them. Most confusing. You can't write a backup copy to a file, that's what dd(1) with count=1 is for. AUTHOR
Kees J. Bot (kjb@cs.vu.nl) PART(8)
All times are GMT -4. The time now is 05:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy