11-17-04 10:51 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
joe durusau wrote:
>
> Trent Buck wrote:
>
>
>
>
> No since in berating, he propbably doesn't use english as his native
> language. OTOH, he does need to tell us what ntstatus() does, since
> nobody here is likely to admit familiarity.
A quick search through Google shows that NTSTATUS is the type of the
/return_code/ that MSWindows NT NTDLL kernel calls return to their
caller. A device driver (for instance) will call NT kernel functions to
perform certain operations, and receive a return code back. The return
code is akin to the POSIX/C userspace errno variable, in that it has
specific values for specific situations, no matter which function was
called. This return code is formatted as an NTSTATUS type, and can be
evaluated using one of several syscalls akin to the strerror() POSIX
userspace function.
So, if I read the OP correctly, he wants to know if the Unix kernel
functions (which Unix kernel is unspecified) provide a single, unified
return-code that can be evaluated to determine the result of the
function, no matter which kernel function was invoked.
To the OP: The answer is no. There is no equivalent to NTSTATUS in Unix,
since Unix is not a single implementation of an operating system, and
the internals of each implementation are different. /Some
implementations/ may provide an equivalent to NTSTATUS, however. Which
Unix are you interested in?
- --
Lew Pitcher, IT Consultant, Enterprise Data Systems
Enterprise Technology Solutions, TD Bank Financial Group
(Opinions expressed here are my own, not my employer's)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (MingW32)
iD8DBQFBm469agVFX4UWr64RAv45AKCYAv8Ccmo+
A3nEdolTM2vTyWsA5gCffECN
dCHyN24C+DY621fiXiIP/+o=
=KPUK
-----END PGP SIGNATURE-----
[ Post a follow-up to this message ]
|