Commit Graph

1729 Commits

Author SHA1 Message Date
Masafumi Max NAKANE
4c204da0ea Typo.
PR:		#3178
Submitted by:	Josh Gilliam <soil@quick.net>
1997-04-25 20:36:10 +00:00
Andrey A. Chernov
d4192bac8e Add vfork(2) to SEE ALSO 1997-04-25 14:41:55 +00:00
Jean-Marc Zucconi
4c244a38ad Add a -I switch to CFLAGS to use the f2c.h header file in the usr.bin/f2c
directory.
Reviewed by:	bde
1997-04-24 17:10:56 +00:00
Bruce Evans
3d56ef8c48 Generate .S files for syscalls. This has many advantages:
- dependencies actually work (I need this to propagate some fixes
  in <machine/asm.h>)
- the cpp pipeline goes away, so errors can't leak out of it and
  an ANSI cpp is automatically used.
- it's simpler - standard rules get used instead of repetitive
  special rules.  (This showed bugs in the strip steps in the
  standard rules.  The wrong strip flag was also used for *.po
  here.)

Removed some ${ECHO}s and `@'s.  Normal make echoing of what is
being done is now not much more verbose than the echo messages
were, and is more useful.
1997-04-23 10:49:54 +00:00
Bruce Evans
2b9ac168ec FIxed the cleanup. I forgot to leave stdin alone in the usual (!twoway)
case.
1997-04-22 09:44:06 +00:00
John Dyson
5ae9116a7d Clean-up my modification of popen.c for vfork. Bruce's (this) is better.
Submitted by:	Bruce Evans <bde@freebsd.org>
1997-04-20 20:17:04 +00:00
Bruce Evans
e23b7f75de Use separate routines for memmove() and memcpy(). This lets me drop
the (buggy) support for alternative entry points.  ALTENTRY() was only
used for memmove().  Optimizing for space was particularly silly because
memcpy() is rarely used (gcc normally inlines it).
Obtained from:	NetBSD
1997-04-20 13:02:48 +00:00
Bruce Evans
8009c566df Use separate routines for memmove() and memcpy(). This lets me drop
the (buggy) support for alternative entry points.  ALTENTRY() was only
used for memmove().  Optimizing for space was particularly silly because
memcpy() is rarely used (gcc normally inlines it).

Obtained from:	NetBSD
1997-04-20 12:46:12 +00:00
Bruce Evans
1c33c5a76b Merged with the 1996/11/12 NetBSD version:
- use a slightly less bogus copyright.  This file was never contributed
  to Berkeley.  It still claims to be copright by the Regents.
- use <machine/asm.h> instead of "DEFS.h".
- use RCSID($Id$) instead of explicit assembly code and messy ifdefs.
  The rcsid won't be put into the object file until we make RCSID()
  non-null.  NetBSD uses a LIBC_SCCS ifdef here.  We used a LIBC_RCS
  instead, but I want RCSID() to be controlled directly by LIBC_RCS
  (actually by LIB_RCS).  This is the only difference with the NetBSD
  version.
- added ifdefs to support generation of memcpy() and memmove().  The
  other changes are "while I'm here" to get this.
- improved style of the copy backwards case.
1997-04-20 12:09:18 +00:00
Bruce Evans
7df534462e Fixed long lines.
Removed unused macros CALL() and ASMSTR.

Reviewed by:	jdp
1997-04-19 17:05:30 +00:00
Bruce Evans
a3315650db Fixed #include and/or prototype bugs in synopsis. 1997-04-19 15:57:20 +00:00
Daniel O'Callaghan
a6f96c4131 Fix punctuation: "it's" -> "its" 1997-04-17 23:31:47 +00:00
John Dyson
1174d9f9df Fix the problem in popen that makes correct vfork semantics fail.
Specifically, popen modifies a variable "pdes[1]" in the child
in such a way that it breaks code in the parent (due to the address
space sharing.)
1997-04-16 03:26:50 +00:00
Bruce Evans
21774a3cea Second stage of moving this to in <machine/asm.h>: just include
<machine/asm.h> here.
1997-04-15 14:18:17 +00:00
Bruce Evans
3bc097d098 Added -D_ARCH_INDIRECT=i387_ to CFLAGS. _ARCH_INDIRECT will soon be used
to control generation of indirections in ENTRY().  Only msun needs it.

Use ${ARCH} consistently.
1997-04-15 14:05:28 +00:00
Bruce Evans
11663637b8 Fixed missing const. Include <unistd.h> so that the function type gets
checked.
Submitted by:	partly by roberto
1997-04-14 15:14:58 +00:00
Bruce Evans
69b10155b5 Fixed another prototype bug in synopsis. 1997-04-14 13:37:18 +00:00
David Nugent
5afcddae37 Fix typo. 1997-04-13 16:55:56 +00:00
David Nugent
b06ebb3255 Implement two new keywords and status flags for entries in /etc/ttys;
TTY_NETWORK (network), TTY_DIALUP (dialup), which determine a basic
connection type. TTY_DIALUP in particular will replace the old out of
date heuristic "tty[dD]*" in login.c (and better than the current
hard-coded method).
1997-04-13 15:16:03 +00:00
David Nugent
c8207e03ba Add MLINKS for isdialuptty(3) & isnetworktty(3). 1997-04-13 15:12:14 +00:00
Bruce Evans
c5a44d911a Fixed missing const in synopsis. 1997-04-13 14:12:48 +00:00
Bruce Evans
77667e9e45 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 14:10:05 +00:00
Bruce Evans
70038b40f8 "Fixed" prototype bugs in synopsis. 1997-04-13 14:05:58 +00:00
Bruce Evans
7d178a8e21 Fixed missing #include in synopsis. 1997-04-13 13:52:58 +00:00
Bruce Evans
e37d0e2391 Fixed #includes in synopsis. 1997-04-13 13:48:43 +00:00
Bruce Evans
cc2680f7dd Updated the LOCK_* #defines in the synopsis to be lexically identical
with the (Lite1) ones in fcntl.h).
1997-04-13 13:43:06 +00:00
Bruce Evans
6333eac64f Fixed missing consts in synopsis. 1997-04-13 13:37:56 +00:00
Bruce Evans
23f0c1fcf6 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:35:33 +00:00
Bruce Evans
a88d7a4bc2 Fixed wrong #include in synopsis. 1997-04-13 13:29:06 +00:00
Bruce Evans
1eda21cbb6 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:26:42 +00:00
Bruce Evans
08398af376 Fixed #include and/or prototype bugs in synopsis. 1997-04-13 13:16:20 +00:00
Bruce Evans
f2b1d9af2d Fixed wrong/incomplete #includes in synopsis. 1997-04-13 13:02:07 +00:00
Bruce Evans
a8eb6d60ee Fixed wrong function return type in synopsis. 1997-04-13 13:01:05 +00:00
Bruce Evans
330f606e46 Don't use literal semicolons in .Fn macro invocations. 1997-04-13 12:55:36 +00:00
Bruce Evans
4b1753527e Fixed spelling of __set_ospeed (was _set_ospeed) and improved
nearby English.
1997-04-13 12:16:59 +00:00
Bruce Evans
4a127b0ff9 Declare the documented (modulo a spelling error) interface
`void __set_ospeed(long);' in the appropriate header.

