Commit Graph

191 Commits

Author SHA1 Message Date
jtc
9c00bc072d Include systm.h to get prototypes (and possibly inlines) of *max functions.
Change mbinit() to match prototype.
1993-09-04 00:01:43 +00:00
cgd
491d6b4b9d fix problem where exec would lose on shell scripts with symlinks in
their names.  fix from "James W. Dolter" <jdolter@sawtooth.eecs.umich.edu>.
test script:

#!/bin/csh
mkdir /tmp/foodir
cat > /tmp/foodir/testscript <<EOF
#!/bin/sh
echo "Executing script \$1"
EOF
chmod 755 /tmp/foodir/testscript
(cd /tmp ; ln -s foodir foosym)
echo "Trying full path (w/o symlink) to /tmp/foodir/testscript"
/tmp/foodir/testscript "with out symlink"
echo "Trying full path (w/ symlink) to /tmp/foosym/testscript"
/tmp/foosym/testscript "with symlink"
echo "End of Test"
1993-09-01 21:43:50 +00:00
deraadt
28c37a0949 fixed a little /lib/cpp boo-boo 1993-08-31 13:46:31 +00:00
cgd
d365662684 ok, initialize that errno, to make theo and gcc2 happy... 1993-08-31 01:52:34 +00:00
cgd
518f7c78d6 a program being exec'd *must* cause *some* exec commands to be invoked;
if it doesn't there's a problem in the kernel, because a program
with no exec commands run will have no address space except the stack,
and i don't think it's valid to have a "run from stack only" exec type,
so panic.  if need for that case comes up later, it can be changed...
1993-08-31 01:46:36 +00:00
deraadt
6fce70ed63 blast it, i forgot two ('s 1993-08-30 06:25:10 +00:00
deraadt
9aed375ba3 tty XXstart() routines return void 1993-08-29 13:46:31 +00:00
deraadt
bab3a9ce58 added two __P() macros 1993-08-29 13:16:04 +00:00
cgd
b1eacffd69 print more DIAGNOSITC info, and startrtclock early on the mac (like i386) 1993-08-29 01:50:49 +00:00
brezak
15c3400ffe Machine independant changes to VM for handling non-contiguous memory. 1993-08-27 23:45:55 +00:00
pk
0732d8a8b1 Added VPROC to vprint()'s vnode type representation array. 1993-08-26 18:57:02 +00:00
pk
d18c6d88d0 Support added for proc filesystem. 1993-08-24 12:56:22 +00:00
mycroft
22ab556e04 If ospeed is set to 0, SIGHUP the session leader (if any). 1993-08-23 16:36:42 +00:00
mycroft
742dcd5655 RLIMIT_OFILE --> RLIMIT_NOFILE 1993-08-23 16:01:56 +00:00
cgd
4543c1ebfd changes from 0.9-ALPHA2 to 0.9-BETA 1993-08-23 04:59:38 +00:00
glass
8ff8fa8046 runs up to and including configure().
todo: exceptions, interrupt support, make isrs affect vector table
kernel/user stacks
1993-08-15 23:01:58 +00:00
deraadt
3604916e13 ppp from paul mackerras 1993-08-14 06:29:28 +00:00
glass
7ffaf186bb baseline revision 1993-08-13 22:00:55 +00:00
glass
7318599b7c snapshot of intergration of torek's config 1993-08-13 13:19:41 +00:00
cgd
54eb3b1f88 brought in fixed/renamed/matching MS-DOS FS code, from Jeff Polk
<polk@bsdi.com>.  His notes are as follows:
------------------------------------------------------------------------------

 July 22, 1993

 - Changed name of entire package from PCFS to MSDOSFS

 - Fixed bugs:
      root directory size in clusters instead of bytes
      growing directory didn't update in-core size
      link, symlink, mknod didn't free locked parent (deadlock)
      lookup returned real error on create and rename instead of EJUSTRETURN
      rename changed `.' entry in child instead of name entry in parent
      rename removed `.' entry in child instead of removing entry in
              parent when moving a directory from one dir to another
      createde() left new node locked when write of parent failed (deadlock)
      removede() decremented refcount even on error (rmdir's which failed
              due to write errors left in-core cache entries inconsistent)
      changed validation for filesystem to not check for the boot signature
              since some disks (e.g., mtools) aren't bootable
      directories are always show current time as modify time
              (needed for NFS export since DOS never updates dir mod times --
               ctime is true create time).

 - Added support for cookies changes to the readdir() vnode
      interface (#ifdef __bsdi__)

 - Punted on the whole problem of inode generation numbers.  This means
   that there's a chance of using a stale file handle to access a new
   file, but it doesn't appear to be the common case, and I don't see
   how to generate reasonable generation numbers without changing something
   on the disk (which is the way the SVR4 filesystem survival kit guys
   did it).  I don't think it would be very safe to change the on-disk
   format.

        Jeff Polk (polk@BSDI.COM)

------------------------------------------------------------------------------
1993-08-13 11:35:13 +00:00
cgd
cd56dd1638 merge in changes from netbsd-0-9-ALPHA2 1993-08-07 07:53:27 +00:00
cgd
ea4defd6da do the Net/2 thing with startrtclock() for non-i386 architectures.
i386's startrtclock should be moved down, as well, but i believe it
does some magic...
1993-08-07 06:25:43 +00:00
cgd
f5ec218873 the swtch() calls here should not need to be splclock() protected,
and certainly don't need to be bracketed by splclock()/splnone(),
the latter of which is a jolitz invention.
1993-08-07 05:16:38 +00:00
mycroft
bbc8c11fd5 Nuke an extra `||' Chris inserted. 1993-08-03 02:45:20 +00:00
cgd
d6b4910ac2 fix from Garrett Wollman <wollman@emba.uvm.edu> to return EPROTONOTSUPP
if user tries to get a socket for a protocol with no usrreq function
1993-08-03 01:36:10 +00:00
mycroft
5cc9898c12 Cosmetic change to VOP_ADVLOCK() fix. 1993-08-03 00:11:29 +00:00
mycroft
f9ce597695 Collapse a bunch of `if (a & x) b |= x; else b &= ~x;' statements.
Whoever wrote this fugly code must've been on drugs.
1993-08-02 23:37:56 +00:00
mycroft
4862b84c92 Add RCS identifiers (this time on the correct side of the branch), and
incorporate recent changes in netbsd-0-9 branch.
1993-08-01 19:22:24 +00:00
cgd
2680a043c7 general cleanup (get close to KNF), and remove a few fuzzies
in preparation for The Grand Re-rewriting.
1993-07-28 04:08:27 +00:00
cgd
7b2afa7fe6 incorporate changes from 0-9-base to 0-9-ALPHA 1993-07-28 02:20:34 +00:00
ws
96ec00e106 Use all of freebufspace 1993-07-24 22:09:50 +00:00
mycroft
6a12d4b9b2 Clean up deleted files. 1993-07-19 16:39:09 +00:00
cgd
9bd082f70e replace jolitz's vfs__bio with a better one from CMU via mw.
so, replace vfs__bio, and deal with attendant changes.
1993-07-19 16:38:35 +00:00
cgd
57ee917973 allocate out of kmem_map, not buffer_map. buffer_map is for
*buffers*...  hopefully this won't fragment kmem_map too much.
it should probably be put into its own map, but doesn't need to be
right now.
1993-07-19 09:57:22 +00:00
mycroft
7aecc812a5 Move flushq() macro into tty.h. 1993-07-19 05:52:27 +00:00
mycroft
69fdebd9fa Make sure there are character in the ring before flushing. 1993-07-19 05:49:13 +00:00
mycroft
ec99160f49 Use flushq() macro instead. 1993-07-19 05:48:01 +00:00
mycroft
b8756ae04c Use ndflush(), not while(getc()). 1993-07-19 05:10:30 +00:00
andrew
5dbe2d9d5b * don't used copyout() to relocate icode - use bcopy() instead 1993-07-18 08:17:36 +00:00
mycroft
23b68e4c79 Clean up deleted files. 1993-07-18 07:21:13 +00:00
mycroft
a2587ffb83 Nuke a kluge from Net/2. The argument list ocreat() creates for open() can
now be a struct open_args; no need to redefine the structure.
1993-07-18 06:28:01 +00:00
mycroft
41b40c6792 Only declare these variables extern in buf.h; define them only once in
vfs__bio.c.
1993-07-18 05:15:25 +00:00
mycroft
331148c31a Make these files GCC 2 happy. 1993-07-17 16:20:24 +00:00
mycroft
97cae397ee Finish moving struct definitions outside of function declarations. 1993-07-17 15:24:33 +00:00
cgd
9c0456d7d7 gcc2 cleanup, and break args out of procedure def'ns 1993-07-15 22:56:23 +00:00
cgd
082beb9cc0 make args & locals of select unsigned where appropriate. 1993-07-15 22:26:11 +00:00
brezak
74f0cb89c9 Add 'ps' command. Add -more- pager to output from Mach ddb. 1993-07-15 18:36:32 +00:00
cgd
5287574e0a get rid of bogus retrymalloc code (and it was bogus)... 1993-07-15 13:33:23 +00:00
cgd
c0334ef92c break args structs out, into syscallname_args structs, so gcc2 doesn't
whine so much.
1993-07-13 22:13:15 +00:00
mycroft
7ef782c7d7 Clean up deleted files. 1993-07-12 11:36:21 +00:00