SETUP(2) Linux Programmer's Manual SETUP(2)NAME
setup - setup devices and file systems, mount root file system
SYNOPSIS
#include <unistd.h>
int setup(void);
DESCRIPTION
setup() is called once from within linux/init/main.c. It calls initialization functions for devices and file systems configured into the
kernel and then mounts the root file system.
No user process may call setup(). Any user process, even a process with superuser permission, will receive EPERM.
RETURN VALUE
setup() always returns -1 for a user process.
ERRORS
EPERM Always, for a user process.
VERSIONS
Since Linux 2.1.121, no such function exists anymore.
CONFORMING TO
This function is Linux-specific, and should not be used in programs intended to be portable, or indeed in any programs at all.
NOTES
The calling sequence varied: at some times setup () has had a single argument void *BIOS and at other times a single argument int magic.
COLOPHON
This page is part of release 3.27 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2008-12-03 SETUP(2)
Check Out this Related Man Page
GETSID(2) Linux Programmer's Manual GETSID(2)NAME
getsid - get session ID
SYNOPSIS
#include <unistd.h>
pid_t getsid(pid_t pid);
Feature Test Macro Requirements for glibc (see feature_test_macros(7)):
getsid():
_XOPEN_SOURCE >= 500 || _XOPEN_SOURCE && _XOPEN_SOURCE_EXTENDED
|| /* Since glibc 2.12: */ _POSIX_C_SOURCE >= 200809L
DESCRIPTION getsid(0) returns the session ID of the calling process. getsid(p) returns the session ID of the process with process ID p. (The session
ID of a process is the process group ID of the session leader.)
RETURN VALUE
On success, a session ID is returned. On error, (pid_t) -1 will be returned, and errno is set appropriately.
ERRORS
EPERM A process with process ID p exists, but it is not in the same session as the calling process, and the implementation considers this
an error.
ESRCH No process with process ID p was found.
VERSIONS
This system call is available on Linux since version 2.0.
CONFORMING TO
SVr4, POSIX.1-2001.
NOTES
Linux does not return EPERM.
SEE ALSO getpgid(2), setsid(2), credentials(7)COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2010-09-26 GETSID(2)
ok, I configured inetd.conf so that the tftp string
is not commented out, but I cannot get the process to start.
I'm running Solaris 5.8 and need some help.
Cabletron said that it's process is 3485, i tried to kill it, it's the wrong process. I started inetd again and still can't kill it.
i... (15 Replies)
I work for a school and just received a set of HP-UX machines. I did ok with the Vizualize workstations in that they had video cards and all, but I am attempting to set up the D Class (D250) servers that we received and they are terminal only. I have the terminals and keyboards for them, but am... (11 Replies)
hey,
I was wondering if anybody could help me setup my telnet on my linux 7.1 machine. I need it so i can do some remote work on soem stuff i've got going when i go away next month. I've tried a few times before but it didn't work, i don't know why.
thanks for your help. (23 Replies)
Hi all,
Can anyone please tell me how to setup internet on solaris10, b72?
I own an airtel broadband, with a beetel 220BXI modem.
I am new to solaris so was wondering as to how it can be done?
Thanks (23 Replies)
So, I have a free shell from an online provider which offer IRC access, I am behind a firewall blocking all IRC ports @ work, how can I use the Shell to get on IRC from work? What do I need to setup on the shell to be able to connect to the shell on the ssh port which allows connections from work,... (10 Replies)
Hi all,
I just bought a new system, but am unable to configure network on it..
am using a nge0 ethernet interface to login.
i've tried all i knew but not of the webpages seem to open.
Here is what i've done..
ifconfig nge0 plumb
ifconfig -a
(nge0) was being displayed as up and running.
... (23 Replies)
Hi gurus
I had 2 hdd, each had 146GB, i want do the mirror for it,
and will mount on /u01
/dev/dsk/c0t1d0s6
/dev/dsk/c1t1d0s6
Can you all help me check or advice if i do the step wrongly,
coz this is my first time for this:
#metainit d11 1 1 c0t1d0s6
#metainit d12 1 1 c1t1d0s6... (12 Replies)
I have experience in setting up passwordless authentication by sharing ssh public keys manually.Currently I am in the process to the write a script to perform the same functionality from one source(host) to multiple destinations.
I have one source host (Host A) whose public keys has to be shared... (9 Replies)
Hi, I recently research on how auto-mailing to notify the increase of storage size. I try avoid schedule/routine checkup the storage to determine increase the storage size. It is time-consuming. Any comment on how to get the storage size %? and automatically trigger mailing function instead... (16 Replies)
Howdy, I hope it is ok to post this here.
I would like to do all my POP3 email with fetchmail, postfix and emacs. On Snow Leopard 10.6.8 - this is not urgent and I really want to do it in one of the right ways.
This is fetchmail release 6.3.11+GSS+SSL+KRB5.
postconf mail_version = 2.5.14
GNU... (11 Replies)
Hi everybody, hope you're fine :).
I'm coming back to you one more time because I have a problem I can't solve (and spent already a lot of time looking for an answer on the internet).
So, I have a Sun Blade 1500 x64 sparc arch with Sun OS 5.8 installed on it.
I know, SunOS is out of date,... (12 Replies)
Objective: To recreate the partitioning setup of /dev/sda on /dev/sdc
How would I parse the below information and initialize variables
(an array?) that can be used to build sgdisk commands in a script, regardless of the number of partitions?
Something along the lines of:
sgdisk -n... (12 Replies)
hi
I installed Openvas we have the following problem
internet Connection is Ok
Even Reinstall the problem is not resolved
Openvas Setup, Version: 0.5
Step 1: Update NVT's and SCAP data
Please note this step could take some time.
Once completed, NVT's and SCAP data will be updated... (12 Replies)