The implementation still uses speed_t instead of long.  This
will break properly when speed_t is fixed (speed_t shall be
unsigned ...).
1997-04-13 11:41:59 +00:00
Jordan K. Hubbard
6eb5e456f1 Support GLOBAL style tags. 1997-04-13 06:44:25 +00:00
Jean-Marc Zucconi
4ff323dd45 Upgrade to the 1997/02/26 version. 1997-04-13 01:16:58 +00:00
Peter Wemm
ff2edf0cf8 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
John Birrell
8253a7d685 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
Bruce Evans
b60f740fec Fixed missing #include in synopsis. 1997-04-11 18:57:26 +00:00
Bruce Evans
d154848cd1 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
Bruce Evans
1fd2a774d4 Fixed missing const(s) or #include(s) in synopsis. 1997-04-11 18:47:10 +00:00
Bruce Evans
99566cdcca Fixed synopsis (the #include was bogus and the return type for brk() was
wrong).
1997-04-11 18:39:44 +00:00
Bruce Evans
0574ea641c Fixed missing header in synopsis. 1997-04-11 18:09:29 +00:00
Bruce Evans
f6e90f37db Fixed synopsis (prototype was missing a const). 1997-04-11 18:07:45 +00:00
Bill Paul
6e8caff794 Don't even think about processing bogus domain names here. 1997-04-10 20:26:04 +00:00
Mike Pritchard
b0b21f924b Typo police. Part of PR# 3242.
Submitted by:	Philippe Charnier <charnier@xp11.frmug.org>
1997-04-09 23:05:04 +00:00
John Polstra
f3112eb32a 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 Wemm
3b6bf52958 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 Wemm
165dc08286 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 van Rooij
0fb28c0973 Fix race
Obtained from: Keith Bostic
1997-04-07 18:01:10 +00:00
Andrey A. Chernov
21b4da0751 Restore PATH_LOCALE functionality using issetugid() call now 1997-04-07 08:54:38 +00:00
Andrey A. Chernov
b15443ba83 Speedup in case locale not used 1997-04-04 20:10:53 +00:00
Andrey A. Chernov
b5a6eb1833 Speedup in case locale not used 1997-04-04 19:40:49 +00:00
Andrey A. Chernov
21d58869ce Speedup in case locale not used 1997-04-04 19:16:08 +00:00
Andrey A. Chernov
6a575f6e24 Eliminate some function calls when locale not used 1997-04-04 19:08:19 +00:00
Andrey A. Chernov
ed2bf9a999 Eliminate yet one function call when locale not used 1997-04-04 19:07:02 +00:00
Andrey A. Chernov
5058254947 Speedup in case locale not used 1997-04-04 18:44:19 +00:00
Andrey A. Chernov
350498c58e Speedup in case locale not used 1997-04-04 18:28:38 +00:00
Jordan K. Hubbard
138b38c068 Add libg++ 3.0 1997-04-03 06:08:28 +00:00
Mike Pritchard
5d00c0a499 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 Wemm
8959b2546d Update to include details about the changes to setuid/setgid. 1997-04-02 17:24:16 +00:00
John Polstra
bb789b9ea2 Fix an error in the previous revision that caused make world breakage. 1997-04-02 16:49:18 +00:00
Mike Pritchard
1595890a1f 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
Mike Pritchard
134970f671 Grammar police. 1997-04-02 05:52:22 +00:00
Andrey A. Chernov
28804f92db 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
Andrey A. Chernov
81d9597ce7 Code space optimization in uu_lockerr() 1997-04-02 03:53:49 +00:00
Andrey A. Chernov
2875419215 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
John Polstra
6f78fb0cc1 Correct the most glaring errors. I have a feeling there are some
left.
1997-04-02 01:42:07 +00:00
Andrey A. Chernov
72daaae383 Link chown with lchown 1997-04-01 23:07:55 +00:00
Andrey A. Chernov
f7000016df Add issetugid.2 to MAN2 list 1997-04-01 22:57:56 +00:00
John Birrell
38d7083fcf Fix the return value. Oops. 1997-04-01 22:52:43 +00:00
John Birrell
1cec64c4d6 Fix indentations. Sigh. 1997-04-01 22:51:48 +00:00
John Birrell
745a12fc30 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
John Birrell
e710f8d85b Add parentheses to make blocking mode work. 1997-04-01 22:44:18 +00:00
Mike Pritchard
02dd678d7e 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
Mike Pritchard
625fe116e7 Don't xref setregid(2) twice - one of them should be setreuid(2). 1997-04-01 18:50:56 +00:00
Mike Pritchard
51aa564f75 Fix one very minor mdoc problem. Gentle enough, Peter? :-) 1997-04-01 18:45:57 +00:00
Mike Pritchard
13bf59efdc Fix a minor grammar problem. 1997-04-01 18:06:33 +00:00
Mike Pritchard
698fdb70ff MLINK uu_lockerr(3). 1997-04-01 17:44:58 +00:00
Mike Pritchard
b5ebf1f5cd Mdoc police. 1997-04-01 17:44:31 +00:00
Bruce Evans
67fd3b9895 Simplified install rule. 1997-04-01 13:53:16 +00:00
Jean-Marc Zucconi
0b905bf2d5 Fix the output format for numbers >= 1E99.
Closes PR bin/648.
1997-04-01 02:32:41 +00:00
Jean-Marc Zucconi
10adfec195 Add the -DPedantic flag. This is used in wref.c only. 1997-04-01 02:27:11 +00:00
Brian Somers
687d0cdeb3 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 Wemm
0e1cf9a328 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 Wemm
8996ff49a1 Steal issetugid man page from OpenBSD. Needs work..
Obtained from: OpenBSD
1997-03-31 15:59:14 +00:00
Peter Wemm
374506988c Add libc hook for issetugid() 1997-03-31 15:43:22 +00:00
Peter Wemm
30493bb81b Create lchown() in libc and document it as a variation of chown(). 1997-03-31 12:37:35 +00:00
Bruce Evans
7288802ce0 Fixed wording of previous change.
Obtained from:	fgets.3
Guided by:	ISO C standard
1997-03-31 05:18:27 +00:00
Warner Losh
e57e56abf0 Revert my last few changes. They were bogus. Replaced them with
the original text plus a statement saying that if strftime fails,
the results are undefined.

