summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Add efi to the list of types for which we need to return tha name.marcel2002-11-101-1/+4
| | | | | Also, return chunk type efi in case we find an EFI partition in the GPT. We used to return FAT due to a lack of EFI type.
* Add an efi chunk type. We need to be able to create an EFI partitionmarcel2002-11-101-0/+1
| | | | | on ia64, because that's where we need to put the loader and the kernel.
* General cleanup:marcel2002-11-101-96/+68
| | | | | | | | | | | | | | | | | | | | | | | o Remove all code guarded by !defined(__ia64__). This file is specifically written for ia64, o Handle the case when read_block() or write_block() fails. We don't want sysinstall(8) to signal a thumbs-up on error, o Set the starting (cyl,hd,sect) triple to 0xFFFFFF when either bios_hd or bios_sect is zero or the LBA us not representable with the triple. In that case automaticly initialize the ending triple with 0xFFFFFF as well, o Reindent Write_Int32() as it was different than the rest of the file, o Remove some unused variables that appeared to be used but were effectively useless. o Plug a memory leak: The second timne we read the MBR, we write out a modified block, but didn't free the memory after writing. o Replace d1->sector_size with 512 when we read/write the MBR. We ignore the sector size in cases we shouldn't but adhered to it in cases it would be wrong if the sector_size wasn't 512. This file should eventually be rewritten to write out a GPT. For now, a MBR will do...
* Add cross references to mbrtowc(3) and wcrtomb(3).tjr2002-11-101-1/+3
|
* Don't check whether the first byte of the buffer is a null byte whentjr2002-11-101-7/+1
| | | | the buffer has zero length (n == 0).
* Restore Peter's version of static __sF. There's too much pain for itimp2002-11-101-1/+4
| | | | | | | | | | | | to be static for 5.0. I may remove this for 5.1 or 5.2. No more binaries or libarires will be generated with __sF starting as of yesterday. Originally the plan had been to eliminate this for 5.0, but we didn't get the __std{in,out,err}p changes merged into -stable until yesterday (rather than in September 2001 like it should have been). Given that didn't happen on time, we can't do the other part of the scheme now. # Please do not change this without talking to me first.
* Describe the `n' and `ps' arguments to mbrlen().tjr2002-11-091-2/+17
|
* Typo: pointer to -> pointed totjr2002-11-091-1/+1
|
* Use wide character ctype functions directly instead of relying ontjr2002-11-091-2/+2
| | | | 4.4BSD extensions to the single-byte ctype functions.
* Add a missing return statement for the pwcs == NULL case (XSI extension).tjr2002-11-091-0/+1
|
* Fix two typos.fenner2002-11-081-2/+2
|
* - Recognize FAT partition on MBR and PC98 disks.nyan2002-11-081-20/+47
| | | | - Fix to convert to the name of partition.
* Update acl.3 to xref getfacl(1) and setfacl(1), the recommended tools forrwatson2002-11-081-6/+10
| | | | | | | manipulating file ACLs. Update the status of the implementation a bit, update the copyright, etc. Obtained from: TrustedBSD Project
* MFi386: revision 1.4.nyan2002-11-081-1/+0
|
* Don't set a variable to a bogus value right before setting it to thejhb2002-11-082-2/+0
| | | | correct value in the next statement.
* Don't set a value to a variable that we don't use.jhb2002-11-081-1/+0
|
* - Merge Write_FreeBSD() into Write_Disk().jhb2002-11-081-40/+32
| | | | - Miscellaneous cleanups.
* License and blurb update authorized by Network Associates.rwatson2002-11-072-14/+8
|
* Fixed pc98 support.nyan2002-11-072-6/+5
| | | | (merged i386 changes from chunk.c 1.41 and disk.c 1.100)
* Get this closer to working. The Write_Disk() function's for loop neededjhb2002-11-071-20/+13
| | | | | | | to use the same start condition as the i386 version. However, since Alpha's only have one fake "slice" from sysinstall's perspective we don't need to use a loop, but can just write out the BSD label in the first fake "slice".
* o Make the COMPATIBILITY section a bit less redundant.chris2002-11-061-1/+1
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Labs
* o Update man page to reflect the new prototypes for mac_{to,from}_text.chris2002-11-061-43/+15
| | | | | | | o Remove a (currently) no-longer-pertinent entry from errors. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Labs
* Hook up the userland wrapper for __mac_execve().rwatson2002-11-062-0/+43
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Wrap function prototype declarations in __BEGIN_DECLS to do the right thingjmallett2002-11-051-0/+2
| | | | | | with them in non-C cases. Requested by: Patrick Hartling <patrick@137.org>
* License update authorized by NAI: remove clause 3.rwatson2002-11-051-7/+4
|
* Fix bogus return values from libc_r's write() routine in situations wherearchie2002-11-051-6/+21
| | | | | | | a partial-write is followed by an error. PR: 43335 MFC after: 1 week
* Clarify language relating to ACLs, Capabtilities, and MAC, since therwatson2002-11-041-28/+36
| | | | | implementation status of these services has changed substantially since this man page was last updated.
* Update license, historical information.rwatson2002-11-041-7/+8
|
* Point out that the MAC Framework is considered experimental.rwatson2002-11-041-0/+9
|
* After waiting for help with the markup, I finally decided to just patchnsayer2002-11-041-3/+3
| | | | | | | | | the page myself. The new language is more accurate than what was there before, but the most accurate way of describing the funcionality eludes me. PR: kern/33904 MFC after: 1 month
* Add descriptions for some _PC_* variables from <sys/unistd.h> thattjr2002-11-041-1/+40
| | | | were missing.
* Backout "compatibility hack" for __sF.alfred2002-11-042-9/+1
| | | | Requested by: Steve Kargl <sgk@troutmask.apl.washington.edu> (submitter)
* Remove unused MBR gunk leftover from i386.jhb2002-11-031-11/+1
|
* Fix to compile for pc98.nyan2002-11-031-0/+8
|
* Initialize d->bios_cyl. We know the media size in sectors, the numbermarcel2002-11-031-4/+10
| | | | | | | of heads end the number of sectors per track. If there's an obvious insanity (heads and sectors are both zero or the media size is not an integral multiple of heads times sector) we set the number of cylinders to zero.
* Provide a hook to make __sF visible outside of libc for commercial appsalfred2002-11-022-1/+9
| | | | | | if WANT_COMPAT4_STDIO is defined when compiling libc. Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu>
* Add support for GPT:marcel2002-11-021-5/+45
| | | | | | | | | | 1. When the parition type is not an integer, try to parse the type as an UUID. If that succeeds, map the UUID to chunk_e. 2. For GPT partitions, pass the type constructed in point 1 above to Add_Chunk. While here, fix the MBREXT case by only checking if the first 3 characters are MBR. This avoids duplication.
* Add support for ia64. This is almost identical to i386, except thatmarcel2002-11-021-0/+20
| | | | | with GPT chunks of type "part" do not necessarily live under chunks of type "freebsd". We don't necessarily have a disklabel.
* Don't claim all MBR's have subtype 165 on i386.phk2002-11-022-3/+2
| | | | Spotted by: Frode Nordahl <frode@nordahl.net>
* Track the number of non-data chararacters stored in socket buffers so thatkbyanc2002-11-011-1/+1
| | | | | | | | | | | the data value returned by kevent()'s EVFILT_READ filter on non-TCP sockets accurately reflects the amount of data that can be read from the sockets by applications. PR: 30634 Reviewed by: -net, -arch Sponsored by: NTT Multimedia Communications Labs MFC after: 2 weeks
* Fill in partition 2 with with "whole disk" parameters.phk2002-11-011-0/+8
|
* * Add stubs for pthread_cond_broadcast.dfr2002-11-013-28/+246
| | | | | | | | | | * Fix typos in rwlock stubs. * Add pthread_XXX counterparts to the _pthread_XXX stubs which libraries like libX11 can use to ensure thread-safety without requiring the use of a thread library. Submitted by: Terry Lambert (pthread_cond_broadcast) Reviewed by: deischen
* No need to include floatio.h here: vfscanf() no longer uses anythingtjr2002-11-012-2/+0
| | | | it defines.
* Re-apply the previously backed-out commit that fixes the problem wherearchie2002-10-316-7/+10
| | | | | | | | HUGE_VAL is not properly aligned on some architectures. The previous fix now works because the two versions of 'math.h' (include/math.h and lib/msun/src/math.h) have since been merged into one. PR: bin/43544
* Use the strong symbol'd version of pthread_mutex_init so we don'tdeischen2002-10-311-2/+2
| | | | | | | accidentally call a stub or application provided version of the same routine. Submitted by: dfr
* Style(9) improvements.phk2002-10-311-6/+6
|
* Set the sector size for the disk.phk2002-10-311-0/+2
|
* Restore to pc98 support.nyan2002-10-313-50/+108
|
* Use ${MACHINE} variable instead of using '.if .endif' each machines.nyan2002-10-311-18/+1
|
* Add '#include <err.h>' for warn().nyan2002-10-311-0/+1
|
OpenPOWER on IntegriCloud