[comp.unix.sysv386] _POSIX_NO_TRUNC and _POIX_CHOWN_RESTRICTED with ISC 2.2

lubkin@cs.rochester.edu (Saul Lubkin) (05/20/91)

I've been compiling some programs under ISC 2.2, with the "-Xp" (POSIX)
option -- after patching the kernel with Uwe Doering's binary patch, to
prevent kernel panics due to the namei bug.

All has worked well -- I have a decent job-controlled bash, for example.

However, by default, ISC 2.2 defines _POSIX_NO_TRUNC as "1".  This means,
that, by default, an application compiled with "-Xp", when creating files,
and specifying a name length greater than 14,
the file is not created (rather than creating a file, with the name
truncated to 14 chars.)

How does one change this default, to the usual (allowing truncation of
filenames?)

A related problem:  ISC 2.2 defines _POSIX_CHOWN_RESTRICTED as "1".  This
means that, by default, an application compiled with "-Xp" will not allow
the "chown" system call, to change the owner of a file, unless the executing
process has the effective user id of "root".  How can one change this
default?

			Yours sincerely,

			Saul Lubkin

eric@femto.mks.com (Eric Gisin) (05/21/91)

Doing "__setostype(0)" will change an -Xp application from POSIX.1 to System V
behaviour. If all you want is job control I believe you can use -lcposix
instead of -Xp.