Requested a long time ago by: bde
1997-03-31 04:51:13 +00:00
Brian Somers
568b59b9df Move uucplock into libutil and create a manual page. 1997-03-30 12:12:20 +00:00
Andrey A. Chernov
a080f5787d Remove orand* code as promised for the next release 1997-03-29 19:55:03 +00:00
Andrey A. Chernov
79d07a3202 Remove unneded define from CFLAGS (from orand* compatibility) 1997-03-29 19:45:07 +00:00
Andrey A. Chernov
ffdb787e62 Remove orand* compatibility as promised (next release) 1997-03-29 19:44:14 +00:00
John Polstra
162fc7cd57 Remove conflicting declaration of sys_errlist, which caused make world
breakage.
1997-03-29 17:42:32 +00:00
Bruce Evans
58d6cb893a Fixed #includes in synopsis to compile.
Fixed #includes in synopsis to declare the prototype in the synopsis.
Fixed stale types in description of struct dirent.
1997-03-28 12:27:42 +00:00
Mike Pritchard
6c0aebfa90 The w+ entry description was misformatted.
Pointed out by: bde
1997-03-27 18:08:23 +00:00
David Nugent
c333ae82c1 Remove minor warning (for -Wall -Wshadow); clarifies code. 1997-03-26 15:42:09 +00:00
Mike Pritchard
6629a7327d Get my last commit right. The NOTE section now reads:
The sa_mask field specified in act is not allowed to block SIGKILL or
SIGSTOP.  Any attempt to do so will be silently ignored.

