05-16-2011
You realize that any system call can cause this context switch? That a system call is in fact a context switch? Running a system call stops the process until the system call finishes! What you're looking for doesn't exist.
Running strace on ifconfig in linux, I see it using ioctl with SIOCSIFADDR, SIOCGIFFLAGS, and SIOCSIFNETMASK.
10 More Discussions You Might Find Interesting
1. Programming
:(
Hi
I am trying to get Mac address of of my Sun server from my C program running on the host machine.
Any suggestions . (1 Reply)
Discussion started by: ss_hpov
1 Replies
2. UNIX for Dummies Questions & Answers
Hi
Can some one help me How do find out Mac address in Tru64 Unix
Thank you (1 Reply)
Discussion started by: Syed_45
1 Replies
3. IP Networking
Hi sir,
i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address.......
but i'm nt getting that how i can pass the MAC address to Frame........
Please give me an idea for making such program...
Thanks & regards
Krishna (3 Replies)
Discussion started by: krishnacins
3 Replies
4. Solaris
Hi,
I've got a Sun Solaris machine with host ID (840f8e57) and MAC address (0:14:4f:f:8e:57), how do I:
1. Write the MAC address in standard (IEEE 802) format, i.e. xx-xx-xx-xx-xx-xx? Do I need to add 0's before or after the 'f', i.e. 00-14-4f-0f-8e-57 or 00-14-4f-f0-8e-57?
2. What is... (4 Replies)
Discussion started by: TheBlueSky
4 Replies
5. Solaris
I have following message in my messages file on solaris 10
WARNING: e1000g3712000:3 has duplicate address 010.022.196.011 (in use by 00:50:56:85:25:ef); disabled
Now is there any way i can find which server has 00:50:56:85:25:ef mac address either IP or Hostname ? (6 Replies)
Discussion started by: fugitive
6 Replies
6. Cybersecurity
There is a question in the SCO section asking for information on how to change the MAC address of a NIC. Is there a valid reason for wanting to change the MAC address? (1 Reply)
Discussion started by: jgt
1 Replies
7. SCO
hi every one please help
i want to change mac address in sco unix 5.0.6
how can i do this (3 Replies)
Discussion started by: kaydream
3 Replies
8. IP Networking
Hi there
I lost connectivity to one of our remote systems and when I checked the messages log I found the following:
Aug 10 23:42:34 host xntpd: time reset (step) 1.681729 s
Aug 16 13:20:51 host ip: WARNING: node "mac address" is using our IP address x.x.x.x on aggr1
Aug 16 13:20:51 host... (9 Replies)
Discussion started by: notreallyhere
9 Replies
9. IP Networking
ubuntu / xubuntu 13.10 and 14.04 (this issue should exist in debian as well)
I use wifi to connect to internet. I would like to change the wifi card mac address before connecting. Let's call the original mac address, macA, and the new mac address, macB.
I do the following:
ifconfig wlan0... (2 Replies)
Discussion started by: arpagon
2 Replies
10. IP Networking
four interfaces with ifconfig
all interfaces have the same mac. If is not set for unique.
but it still works.
what difference does it make to have all macs the same or different? (4 Replies)
Discussion started by: rrodgers
4 Replies
LEARN ABOUT FREEBSD
sigreturn
SIGRETURN(2) BSD System Calls Manual SIGRETURN(2)
NAME
sigreturn -- return from signal
LIBRARY
Standard C Library (libc, -lc)
SYNOPSIS
#include <signal.h>
int
sigreturn(const ucontext_t *scp);
DESCRIPTION
The sigreturn() system call allows users to atomically unmask, switch stacks, and return from a signal context. The thread's signal mask and
stack status are restored from the context structure pointed to by scp. The system call does not return; the users stack pointer, frame
pointer, argument pointer, and processor status longword are restored from the context. Execution resumes at the specified pc. This system
call is used by the trampoline code and longjmp(3) when returning from a signal to the previously executing program.
RETURN VALUES
If successful, the system call does not return. Otherwise, a value of -1 is returned and errno is set to indicate the error.
ERRORS
The sigreturn() system call will fail and the thread context will remain unchanged if one of the following occurs.
[EFAULT] The scp argument points to memory that is not a valid part of the process address space.
[EINVAL] The process status longword is invalid or would improperly raise the privilege level of the process.
SEE ALSO
sigaction(2), setjmp(3), ucontext(3)
HISTORY
The sigreturn() system call appeared in 4.3BSD.
BSD
September 6, 2013 BSD