1620 Commits

Author SHA1 Message Date
peter
83c5ef7b0d Put on my flame proof suit and make libtcl build conditional on
the src/contrib/tcl directory existing, and also have an /etc/make.conf
override (NOTCL) to stop building libtcl.  This is in similar other
things from src/Makefile, eg: NOGAMES, NOLKM, etc.

This is so that people can put in a refuse entry in their cvsup files and
not fetch the tcl code, and have it not built automatically.  I'll do
something similar for perl.
1997-04-12 07:06:08 +00:00
jb
0b77d30d2b Set wakeup time in pthread_cond_wait() to `forever' (-1) to prevent
calling thread from being rescheduled based on an unspecified wakeup
time.

Bug/fix pointed out by Alexandre Fenyo <fenyo@email.enst.fr>.
1997-04-11 22:38:22 +00:00
bde
e504efa1d6 Fixed missing #include in synopsis. 1997-04-11 18:57:26 +00:00
bde
8da5ad6e3e Fixed return type of __syscall() in synopsis.
Don't quote "..." in synopsis.  Quoting here is unnecessary and unusual.
1997-04-11 18:54:05 +00:00
bde
5681f0a3dc Fixed missing const(s) or #include(s) in synopsis. 1997-04-11 18:47:10 +00:00
bde
3e0c208aec Fixed synopsis (the #include was bogus and the return type for brk() was
wrong).
1997-04-11 18:39:44 +00:00
bde
9a653019ed Fixed missing header in synopsis. 1997-04-11 18:09:29 +00:00
bde
ed438fc250 Fixed synopsis (prototype was missing a const). 1997-04-11 18:07:45 +00:00
wpaul
6a02d37882 Don't even think about processing bogus domain names here. 1997-04-10 20:26:04 +00:00
mpp
579a16d6dd Typo police. Part of PR# 3242.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
1997-04-09 23:05:04 +00:00
jdp
72875e2a08 Declare the constructor/destructor linker sets as extern rather than
common.  Add one do-nothing element to each set.  This ensures that
the linker realizes that they are linker sets rather than simple
commons, and makes it possible to link c++rt0.o into every shared
library regardless of whether it is a C++ library or not.  Without
this change, the constructors and destructors in the main program
could be executed multiple times.

This change is going to make it possible to get rid of the
CPLUSPLUSLIB makefile variable once and for all.  It is a piece of
the solution to PR gnu/3505 (gcc -shared).  Finally, it fixes a
heretofore unreported bug:  If CPLUSPLUSLIB was set in a makefile
for a C++ shared library that had no static constructors or
destructors in it, then the main program's constructors and
destructors would be executed multiple times.
1997-04-09 19:14:31 +00:00
peter
81248009f2 Missing newline caused too much text to be fed to the macro.
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>, PR#3228
1997-04-08 10:45:10 +00:00
peter
b9fe2f81dd setsid is declared in <unistd.h>, which is self sufficient (doesn't need
prior <sys/types.h>)

Fixes PR#3229, from Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1997-04-08 10:43:47 +00:00
guido
5b77d8f791 Fix race
Obtained from: Keith Bostic
1997-04-07 18:01:10 +00:00
ache
7b1360495d Restore PATH_LOCALE functionality using issetugid() call now 1997-04-07 08:54:38 +00:00
ache
1aefb8ae80 Speedup in case locale not used 1997-04-04 20:10:53 +00:00
ache
f9d135173d Speedup in case locale not used 1997-04-04 19:40:49 +00:00
ache
cb04a31ca3 Speedup in case locale not used 1997-04-04 19:16:08 +00:00
ache
1fc112af6f Eliminate some function calls when locale not used 1997-04-04 19:08:19 +00:00
ache
8dc8604567 Eliminate yet one function call when locale not used 1997-04-04 19:07:02 +00:00
ache
9f599254e5 Speedup in case locale not used 1997-04-04 18:44:19 +00:00
ache
3cb787be7f Speedup in case locale not used 1997-04-04 18:28:38 +00:00
jkh
3dc44eb7dd Add libg++ 3.0 1997-04-03 06:08:28 +00:00
mpp
b33b193134 Honor the nouser/nogroup flag when determing if NULL should
be returned if a cached uid/gid does not exist in the password
file.
1997-04-03 01:51:34 +00:00
peter
54b1a6105b Update to include details about the changes to setuid/setgid. 1997-04-02 17:24:16 +00:00
jdp
1eeccd0067 Fix an error in the previous revision that caused make world breakage. 1997-04-02 16:49:18 +00:00
mpp
c04526324b The user_from_{uid,gid} routines would return garbage if the
uid/gid in question was in the cache, but did not exist
in the password file.  This causes the -nouser and -nogroup
options to find(1) to only print the first file owned by
an unknown user/group in some cases.
1997-04-02 06:20:04 +00:00
mpp
b4e758bf65 Grammar police. 1997-04-02 05:52:22 +00:00
ache
92e0ce403a Add Id
Reduce space for error bufer from 512 to 128: there is no such long strings
can be returned from strerror()
1997-04-02 04:24:39 +00:00
ache
d3ec62f2fd Code space optimization in uu_lockerr() 1997-04-02 03:53:49 +00:00
ache
3c64721fa7 Remove unused USE_PERROR define and syslog.h include
Use snprintf instead of sprintf to avoid buffer overflows
Use snprintf in uu_lockerr instead of lots of hardcoded constants
and not null-terminated strncpy
Return "" for OK and "device in use" for INUSE, it allows simple
strcpy(buf, uu_lockerr(retcode)) without testing for special OK
case (NULL was there) and obtaining meaningful result for INUSE
("" was there) without special testing for it too.
1997-04-02 03:38:29 +00:00
jdp
483d5e360e Correct the most glaring errors. I have a feeling there are some
left.
1997-04-02 01:42:07 +00:00
ache
31ef1e437d Link chown with lchown 1997-04-01 23:07:55 +00:00
ache
ae0c6c044e Add issetugid.2 to MAN2 list 1997-04-01 22:57:56 +00:00
jb
f0841c21ac Fix the return value. Oops. 1997-04-01 22:52:43 +00:00
jb
23802b4b62 Fix indentations. Sigh. 1997-04-01 22:51:48 +00:00
jb
70db53e4e7 Make error checking less zealous to handle devices like /dev/null
which don't provide a non-blocking interface.

This is a short term "fix" which changes a half-lose to a half-win.
The thread that accesses a device that does not provide a non-blocking
interface will block for its time slice.

A medium term solution would be to use rfork. A long-term solution
would be some sort of kernel thread/SMP implementation.
1997-04-01 22:49:58 +00:00
jb
281aa43a36 Add parentheses to make blocking mode work. 1997-04-01 22:44:18 +00:00
mpp
a8f58296ab Xref the new issetugid(2) man page where appropriate.
Also add additional set*id(2) xrefs where appropriate.
1997-04-01 18:58:38 +00:00
mpp
b87dacefe4 Don't xref setregid(2) twice - one of them should be setreuid(2). 1997-04-01 18:50:56 +00:00
mpp
288c649489 Fix one very minor mdoc problem. Gentle enough, Peter? :-) 1997-04-01 18:45:57 +00:00
mpp
2e658dbf0d Fix a minor grammar problem. 1997-04-01 18:06:33 +00:00
mpp
00374de535 MLINK uu_lockerr(3). 1997-04-01 17:44:58 +00:00
mpp
6fb13de4c3 Mdoc police. 1997-04-01 17:44:31 +00:00
bde
0be4160258 Simplified install rule. 1997-04-01 13:53:16 +00:00
jmz
7014b47114 Fix the output format for numbers >= 1E99.
Closes PR bin/648.
1997-04-01 02:32:41 +00:00
jmz
a002b17d47 Add the -DPedantic flag. This is used in wref.c only. 1997-04-01 02:27:11 +00:00
brian
cb7f5ad555 Remove the syslog stuff, and allow various return values
in uu_lock().  Add uu_lockerr() for turning the results of
uu_lock into something printable.  Remove bogus section in man page
about race conditions allowing both processes to get the lock.
Include libutil.h and use uu_lock() correctly  where it should.

Suggested by:	ache@freebsd.org
1997-03-31 22:51:00 +00:00
peter
1cce6194df General cleanup and update to specify exactly how our implementation
passes on the status across fork/exec.

The previous version had some typos, referred to itself as link(2) in
one place :-), and didn't really match openbsd's implementation either.

Now that I've mentioned typos, hopefully our Typo Police and Xref Police
will be gentle with me. :-)
1997-03-31 16:36:14 +00:00
peter
f551f7b0a0 Steal issetugid man page from OpenBSD. Needs work..
Obtained from: OpenBSD
1997-03-31 15:59:14 +00:00