summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Make the partitions names even more sensiblephk1995-05-047-31/+56
| | | | CheckRules sets the CHUNK_ALIGN & CHUNK_PAST_1024 flags.
* Add the private void *pointer to the chunks, and the functions to manage it.phk1995-05-034-8/+41
| | | | Make the reassignment of partition names less bogus.
* Bump minor numberache1995-05-031-0/+2
|
* Bump minor numberache1995-05-032-2/+6
|
* Cosmetic changes and paranoia checks:wpaul1995-05-031-5/+5
| | | | | | | | | | | | | | | ypbind.c: Make fewer assumtions about the state of the dom_alive and dom_broadcasting flags in roc_received(). If select() fails, use syslog() to report the error rather than perror(). Check that all our malloc()s succeed. Report malloc() failure in ypbindproc_setdom_2() to callers. yplib.c: Use #defined constants in ypbinderr_string() rather than hard-coded values.
* Export the chunk names properly.jkh1995-05-033-7/+16
|
* Make the target for tst01 more sensible.phk1995-05-035-43/+60
| | | | | | | | | | | | | Remove bogus targets. Allocate partition letters as follows: lowest offset "flags & CHUNK_IS_ROOT" gets 'a', lowest offset "subtype==FS_SWAP" gets 'b' the rest is allocated in offset order from this sequence "defghab". This will generally make sense. Added rules to complain if more than one CHUNK_IS_ROOT or more than one FS_SWAP per FreeBSD chunk. Set CHUNK_IS_ROOT on the 'a' partition in Open_Disk. Run Fixup_Names in Open_Disk.
* foo -> unknownjkh1995-05-021-2/+2
|
* I need Open_Disk() to not spew on my screen. #ifdef out some diagnosticjkh1995-05-021-1/+3
| | | | printfs.
* Fix bracket error for LogMaskache1995-05-021-1/+1
| | | | Submitted by: Ruslan Belkin <rus@home2.UA.net>
* foo -> unknown.jkh1995-05-012-8/+8
| | | | I have to be able to show this stuff to the user. :-)
* Added function and man page for ftok(3), used in conjunction withjoerg1995-05-015-1/+278
| | | | | | | the so-called "System V IPC". Submitted by: jbeukema@HK.Super.Net (John Beukema) Obtained from: Th. Lockert <tholo@sigmasoft.com>, via NetBSD
* Stick a more BSD-like Makefile here so that I can link to the library.jkh1995-05-011-14/+15
|
* start CHS is 0xff,0xff,0xff if past 1024.phk1995-05-013-19/+68
| | | | | | end CHS is 1023,bios_hd,bios_sect if past 1024. This way we can find bios the geometry again. Added a primitive "scan" to tst01.
* Use the DIOCSYNCSLICE ioctl now. (use only with kernel from this morning).phk1995-04-304-43/+45
| | | | | Get the CHS's right. Get the disklabels (more) right.
* get bootblocks right.phk1995-04-305-52/+133
| | | | | | | Add mbr and bteasy17 to tst01 read partitions from kernel instead of disk. Still problems with writing labels, discussing with Bruce. Extended slices doesn't get written yet.
* Use 0xff for CHS when past 1024 cyls.phk1995-04-302-28/+47
| | | | Fix (hopefully) a bug Gary found.
* Make the default case less scary :-)phk1995-04-301-0/+2
|
* Now we do writes too.phk1995-04-309-53/+360
|
* Small fix for the following problems:wpaul1995-04-291-2/+10
| | | | | | | | | | | | | - If you take the wheel entry out of /etc/group and turn on NIS, the '+:*::' line is incorrectly flagged as the entry for wheel (the empty gid section is translated to 0), hence getgrgid() returns '+' as the name of the group instead of 'wheel.' - Using just '+:' as the 'turn on NIS' switch in /etc/group makes getgrgid() dump core because of a null pointer dereference. (Last time I was in here, I foolishly assumed that fixing the core dump problems with getgrnam() and getgrent() would fix getgrgid() too. Silly me.)
* Names are assigned when chunks are created.phk1995-04-297-10/+238
| | | | Rules for only one fat & one extended in MBR.
* Even More stuff. Disk_Names() is here amongst other things.phk1995-04-293-32/+212
|
* Next Iteration, getting better.phk1995-04-297-46/+181
| | | | | | | | Made an All_FreeBSD() function. Added a cmd-line interface (lowest rank) to the tst01 program. The tst01 program is harmless (worst it can do is coredump), but it is instructive to run, you can see what the slice-code things of your disk...
* Sanitize and explain a little bit... Implement the first rules...phk1995-04-298-73/+198
|
* This is a revision 0.00 of the backend stuff for the fdisk/disklabel stuffphk1995-04-289-0/+837
| | | | | in the new sysinstall. If you want to give a helping hand, then send email to phk@FreeBSD.ORG. DO NOT COMMIT TO THIS DIRECTORY!
* Fix a few problems with the debugging output. Add a new "visit" function.dufault1995-04-282-3/+12
|
* No sense in copying the hex[] array in each call to MDXEnd(), it's awollman1995-04-271-2/+2
| | | | constant. (There probably ought to be a single libc version of it.)
* ypbind.c: Major overhaul.wpaul1995-04-261-55/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Moved to a more client-driven model. We aggressively attempt to keep the default domain bound (as before) but we give up on non-default domains if we lose contact with a server and fail to get a response after one round of broadcasting. This helps drastically reduce the amount of network bandwitdh that ypbind consumes: if a client references the secondary domain at some later point, this will prod ypbind into establishing a new binding anyway, so continuously broadcasting without need is pointless. Note that we still actively seek out a binding for our default domain even if no client program has queried us yet. I'm not exactly sure if this matches SunOS's behavior or not, but I decided to do it this way since we can get into all sorts of trouble if our default domain comes unbound. Even so, we're still much quieter than we used to be. - Removed a bunch of no-longer pertinent comments and a couple of chunks of #ifdef 0'ed code that no longer fit in to the new layout. - Theo deRaadt must have become frustrated with the callback mechanism in clnt_broadcast(), because he shamelessly stole the clnt_broadcast() code right out of the RPC library and hacked it up to suit his needs. (Comments and all! :) I can understand why: clnt_broadcast() blocks while awaiting replies. Changing this behavior requires surgery. However, you can work around this: fork the broadcast into a child process and relay the results back to the parent via a pipe. (Careful obervation has shown that the SunOS ypbind forks children for broadcasting too, though I can only guess what sort of interprocess communication it uses. pipe() seems to do the job well enough.) This may seem like the long way around, but it's not really that hard to implement, and I'd prefer to use documented RPC library functions wherever possible. We're careful to limit the number of simultaneous broadcasters to avoid swamping the system (the current limit is 5). Each clnt_broadcast() call only sends out a small number of packets at increasing intervals. We're also careful not to spawn more than one bradcaster for a given domain. - Used clntudp_bufcreate() and clnt_call() to implement a ping() function for directly querying a particular server so that we can check if it's still alive. This lets me completely remove the old bradcasting code and use actual RPC library calls instead, at the cost of more than a few handfulls of torn-out hair. (Make no mistake folks: I *HATE* RPC.) Currently, the ping interval is one minute. - Fixed another potential 'nfds too big for select()' bug: use _rpc_dtablesize() instead of getdtablesize(). - Quieted gcc -Wall a bit. - Probably a bunch of other stuff that I've forgotten. ypbind.8: - Updated man page to reflect modifications. ypwhich.c: - Small mind-o fix from last time: decode error results from ypbind correctly (*groan*) yplib.c: - same as above - Change behavior of _yp_dobind() a little: if we get back a 'Domain not bound' error for a given domain, retry a few times before giving up and passing the error back to the caller. We have to sleep for a few seconds between tries since the 'Domain not bound' error comes back immediately (by repeatedly looping, we end up pounding on ypbind). We retry at most 20 times at 5 second intervals. This gives us a full minute to get a response. This seems to deviate a bit from SunOS behavior -- it appears to wait forever -- but I don't like the idea of perpetually hanging inside a library call. Note that this should fix the problems some people have with bindings not being established fast enough at boot time; sometimes amd is started in /etc/rc after ypbind has run but before it gets a binding set up. The automounter gets annoyed at this and tends to exit. By pausing ther YP calls until a binding is ready, we avoid this situation. - Another _yp_dobind() change: if we determine that our binding files are unlocked or nonexistent, jump directly to code that pokes ypbind into restablishing the binding. Again, if it fails, we'll time out eventually and return.
* Fix a number of additional warnings.jkh1995-04-262-13/+2
|
* Move <varargs.h> out of FtpLibrary.h and into the .c files that actuallyjkh1995-04-263-1/+2
| | | | need them. Fix a number of additional warnings.
* Add libftp to list of targets.jkh1995-04-251-1/+1
|
* Now check all the warning purges and general clean-up in on the secondjkh1995-04-2519-38/+66
| | | | pass.
* This commit was generated by cvs2svn to compensate for changes in r8064,jkh1995-04-2547-0/+8593
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * A programmatic interface to ftp. I need this for several otherjkh1995-04-2547-0/+8593
| | | | | | | | | components of the system. The license is poorly worded, though I have an (email only) release from the author for unlimited FreeBSD use. I will try to get something more concrete, though the author's remote location makes this difficult. Submitted by: Oleg Orel <orel@oea.ihep.su>
* Remove setre*id*.bde1995-04-251-2/+2
|
* Add setreuid/setregid to MAN sectionache1995-04-231-1/+2
|
* Add setreuid/setregidache1995-04-231-1/+2
|
* Fix history infoache1995-04-232-8/+4
|
* in _freecaches(): strdup() allocates us memory -- remember to free it.wpaul1995-04-221-10/+18
|
* small NIS binding fixes:wpaul1995-04-211-1/+26
| | | | | | | | | | | | | | | ypbind.c: if a client program asks ypbind for the name of the server for a particular domain, and there isn't a binding for that domain available yet, ypbind needs to supply a status value along with its failure message. Set yprespbody.ypbind_error before returning from a ypbindproc_domain request. yplib.c: properly handle the error status messages ypbind now has the ability to send us. Add a ypbinderr_string() function to decode the error values. ypwhich.c: handle ypbind errors correctly: yperr_string() can't handle ypbind_status messages -- use ypbinderr_string instead.
* Fix bugs in opendir():bde1995-04-211-9/+23
| | | | | | | - it succeeded on non-directories (see POSIX 5.1.2.4). - it hung on (non-open) named pipes. - it leaked memory if the second malloc() failed. - it didn't preserve errno across errors in close().
* Add a bit more docsache1995-04-205-2/+1626
|
* If locale not available, fallback to strcasecmp, not to strcmpache1995-04-161-2/+2
|
* Removed the y.tab.h file from the sources. It is automatically generatedats1995-04-151-0/+2
| | | | | | from yacc. Put the lex.c parser.c and y.tab.h into a CLEANFILES target in the makefile, they are all generated and need to be removed on a clean.
* Head off potential core dump in _havemaster() (we don't need to free anywpaul1995-04-151-4/+1
| | | | memory here: the underlying YP routines handle this one for us).
* Better conformance to SunOS behavior: if we can't match a user to onewpaul1995-04-141-2/+8
| | | | | | | | of the plus or minus lists at all, reject him. This lets you create a +@netgroup list of users that you want to admit and reject everybody else. If you end your +@netgroup list with the wildcard line (+:::::::::) then you'll have a +@netgroup list that remaps the specified people but leaves people not in any netgroup unaffected.
* Add err_set_file() and err_set_exit() functions to make it possible forwollman1995-04-132-18/+64
| | | | | programs which use err(3) to work nicely in a wider range of environments (e.g., dialog).
* Add an ethers(3) man page.wpaul1995-04-122-3/+190
|
* The implementation of rexec() missed the function ruserpass(), so thejoerg1995-04-112-3/+252
| | | | | | | | | | | | | | | link stage fell over for any program that attempted to use rexec(). Ruserpass() remains undocumented; i could not find any documentation for it on other systems. Also added a BUGS section to the man page, stating that this function constitutes a potential security hole (as well as the underlying "exec" service). Submitted by: rgrimes Originally submitted by: agc@uts.amdahl.com (Alistair G. Crooks) Obtained from: netbsd-bugs@NetBSD.ORG
* My libcompat cleanup.joerg1995-04-1014-4/+378
| | | | | | | | | | | | | | | o add missing man pages o make all man pages clearly refer to the libcompat thingie o add the information to the vtimes(3) and vlimit(3) man pages that nobody has reimplemented the functions by now o add the missing getpw.c o add code and man pages for cftime(3) and ascftime(3) -- i found them somewhere in old unfinished work
OpenPOWER on IntegriCloud