Now where did I leave that pointy hat...
1997-03-25 18:33:23 +00:00
Warner Losh
4545c5b7a4 Restricting $LANG was a really bad idea
Pointed out by: Everybody but Jordan.
1997-03-25 05:36:37 +00:00
Warner Losh
99a0772b8d Back out 1.14 until I reproduce trouble reports 1997-03-25 05:34:31 +00:00
Mike Pritchard
eb5ca91408 Change the description of how attempts to block SIGKILL and SIGSTOP
are handled.  The system call will actually fail in this case - the
system doesn't silently ignore the request.  Closes PR# 3047

Pointed out by: fenner
1997-03-25 03:39:54 +00:00
Warner Losh
6e42740802 Don't overflow buffers, and only open alternative termcap files if we're
not running setuid or setgid.

Fixes PR 2586

Submitted by:	Julian Assange
1997-03-24 06:41:30 +00:00
Warner Losh
3f2c98c480 Don't honor LANG or NLSPATH if we're setuid/setgid.
Fixes PR 2582

Submitted by:	 Julian Assange
1997-03-24 06:15:07 +00:00
Warner Losh
79d71652cf If we're running setuid/setguid then don't open the host alias file to
prevent information leakage.

Closes PR 2578

Submitted by:	Julian Assange
1997-03-24 06:11:44 +00:00
Warner Losh
418d4a9817 Don't open the tz file if we're running setuid or setgid to prevent infomration
leakage.

Submitted by:	Julian Assange
1997-03-24 06:09:50 +00:00
John-Mark Gurney
bb135fe9a1 add xrefs for getpeername, so other people that look for it can find it.. :) 1997-03-24 01:22:01 +00:00
Warner Losh
62f187a4cf Buffer overflow. Similar, but different, to the fix that Julian A submitted
in PR 2580.

