Wolfram Schneider
bf5cbf3551
Sort cross refereces in section SEE ALSO.
1997-09-29 19:11:55 +00:00
Wolfram Schneider
2af22b06a4
Endless loop.
...
$ vipw
[corrupt a line in editor, exit editor]
pwd_mkdb: corrupted entry
pwd_mkdb: at line #2
pwd_mkdb:
/etc/pw.012585: Inappropriate file type or format
re-edit the password file? [y]: n^D^D
[hang]
1997-09-29 13:13:51 +00:00
Andrey A. Chernov
5fb9db85bb
Add setutent.c
1997-09-29 11:38:36 +00:00
Andrey A. Chernov
bcd05664ce
EXT_KEYS gone, STD ommited
1997-09-29 10:55:46 +00:00
Andrey A. Chernov
3f3386c2a8
Add logwtmp.c
1997-09-29 10:49:21 +00:00
Andrey A. Chernov
e9fcc517e1
Merge
1997-09-29 10:33:14 +00:00
Mike Smith
af35b9ccb0
Revert the previous prototype un-typo. Add a brief comment warning that
...
"fixing" it is not a good idea.
1997-09-28 17:11:31 +00:00
Mark Murray
0e8089efef
Changes for KTH KerberosIV
1997-09-28 09:08:48 +00:00
Mark Murray
7f80a02080
Changes for KTH KerberosIV.
...
Also quieten -Wall a bit.
1997-09-28 08:57:24 +00:00
Mike Smith
378a2883fe
Typo fix
1997-09-28 03:28:34 +00:00
Mike Smith
27c729f066
Fix typo in signal() prototype
1997-09-28 03:28:09 +00:00
Andrey A. Chernov
46dba712f1
Use revived __maskrune for digittoint
...
Minor formatting
1997-09-27 04:34:35 +00:00
Andrey A. Chernov
08401510be
Add mskanji.c
1997-09-25 23:24:35 +00:00
Andrey A. Chernov
3f2fd98c12
Move it under XPG4 define
1997-09-25 23:20:26 +00:00
Andrey A. Chernov
bed2de7d4c
Move MSKanji under XPG4 define
1997-09-25 23:18:10 +00:00
Andrey A. Chernov
1284c1ad08
__maskrune --> __istype
1997-09-25 23:10:38 +00:00
Julian Elischer
16f76e6f06
Submitted by: Sin'ichiro MIYATANI / Phase One, Inc <siu@phaseone.co.jp>
...
Basic support for the Shift JIS encoding of japanese.
(and one tiny typo fixed in a comment)
1997-09-24 20:38:12 +00:00
Andrey A. Chernov
65fce1274e
This commit was generated by cvs2svn to compensate for changes in r29747,
...
which included commits to RCS files with non-trunk default branches.
1997-09-23 21:34:42 +00:00
Andrey A. Chernov
e97dbe1e30
Official patch from infozip
1997-09-23 21:34:42 +00:00
Peter Wemm
42396e05cf
Apply fts() fix from PR#4593
...
Submitted by: Dmitrij Tejblum <dima@tejblum.dnttm.rssi.ru>
1997-09-22 12:48:40 +00:00
Bill Paul
0e710e8f95
Make selection logic more strict. Only select AF_INET loopback interfaces
...
that are up on second (loopback only) pass, and only select non-loopback
AF_INET interfaces that are up on first pass.
1997-09-21 23:04:51 +00:00
Poul-Henning Kamp
d030d2d2ae
Many places in the code NULL is used in integer context, where
...
plain 0 should be used. This happens to work because we #define
NULL to 0, but is stylistically wrong and can cause problems
for people trying to port bits of code to other environments.
PR: 2752
Submitted by: Arne Henrik Juul <arnej@imf.unit.no>
1997-09-18 14:08:40 +00:00
Philippe Charnier
34384756cd
environmental -> environment.
1997-09-18 06:55:21 +00:00
Peter Wemm
9e06e6da51
Some adjustments for the resolver use of poll(). For some reason I thought
...
an unimplemented syscall returned ENOSYS, rather than EINVAL. I have run
statically linked code with this wrapper and it does appear to work fine
on 2.2-stable which doesn't have poll(). ktrace shows the poll syscall fail
once and the fallback to select() working.
1997-09-16 06:03:54 +00:00
Peter Wemm
b7ecb08afa
Put a system call not present checking wrapper around the call to
...
__getcwd(). I've got this libc code running on one of my machines
at the moment without the __getcwd() syscall being present.
1997-09-16 06:00:50 +00:00
Wolfram Schneider
211fed7e35
Fix yet a minor stylistic nit from Bruce.
...
(`cvs diff -ib' print one new char ;-).
1997-09-15 19:37:23 +00:00
Poul-Henning Kamp
36dff60096
Fix yet a minor stylistic nit from Bruce (Doesn't he have more
...
important things to do ?? :-)
Prepare for the likely case of a change in kernel algorithm.
1997-09-15 17:40:15 +00:00
Poul-Henning Kamp
9c2d6fcf05
Fix a buglet and a couple of stylistic nits from Bruce.
1997-09-15 08:25:14 +00:00
Wolfram Schneider
8be26e5d0f
Potential bufferflow in getpwent(), getpwnam() and getpwuid()
...
PR: bin/4134
Submitted by: nick@foobar.org
1997-09-14 18:16:11 +00:00
Poul-Henning Kamp
27262cac33
Add __getcwd() syscall, and have getcwd() take a shot at it.
...
If your kernel doesn't support __getcwd() or if __getcwd() cannot
deliver because of cache expiry, it does the canonical thing.
1997-09-14 16:57:27 +00:00
Peter Wemm
535db1806c
Call poll(2) from within the resolver but adapt to older kernels without it
...
if necessary. This removes the need to malloc large fd_set's for selecting
on high fd's (larger than FD_SETSIZE at libc compile time).
The syscall adaptive stuff only happens on the very first call. SIGSYS
is masked, and if the call to poll fails with ENOSYS, then we use select
for the life of the program. If poll does not fail with ENOSYS, then we
always use poll and skip the once-off signal masking gunk.
This may be overkill, but it saved my neck a few times while working on
multiple different sets of kernel sources, some with poll, some without.
1997-09-14 09:44:34 +00:00
Peter Wemm
16115af153
A poll(2) manpage.
...
Obtained from: NetBSD
1997-09-14 05:44:35 +00:00
Peter Wemm
b52c91dd7e
Generate poll syscall stub
1997-09-14 03:29:55 +00:00
Joerg Wunsch
dbf4898f6c
Document SA_NOCLDWAIT.
...
Make all the SA_* flags go into a tagged list, to improve readability.
1997-09-13 19:43:24 +00:00
Bruce Evans
065bebee55
Removed superfluous quoting of function args.
1997-09-07 04:10:35 +00:00
Bruce Evans
f12d1f0bf6
Fixed style bug in pseudocode.
1997-09-07 04:01:27 +00:00
Brian Somers
59354a4e8d
Upgrade to 2.4 (Fix -PKT_ALIAS_UNREGISTERED_ONLY)
...
Submitted by: Charles Mott <cmott@srv.net>
Add __libalias_version so that ppp can derive the
correct library name for dlopen()
1997-09-06 11:11:43 +00:00
Peter Wemm
a9c87f32ee
When compiling under elf, use correct library naming conventions. Also
...
add the required extra symlink. Set the -soname to libcrypt.so so that
the symlink is used at runtime rather than resolved at compile time.
1997-09-05 12:12:35 +00:00
Peter Wemm
7bd6d5e7cf
If building under elf, have libskey.so depend on libmd and libcrypt.
1997-09-05 11:52:20 +00:00
Peter Wemm
1840bd1444
If not building a.out, still build a pic version of libmd. This allows
...
things like libskey.so to be dynamically self contained.
Things like md5(1) where speed is critical should still link with libmd.a,
but for things like login, where it's a once-off call if skey is used, it's
not worth the hassle.
1997-09-05 11:49:43 +00:00
Paul Traina
326df44ead
The parameters to logwtmp should be const char's
1997-09-04 22:38:59 +00:00
Bruce Evans
853aa1faf3
Fixed synopsis. The envp arg for execle() can't be given in the prototype.
...
Fortunately, the man page doesn't refer to "envp" so just deleting it is OK.
1997-09-03 03:25:35 +00:00
Andrey A. Chernov
738111e63b
Fix possible coredump on BW displays
1997-09-02 19:07:50 +00:00
Brian Somers
a367bd9e25
Add "options no_tld_query" to resolv.conf.
...
Mention the capability in resolver(5).
Mention that RES_OPTIONS can be used in resolver(5).
Discussed with: -hackers
1997-09-01 01:19:23 +00:00
Bruce Evans
6a9280be8c
Hide the declaration of `struct exception' from C++, since it conflicts
...
with the standard C++ `class exception'. This makes matherr() difficult
to use in C++. Small loss.
1997-08-31 22:12:19 +00:00
Bruce Evans
4447a79bf7
Fixed inclomplete function type in synopsis.
1997-08-31 21:54:10 +00:00
Brian Somers
ad1d4e56a2
Remove login_progok()
...
Suggested by: guido
1997-08-31 20:09:39 +00:00
Andrey A. Chernov
0d589df709
Restore back issetugid() usage and bump major number
1997-08-31 08:37:28 +00:00
Poul-Henning Kamp
188891873e
Another 32bits of 64bits conformance.
...
Reviewed by: phk
Submitted by: jdp
1997-08-31 05:59:39 +00:00
Peter Wemm
77909f5978
Initial elf nlist support, mostly stolen from OpenBSD (they use standard
...
#defines that are compatable with ours). I made some some minor tweaks
to the leading '_' tests.
Again, this is off by default for the moment. This probably should be
split into seperate files (like some of our other libc files that could
do with some splitting).
Obtained from: OpenBSD (plus some minor tweaks)
1997-08-31 00:08:35 +00:00
KATO Takenori
01f770e87c
Added HW_MACHINE_ARCH.
1997-08-30 02:26:36 +00:00
Warner Losh
9a91f1cc25
Merge in the safe chdir changes from Todd Miller's mods to the OpenBSD
...
tree. Also merge in fix to NetBSD PR #1495 . These represent 1.3-1.9 in
the OpenBSD tree. Make minor KNF changes to new code (which is in the
OpenBSD as 1.10). This avoids the symlink race problems.
These patches should go into 2.2.5 before the ship if they don't
break anything in -current.
Reviewed by: Bruce Evans
Obtained from: OpenBSD
1997-08-29 22:56:41 +00:00
John Polstra
9295bb8d0d
Add a stub version of getpublickey(), in order to eliminate an
...
undefined symbol referenced from libc. Without the stub, it is
impossible to execute any program using the shared library if
LD_BIND_NOW=1 is in the environment. The stub always returns
failure, but it can be overridden outside the library when necessary.
I don't know whether this is the "correct" fix, but it is intolerable
to have any undefined symbols referenced from libc.
1997-08-28 21:50:33 +00:00
Andrey A. Chernov
ef5ccd9e3c
Fix inspace handling I broke in rev 1.13
1997-08-28 08:13:21 +00:00
Brian Somers
fbbe016b64
Add full support for determining if a user
...
is restricted from running a given program.
1997-08-27 20:06:20 +00:00
Andrey A. Chernov
eb8eee5a55
Use getpwnam(getlogin()) before getpwuid(getuid())
1997-08-27 13:36:34 +00:00
Poul-Henning Kamp
263f4be35c
Improvement of type independency for the bitmap.
...
This makes 64bit operation more likely.
Reviewed by: phk
Submitted by: jdp
1997-08-27 12:04:33 +00:00
Poul-Henning Kamp
cd15afa3e8
Malloc option H is now default.
1997-08-27 06:40:34 +00:00
Warner Losh
3fa69daee8
Don't getenv(HOME) when set[ug]od. This can lead to a buffer overflow and
...
elevated privs.
Obtained from: OpenBSD
1997-08-27 05:27:53 +00:00
Brian Somers
889d7d1524
Add prog.deny as a list capability for
...
denying execution of certain programs.
1997-08-26 23:15:57 +00:00
Bruce Evans
30a72f72d5
-I${DESTDIR}/sys -> -I${.CURDIR}/../../sys.
1997-08-26 14:13:02 +00:00
Andrey A. Chernov
a139916b88
Temp restore of rev 1.9
1997-08-26 12:47:09 +00:00
Andrey A. Chernov
a05c4d30fd
Temporarily comment out issetugid() call until everyone installs libtermcap,
...
major number bumping will follows then
1997-08-25 16:42:22 +00:00
Andrey A. Chernov
0e7e6efe8f
Fix saving/restoring tty modes, allow initscr be called twice,
...
from ncurses 4.1
1997-08-25 07:41:15 +00:00
Joerg Wunsch
f778764443
Make the MD* header files C++-aware. Also, string arguments are supposed
...
to be of type `const char *'.
PR: 3291
Submitted by: dima@tejblum.dnttm.rssi.ru (Dmitrij Tejblum)
1997-08-25 05:24:31 +00:00
Andrey A. Chernov
32a7305976
Bump minor number due to issetugid()
1997-08-24 19:19:08 +00:00
Andrey A. Chernov
cefcce61a0
Add winnstr family and fake resizeterm from ncurses 4.1 for compatibility
...
with recent applications.
Bump minor number.
1997-08-24 19:09:45 +00:00
Joerg Wunsch
1818482d81
Cosmetic: distinguish in diag message between rebuilding and updating
...
the database.
PR: 3397
Submitted by: taob@risc.org (Brian Tao)
1997-08-24 18:23:21 +00:00
Steve Price
a89989b26f
Get rid of integer overflow warning.
...
PR: misc/3575
Submitted by: Bruce Evans <bde@zeta.org.au>
1997-08-23 23:51:12 +00:00
Steve Price
18de8a52e4
Remove extra definition of vwprintw.
...
PR: bin/3623
Submitted by: Stephen J. Roznowski <sjr1@flash.net>
1997-08-23 23:23:07 +00:00
Steve Price
da0a2ddec5
Reference the correct version of BSD at the bottom of the
...
manpage.
PR: docs/3735
1997-08-23 21:32:50 +00:00
Søren Schmidt
805af8409d
Activate libvgl
1997-08-22 13:20:03 +00:00
Andrey A. Chernov
7b759a7f68
Replace uids comparison by issetugid() call
1997-08-22 11:14:53 +00:00
Bruce Evans
1ae93414c3
Fixed off by 1 error.
1997-08-21 19:44:41 +00:00
Bruce Evans
8f45662223
Split beforeinstall target so that headers can be installed without
...
installing data files.
1997-08-21 16:14:34 +00:00
Peter Wemm
04b8783cda
Manpage for getsid(2).
1997-08-19 07:19:43 +00:00
Peter Wemm
4ff76833b4
Forgot to mention what getpgid(0) does.
1997-08-19 07:04:43 +00:00
Peter Wemm
ff31b5e404
Manpage for getpgid(2), wording taken from NetBSD.
1997-08-19 07:00:53 +00:00
Peter Wemm
38fed76f7f
Syscall stubs for getpgid()/getsid().
1997-08-19 06:23:45 +00:00
Søren Schmidt
9a57b7d230
First import of my little "video graphic library".
...
See the manpage vgl.3 for more info.
A little example will follow shortly.
1997-08-17 21:09:35 +00:00
Tor Egge
4afb0d5a5b
Copy code from gnu/usr.bin/gdb/gdb/kvm-fbsd.c to deal with 4 MB pages.
1997-08-17 17:42:59 +00:00
Steve Price
51cc902b40
Reflect reality of sticky bits and UFS-based filesystems.
...
PR: docs/4198
Submitted by: Ada T. Lim <ada@not-enough.bandwidth.org>
1997-08-17 00:19:28 +00:00
Steve Price
449a542231
Describe the QCMD macro and its parameters.
...
PR: docs/4261
1997-08-17 00:08:40 +00:00
Peter Wemm
fb1b994b4c
Regenerate..
1997-08-16 07:13:47 +00:00
David Greenman
f5f31fba12
Fixed file descriptor leak that occurs after certain types of failures.
...
PR: 3516
Submitted by: Matthew Flatt <mflatt@cs.rice.edu>
1997-08-15 05:21:16 +00:00
Andrey A. Chernov
422ff09040
Explicitly point that it_value == 0 disables timer regardles of
...
it_interval value. It is backward-compatible with previous usage
and SunOS-compatible now.
1997-08-14 08:26:25 +00:00
Andrey A. Chernov
3ece8e2b27
Describe itimerfix upper limit
1997-08-14 07:57:58 +00:00
Andrey A. Chernov
067fe639d7
Describe upper limit based on itimerfix restriction
1997-08-14 07:44:57 +00:00
Andrey A. Chernov
a85a54896e
Oops, fix logic for previous commit
1997-08-14 06:46:44 +00:00
Andrey A. Chernov
d1e224f2cc
Remove wrong machine-dependent phrase about maximum microseconds
...
limit. Small cleanup.
1997-08-14 06:32:25 +00:00
Andrey A. Chernov
3b3d0d1b49
Break loop if error != EINTR occurse or it can take forever with
...
time_remaining unchanged
1997-08-14 06:23:48 +00:00
Andrey A. Chernov
ee05c01758
Define NCURSES_VERSION publicly, some applications want it
...
Fix unctrl()
Merging from 4.1 used for this fixes.
1997-08-13 23:28:29 +00:00
Steve Price
673b794638
Protect the copyright comments from reformatting by
...
indent and make this compile -Wall clean like the
Makefile suggests that it should. :)
Pointed out by: Bruce Evans <bde@zeta.org.au>
1997-08-13 20:42:18 +00:00
Andrey A. Chernov
2e2d038677
Note that default behaviour (restarting signals) is only for signal(3)
1997-08-13 18:40:57 +00:00
Andrey A. Chernov
71936d097e
Handle syscalls error return slightly better
1997-08-13 18:22:41 +00:00
Andrey A. Chernov
3be4b5c3df
Back out itimerfix hack since nanosleep1 fixed now
...
Handle syscalls error return slightly better
1997-08-13 18:13:17 +00:00
Andrey A. Chernov
f38ea584f5
Add unsigned char cast to all ctype calls
1997-08-13 13:11:53 +00:00
Andrey A. Chernov
aaf9cb20c9
Fix longstanding bug with buffer pointer goes beyoud buffer start
...
Cause initscr (ncurses) fail in some cases
1997-08-13 01:21:36 +00:00
Andrey A. Chernov
3f121d0aa3
TRACE_VIRTPUT (we don't have it yet) -> TRACE_CHARPUT
1997-08-13 00:12:46 +00:00
Andrey A. Chernov
fc0cc5ad9b
Rearrange itimerfix loop doing it inside SIGALRM handling section
1997-08-12 19:54:31 +00:00