I'm not calling these sys calls, anyone knows why they're being called ?
I have simple sample code below. When I compile and check it with truss I get some ioctl and fstat calls that I never used in mycode. How this can be happened?
When I use a similiar code in a production environment (with a lot of connections), there is some significant increase in Kernel sys usage caused by these unknown calls.
code:
fp=fopen("MYFILE","r");
if (fseek(fp, 0L, SEEK_SET) == -1)
printf("err\n");
return(0);
c=fgetc(fp);
fclose(fp);
cc is Forte[tm] Developer 7 EA with latest updates
OS : Solaris 2.7 on Sparc Ultra 10 with lates updates
compile: cc -xdepend -xarch=v9 ./myprog.c
truss -fade ./a.out
0.0297 open("MYFILE", O_RDONLY) = 3
0.0312 ioctl(1, TCGETA, 0xFFFFFFFF7FFFE93C) = 0 -----> WHO'S CALLING
0.0316 lseek(3, 0, SEEK_SET)=0
0.0319 fstat(3, 0xFFFFFFFF7FFFF8F0) = 0 -----> WHO'S CALLING
0.0323 ioctl(3, TCGETA, 0xFFFFFFFF7FFFF82C) Err#25 ENOTTY -----> WHO'S CALLING
0.0327 read(3, " XXXXXXXXXXXXXXXXXXXXX :".., 8192) = 8192
0.0331 lseek(3, 0xFFFFFFFFFFFFE001, SEEK_CUR) = 1
0.0334 close(3) = 0
Best Regards,
Levent
Hi Alan,
I did what you said and here is the results.
before changes:
syscall seconds calls errors
_exit .00 1
read .01 89
write .01 31
open .02 100 4
close .00 100
unlink .00 1
chdir .00 1
time .00 23
brk .00 6
stat .00 84 1
lseek .00 82
getpid .00 1
setuid .00 1
fstat .01 91
access .00 1
setgid .00 1
ioctl .00 84 84
execve .00 1
fcntl .00 90
poll .00 16
lstat .00 82
readlink .00 82 81
sigaction .00 3
mmap .00 28
munmap .00 8
memcntl .00 7
uname .00 1
sysconfig .00 1
llseek .00 85
resolvepath .00 1
getdents64 .00 11
fstat64 .02 173
open64 .00 3
so_socket .00 1
connect .00 1 1
shutdown .00 1
getpeername .00 1
getsockopt .00 4
setsockopt .00 2
sys totals: .07 1299 171
usr time: .03
elapsed: .45
after changes:
syscall seconds calls errors
_exit .00 1
read .01 88
write .00 31
open .00 100 4
close .01 100
unlink .00 1
chdir .00 1
time .00 23
brk .00 6
stat .00 83 1
lseek .00 81
getpid .00 1
setuid .00 1
fstat .00 91
access .00 1
setgid .00 1
ioctl .00 2 2
execve .00 1
fcntl .00 8
poll .00 16
lstat .01 82
readlink .00 1
sigaction .00 3
mmap .00 28
munmap .00 8
memcntl .01 7
uname .00 1
sysconfig .00 1
llseek .00 84
resolvepath .00 1
getdents64 .01 11
fstat64 .00 9
open64 .00 3
so_socket .00 1
connect .00 1 1
shutdown .00 1
getpeername .00 1
getsockopt .00 4
setsockopt .00 2
sys totals: .05 886 8
usr time: .02
elapsed: .48
As you can see above figures show that I have a small amount ioctl and fstat64 (tested on 32bit binaries) calls now.
Thanks a lot,
Similar Messages
-
i have a problem when i try to update or install apps in my ipad, and a message come up says "can not connect to Itunes Store", anyone know why? please advise. however i had update all my detail of payment method.
Settings > General > Reset > Reset Network Settings.
Power cycle the router.
Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new). Try each of these in order until the issue is resolved. -
I have deleted a contact but it has reappeared when I go to message in search but not stored as a contact anyone know why ? Please
It's stored in your autocomplete cache memory, which is separate from your contacts. Unless something has changed recently, the only way to remove it would be to restore the phone as new, without using your backup. You could check over in the Using iPhone forum to confirm this.
-
hi can someone tell me why i am being asked to pay £210 for my daughter to get her phone screen repaired or replace for accidental damage as the phone is only 5 months old
The warranty does not cover accidental damage. If you have a car that is under warranty and you crash it do you think you can get it repaired under warranty?
-
IPad does not hold a charge. Anyone know why?
My ipad does not hold a charge. I charged it yesterday and didnt use it at all today plus I even shut it down all the way not just sleep.
I doubt that anyone here, with the limited knowledge of how you actually use your device, could ever do more than hazard a guess. Your power adapter is bad and not charging properly .... It is possible that the battery indicator is giving you an incorrect reading and that the iPad has more battery power left than it shows on the meter, but if it shuts down on its own after less than say - 6 hours - on a full charge - then something is wrong.
About the iPad Battery
http://www.apple.com/batteries/ipad.html
Charging the Battery
http://support.apple.com/kb/HT4060
You may want to read both articles and make your own determination. You can always try restoring the device and see if that helps. Read this for help.
http://support.apple.com/kb/ht1414
or this
http://www.ipadtomactransfer.org/ipad-tips/how-to-restore-ipad.html
You could try a hard reset and see if that helps at all.
Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. -
TS1398 internet pages are not loading on ipad. anyone know why?
We have two ipads in our home. All of the sudden, the ipads are having difficulty loading pages. An initial page downloads, but when clicking a link, the web page shows it is partially downloaded and the connection circle just spins.
Downloading Moutain Lion requires a high speed broadband connection.
6.21 will never work. That is not broadband.
Make certain your Mac can run Mountain Lion > System requirements for OS X Mountain Lion
Check your download speed here > Speedtest.net by Ookla - The Global Broadband Speed Test
Anything less than 15Mbps will not be fast enough to download Mountain Lion. It's a 4.35GB (approximately) file. That will time out on a slow connection. -
see title.
I'm having the exact same problem. Out of the 500 or so contacts I have in my Outlook 2007 installation, about 50 occasionally get their category completely stripped off.
About the only thing I've been able to come up with is it seems to happen only when I add or modify a contact on one of my iOS devices, even if that contact is not part of my Outlook data (i.e.: the contact is part of MobileMe or iCloud data).
I guess I'll have to seek Apple support for this...
Regards,
John L. -
I have changed my password on my itunes account and it still won't let me in. It recognizes that I have an account with my email address...I am using the correct password and all. Any thoughts or help?
No, you will have to restore, see this
-
Hi
I have purchased an audio book from iTunes with my iMac.
Now I wanted to listen to it on my iPhone so I proceeded to transfer the purchase and looked for the book in the purchased section of the store in the iTunes on my iPhone but it did not show up.
Does anyone know why and how I can transfer the audio book purchased on my iPhone so I can listen while away from the desk?
Thank you,
SanyaCan you find the audio book by using the Search feature on the iPod?
Do you have the right boxes checked to sync the audio book to the iPod?
iTunes: Syncing media content to iOS devices and iPod
Note you have to check the boxes in Books pane for the iPod in iTunes to sync books in general and another box to sync Audio Books. -
A message pops up saying 'Word cannot open this document. The document might be in use, the document might not be a valid Word document, or the file name might contain invalid characters (for example, \/).' The documents are certainly not open, and I don't know why they would be invalid. Please help!
www.doc.investintech.com/Check for Microsoft updates, the docs could be old, and need a converter:
A worst do a command P, and turn to a PDF and send like that (yes it *****)
Also try a copy and paste to a new doc.
Hope this helps. -
Does anyone know why a web page would suddenly pop up telling me I have a computer virus and need to call them? When I've called they said they needed access to my computer in order to fix the problem - which I didn't do. Is this legit? An Ad?
That is not legit, it is a scam to gain access to your computer and information.
You can protect against pop-up adware with the AdwareMedic tool Thomas Reed has http://www.thesafemac.com Tom is a major contributor on these communities and great security guy. -
I have a lot of files called FILE0001.CHK etc. on my MacBookPro - they cannot be opened and an app search produces no solution. Does anyone know what they are please?
Thanks Charlie and Leroydouglas - apologies for not responding sooner - I am new to the Community and couldn't see how to respond to your queries without 'replying' to myself - hope this works. I do not use Windows on my Mac but it is possible I ran ScanDisk on my previous Windows laptop. Perhaps I have inadvertently brought these files to my Mac?? Can I delete the files or will I be losing something I cannot verify? So appreciate your input - thank you.
-
does anyone know why my iphone keeps switching all of my alert tones and ringtones assigned to contacts? i restored it and it still keeps doing it and now when ever i get a txt or a phone call the tones just sound terrible. how do i fix this?
Your only chance is setting it up as new device without using the latest backup afterwards, which you already did.
If this does not work, you should get it serviced:
Apple - Support - Service Answer Center
How to back up your data and set up as a new device -
When receiving an call waiting can't push the hold and answer button.Because: it will put on hold the first caller, answer to the second, but you can't hear the second until you end the first call !!! Anyone has the same problem ? Did anyone know why ?
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
I wanted to know why they call me when I do not show the number but I get the words private number, and even when I call out to another private number.I tried it in the settings to activate id shows but nothing has changed. I hope you can help me.
Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
Some general information for a Cloud subscription
Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
-Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
Does your Cloud subscription properly show on your account page?
If you have more than one email, are you sure you are using the correct Adobe ID?
https://www.adobe.com/account.html for subscriptions on your Adobe page
Maybe you are looking for
-
Hi all , I have one internal table itab1 as mblnr zeile vgbel lifnr 11 1 z 08 11 2 z 77 11 3 z 76 11 4 z 75 11 5 z 08 12 1 z 7
-
4s won't charge after upgrading to iOS 7 :(
My phone was FINE after upgrading to iOS 7 last night. Today when I went into work, it was also fine and charged correctly. It wasn't until after I got the "do you want iphone to trust this computer?" and I said NO. I wasn't sure what this meant, I j
-
Creative MP3 Players and Car Au
Hello, I'm a newbie and I don't know a lot about MP3 players so I hope you can help me out. I have a brand new Kenwood car audio with an USB cable to plug your MP3 player in. My friend's Samsung MP3 player doesn't work, after some research I find out
-
Table with fields containig more thn 300 characters
Hello Friends, i want to create one ZTABLE and intht i want a field tht can store more thn 300 characters. i have used string data type for the same but while activating the table its giving me error saying : " Table contains more than 3 long string
-
ITunes Match deleted ALL my playlists
About 6 weeks ago or so, I noted that one of my favourite playlists on iTunes Match had disappeared. I had absolutely no idea how this could happen as this is a Cloud based service with an integrated back-up. Now - today - I find that ALL my playli