Obtained from: BSDi by way of Keith Bostic

Should be in 2.2 and 2.1.x.  I'll merge into 2.2.
1997-03-23 23:31:50 +00:00
Warner Losh
d1942b2e76 Fix a minor buffer overflow.
Obtained from: BSDi by way of Keith Bostic
1997-03-23 23:17:22 +00:00
Andrey A. Chernov
92936d823f Add srandomdev.3 link 1997-03-23 23:12:59 +00:00
Andrey A. Chernov
f409763500 Fix urandom reference in the comment 1997-03-23 23:09:31 +00:00
Andrey A. Chernov
7b0b1b2f29 Add srandomdev() description 1997-03-23 23:08:31 +00:00
Andrey A. Chernov
301cf5d3e4 Add srandomdev() function (use "/dev/urandom" now)
Submitted by: wollman & me (add type casts and remove unneded loop)
1997-03-23 22:40:20 +00:00
Mike Pritchard
1c2eb98219 Remove an extra comma. 1997-03-22 23:48:12 +00:00
Mike Pritchard
8a7f0369b3 Use the .Tn macro for generic FreeBSD references. Other minor cleanup. 1997-03-21 20:57:20 +00:00
Mike Pritchard
9de8ddb8bc Mdoc cleanup. 1997-03-21 20:46:30 +00:00
Bill Paul
effbdb690f Document SCM_CREDS changes. 1997-03-21 16:52:05 +00:00
John Polstra
cf49f43912 Add backward compatibility so that static executables built on
modern FreeBSD systems will syslog properly on older systems that
still name the logging socket "/dev/log".  This includes pre-2.2
versions of FreeBSD as well as BSD/OS systems.  If the connect to
"/var/run/log" fails, the function now tries to connect to
"/dev/log" as a fallback.
1997-03-20 16:28:27 +00:00
Mike Pritchard
1bca868c73 Don't use the undocumented .Fr (function return value) macro for function
arguments.  Use .Fa instead (the output is the same).  Also fixed
a formatting error.
1997-03-19 22:09:08 +00:00
Bruce Evans
433671e348 Fixed missing #include of <sys/types.h> and wrong arg types in synopsis.
Reviewed by:	wollman
1997-03-19 19:41:20 +00:00
Bruce Evans
d06390f68b Fixed misquoted arg in synopsis. 1997-03-19 02:01:27 +00:00
Bruce Evans
f0821c98f2 Fixed wrong return type for tputs() in synopsis. 1997-03-19 01:57:06 +00:00
Bruce Evans
26838e4e99 Fixed this header to compile with gcc -pedantic -Werror (removed comma
at end of enum).
1997-03-19 01:54:04 +00:00
Bruce Evans
8e868ec864 Fixed synopsis (missing #includes and consts). 1997-03-19 01:33:23 +00:00
Bruce Evans
2d2781ff2c Fixed synopsis. Some float functions claimed to have the same name as
the double version.
1997-03-19 01:28:44 +00:00
Bruce Evans
9837ab3f80 Fixed quoting in .Fn macro invocations in synopsis. The args must be
quoted individually.  Quoting them all together sort of worked, except
for scsreq_build(), the long arg list was chopped near column 80, to
no avail since the closing parentheses was put on new line by itself.
1997-03-19 01:15:44 +00:00
Bruce Evans
1d23531445 FIxed arg types (mostly missing consts) in synopsis. 1997-03-19 00:58:07 +00:00
Bruce Evans
09589ca82e FIxed arg types (mostly missing consts) in synopsis. 1997-03-19 00:52:58 +00:00
Bruce Evans
7a30f18397 Added missing #include of <stdarg.h> to synopsis. Moved prototypes for
`v' functions after this #include (same organisation as in printf.3 for
printf/vprintf).
1997-03-19 00:43:13 +00:00
Bruce Evans
3ce29386aa Fixed missing function types in synopsis. 1997-03-19 00:32:42 +00:00
Bruce Evans
f68da8d891 Fixed synopsis (put all of the function (return) type info in .Ft and
none in .Fn).
1997-03-19 00:06:09 +00:00
Bruce Evans
ea6bd16b04 Removed unnecessary quoting of function names in synopsis to simplify
automated checking of synopses.
1997-03-18 23:57:33 +00:00
Eivind Eklund
43ec585267 Re-order terms to avoid potential pointer overflow, and remove one
more potential buffer overflow.

Submitted by:	bde
1997-03-18 16:09:27 +00:00
Poul-Henning Kamp
753da60320 Check for overflow in size argument.
Tested by:	Joel Maslak <j@pobox.com>
Closes:		PR kern/2964
1997-03-18 07:54:24 +00:00
Andrey A. Chernov
94fa7afda3 Fix arg types to match Lite2 1997-03-17 16:27:16 +00:00
Eivind Eklund
92d1e8a27b Buffer overflow fix - closes PR bin/2983 for -current. Should really
go into 2.2.0 Release, even at the present time.  Problem spotted by
Tero Kivinen <kivinen@ssh.fi> - was in BugTraq today :-(
1997-03-17 09:30:19 +00:00
Bruce Evans
1fe82dfebf Updated prototype for mount() to match Lite2 reality for the 1st arg
and Lite1 or earlier reality for the 4th arg.
1997-03-13 21:11:33 +00:00
Peter Wemm
d01a28e222 Part 2 of a failed commit (cvs broke). Original message:
Back out a dubious Lite2 change to "optimise" getcwd() to look at $PWD
because it's potentially dangerous (think: symlink races).  Move
realpath() back to it's original location, and remove getcwd_physical()
by renaming it back to getcwd() and zapping the original getcwd wrapper.

Noticed by: bde

The following commits already happened but the log message got lost:

Modified Files:
   gen/Makefile.inc gen/getcwd.c stdlib/Makefile.inc
Removed Files:
   gen/realpath.3
1997-03-13 06:58:46 +00:00
Peter Wemm
098f04f5d1 Back out a dubious Lite2 change to "optimise" getcwd() to look at $PWD
because it's potentially dangerous (think: symlink races).  Move
realpath() back to it's original location, and remove getcwd_physical()
by renaming it back to getcwd() and zapping the original getcwd wrapper.

Noticed by: bde
1997-03-13 06:45:38 +00:00
Jean-Marc Zucconi
2cdf6aaa5e Add a pair __BEGIN_DECLS/__END_DECLS 1997-03-13 00:13:25 +00:00
Bruce Evans
9786bca933 Make this man page really match the current <sys/signal.h> again and
the 2.x <sys/signal.h> for the first time :-).  The type of ss_sp
was lexically different.
1997-03-12 17:16:22 +00:00
Mike Pritchard
1ec7f27c99 Make this man page match the current <sys/signal.h> again :-).
Bruce says that since NetBSD, OpenBSD and Linux currently
use ss_sp, we won't be changing it to the lite2 ss_base.
The type may change at some later date.
1997-03-12 16:23:36 +00:00
Mike Pritchard
d6582c6735 Update the structure to match how things are going to appear after
bde commits some changes later tonight.
1997-03-12 15:35:52 +00:00
Mike Pritchard
1d104f9fbd More cleanup - I didn't realize that this was a new man page
and need extra attention :-)
1997-03-12 15:21:57 +00:00
Bruce Evans
1da37b4c38 Restored a .Fa line that was lost in the Lite2 merge. 1997-03-12 15:18:28 +00:00
Mike Pritchard
1da7386d34 Mdoc cleanup. 1997-03-12 15:14:07 +00:00
Bruce Evans
c047aec843 Fixed merging error. Lite2 fixed premature failure and didn't
touch duplicate group suppression, but the merge blew away our
duplicate group suppression.

The merge also blew away the -Wall cleanup in rev.1.5, but that
was misformatted, so I didn't restore it.
1997-03-12 14:54:22 +00:00
Mike Pritchard
ed1fa5e0fd Cleanup some of the Lite2 merge. Most of it is mdoc cleanup,
but in one case the Lite2 changes were flat out wrong and
caused the man page to disagree with a header file.

There are still some *roff macro calls that were added that
I have yet to figure out what to do with in some of the man pages.
1997-03-12 14:49:41 +00:00