Is it not same like fpSetGid (https://www.freepascal.org/docs-html/rtl/baseunix/fpsetgid.html) ?
If I understand the man page clearly, it is a BSD call that was adapted by Linux, but never standarized under POSIX.
If I understand the man page clearly, it is a BSD call that was adapted by Linux, but never standarized under POSIX.No it is a netware call. Indeed not standard.
If I understand the man page clearly, it is a BSD call that was adapted by Linux, but never standarized under POSIX.No it is a netware call. Indeed not standard.
And ASCII was introduced by IBM.
I don't care who introduced it: it's supported by Linux and that manpage cites POSIX.1 (with non-standard variations for SysV and BSD).
DESCRIPTION
All of these interfaces are available on Linux, and are used for getting and setting the process group ID (PGID) of a process. The
preferred, POSIX.1-specified ways of doing this are: getpgrp(void), for retrieving the calling process's PGID; and setpgid(), for
setting a process's PGID.
The System V-style setpgrp(), which takes no arguments, is equivalent to setpgid(0, 0).
The BSD-specific setpgrp() call, which takes arguments pid and pgid, is a wrapper function that calls
setpgid(pid, pgid)
Since glibc 2.19, the BSD-specific setpgrp() function is no longer exposed by <unistd.h>; calls should be replaced with the
setpgid() call shown above.
POSIX.1-2001 also specifies getpgid() and the version of setpgrp() that takes no arguments. (POSIX.1-2008 marks this setpgrp()
specification as obsolete.)
The version of getpgrp() with one argument and the version of setpgrp() that takes two arguments derive from 4.2BSD, and are not
specified by POSIX.1.
So no parameter version of setpgrp was shortly specified and then obsoleted, and the 2 argument version (which this thread is about) never was standarized
It looks as though the Netware RTL is the only one to implement FpSetpgid(), which might in practice be what OP's looking for.Yes. Correct. Grep will tell you so too... (I am repeating myself).
MarkMLl
Yes. Correct. Grep will tell you so too... (I am repeating myself).
[Yes, I found it via grep. But what he /should/ be looking for is setpgid(), which is unimplemented.That should be fpsetpgid()...
MarkMLl
That should be fpsetpgid()...