aboutsummaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Remove debugging printfs.Poul-Henning Kamp2002-11-111-7/+0
| | | | Notes: svn path=/head/; revision=106761
* ia64 ABI breaker:Marcel Moolenaar2002-11-113-38/+6
| | | | | | | | | | | | | | | | Don't force 16-byte alignment at run-time. Do it at compile-time. This saves us the pointer fiddling by the setjmp functions and reduces complexity. While here, increase the jmp_buf by 16 bytes to an even 512 bytes. Coincidentally, due to the way alignment was handled prior to this change, the jmp_buf has not changed in size, but only in how the space is used. Prior to this change the 16 bytes were reserved for enforcing alignment; now they are reserved by us for future extensions. Therefore, this ABI breaker is relatively save: the failure is always an alignment trap. Notes: svn path=/head/; revision=106755
* MBR slices are named the same on ia64 as they are on i386.Marcel Moolenaar2002-11-111-4/+4
| | | | Notes: svn path=/head/; revision=106752
* Given that we have 3 places to document UUID related information,Marcel Moolenaar2002-11-111-9/+69
| | | | | | | | | | | | | | | | | | namely uuidgen(1), uuidgen(2) and uuid(3), the following division has been choosen: uuidgen(1) A description of the command line utility, and other user oriented UUID information. uuidgen(2) A mostly technical description of UUIDs. uuid(3) A description of the functions and other programmer oriented UUID information. According to the division: add more technical contents. Contributed by: Hiten Pandya <hiten@uk.FreeBSD.org> Edited and enhanced: marcel Notes: svn path=/head/; revision=106748
* Write the boot block to the first 16 sectors of all partitions, instead ofJake Burkholder2002-11-101-12/+13
| | | | | | | | | | | | | always to the first 16 sectors of the disk. The firmware reads the boot code from a partition, defaulting to 'a' if none is specified, which only corresponds to the first 16 sectors of the disk if 'a' is first. Solaris often makes the swap partition first, instead of the root partition, and users expect to be able to do the same with freebsd as well. This also allows one to temporarily boot from another partition if the boot block on the root partition gets scrambled somehow. Notes: svn path=/head/; revision=106745
* Add efi to the list of types for which we need to return tha name.Marcel Moolenaar2002-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. Notes: svn path=/head/; revision=106743
* Add an efi chunk type. We need to be able to create an EFI partitionMarcel Moolenaar2002-11-101-0/+1
| | | | | | | | on ia64, because that's where we need to put the loader and the kernel. Notes: svn path=/head/; revision=106742
* General cleanup:Marcel Moolenaar2002-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... Notes: svn path=/head/; revision=106741
* Add cross references to mbrtowc(3) and wcrtomb(3).Tim J. Robbins2002-11-101-1/+3
| | | | Notes: svn path=/head/; revision=106728
* Don't check whether the first byte of the buffer is a null byte whenTim J. Robbins2002-11-101-7/+1
| | | | | | | the buffer has zero length (n == 0). Notes: svn path=/head/; revision=106725
* Restore Peter's version of static __sF. There's too much pain for itWarner Losh2002-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. Notes: svn path=/head/; revision=106721
* Describe the `n' and `ps' arguments to mbrlen().Tim J. Robbins2002-11-091-2/+17
| | | | Notes: svn path=/head/; revision=106694
* Typo: pointer to -> pointed toTim J. Robbins2002-11-091-1/+1
| | | | Notes: svn path=/head/; revision=106693
* Use wide character ctype functions directly instead of relying onTim J. Robbins2002-11-091-2/+2
| | | | | | | 4.4BSD extensions to the single-byte ctype functions. Notes: svn path=/head/; revision=106687
* Add a missing return statement for the pwcs == NULL case (XSI extension).Tim J. Robbins2002-11-091-0/+1
| | | | Notes: svn path=/head/; revision=106685
* Fix two typos.Bill Fenner2002-11-081-2/+2
| | | | Notes: svn path=/head/; revision=106656
* - Recognize FAT partition on MBR and PC98 disks.Yoshihiro Takahashi2002-11-081-20/+47
| | | | | | | - Fix to convert to the name of partition. Notes: svn path=/head/; revision=106633
* Update acl.3 to xref getfacl(1) and setfacl(1), the recommended tools forRobert Watson2002-11-081-6/+10
| | | | | | | | | | manipulating file ACLs. Update the status of the implementation a bit, update the copyright, etc. Obtained from: TrustedBSD Project Notes: svn path=/head/; revision=106629
* MFi386: revision 1.4.Yoshihiro Takahashi2002-11-081-1/+0
| | | | Notes: svn path=/head/; revision=106623
* Don't set a variable to a bogus value right before setting it to theJohn Baldwin2002-11-082-2/+0
| | | | | | | correct value in the next statement. Notes: svn path=/head/; revision=106622
* Don't set a value to a variable that we don't use.John Baldwin2002-11-081-1/+0
| | | | Notes: svn path=/head/; revision=106621
* - Merge Write_FreeBSD() into Write_Disk().John Baldwin2002-11-081-40/+32
| | | | | | | - Miscellaneous cleanups. Notes: svn path=/head/; revision=106619
* License and blurb update authorized by Network Associates.Robert Watson2002-11-072-14/+8
| | | | Notes: svn path=/head/; revision=106573
* Fixed pc98 support.Yoshihiro Takahashi2002-11-072-6/+5
| | | | | | | (merged i386 changes from chunk.c 1.41 and disk.c 1.100) Notes: svn path=/head/; revision=106549
* Get this closer to working. The Write_Disk() function's for loop neededJohn Baldwin2002-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". Notes: svn path=/head/; revision=106548
* o Make the COMPATIBILITY section a bit less redundant.Chris Costello2002-11-061-1/+1
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Labs Notes: svn path=/head/; revision=106510
* o Update man page to reflect the new prototypes for mac_{to,from}_text.Chris Costello2002-11-061-43/+15
| | | | | | | | | | o Remove a (currently) no-longer-pertinent entry from errors. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Labs Notes: svn path=/head/; revision=106509
* Hook up the userland wrapper for __mac_execve().Robert Watson2002-11-062-0/+43
| | | | | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories Notes: svn path=/head/; revision=106482
* Wrap function prototype declarations in __BEGIN_DECLS to do the right thingJuli Mallett2002-11-051-0/+2
| | | | | | | | | with them in non-C cases. Requested by: Patrick Hartling <patrick@137.org> Notes: svn path=/head/; revision=106452
* License update authorized by NAI: remove clause 3.Robert Watson2002-11-051-7/+4
| | | | Notes: svn path=/head/; revision=106436
* Fix bogus return values from libc_r's write() routine in situations whereArchie Cobbs2002-11-051-6/+21
| | | | | | | | | | a partial-write is followed by an error. PR: 43335 MFC after: 1 week Notes: svn path=/head/; revision=106434
* Clarify language relating to ACLs, Capabtilities, and MAC, since theRobert Watson2002-11-041-28/+36
| | | | | | | | implementation status of these services has changed substantially since this man page was last updated. Notes: svn path=/head/; revision=106432
* Update license, historical information.Robert Watson2002-11-041-7/+8
| | | | Notes: svn path=/head/; revision=106430
* Point out that the MAC Framework is considered experimental.Robert Watson2002-11-041-0/+9
| | | | Notes: svn path=/head/; revision=106429
* After waiting for help with the markup, I finally decided to just patchNick Sayer2002-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 Notes: svn path=/head/; revision=106423
* Add descriptions for some _PC_* variables from <sys/unistd.h> thatTim J. Robbins2002-11-041-1/+40
| | | | | | | were missing. Notes: svn path=/head/; revision=106401
* Backout "compatibility hack" for __sF.Alfred Perlstein2002-11-042-9/+1
| | | | | | | Requested by: Steve Kargl <sgk@troutmask.apl.washington.edu> (submitter) Notes: svn path=/head/; revision=106396
* Remove unused MBR gunk leftover from i386.John Baldwin2002-11-031-11/+1
| | | | Notes: svn path=/head/; revision=106384
* Fix to compile for pc98.Yoshihiro Takahashi2002-11-031-0/+8
| | | | Notes: svn path=/head/; revision=106373
* Initialize d->bios_cyl. We know the media size in sectors, the numberMarcel Moolenaar2002-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. Notes: svn path=/head/; revision=106368
* Provide a hook to make __sF visible outside of libc for commercial appsAlfred Perlstein2002-11-022-1/+9
| | | | | | | | | if WANT_COMPAT4_STDIO is defined when compiling libc. Submitted by: Steve Kargl <sgk@troutmask.apl.washington.edu> Notes: svn path=/head/; revision=106352
* Add support for GPT:Marcel Moolenaar2002-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. Notes: svn path=/head/; revision=106343
* Add support for ia64. This is almost identical to i386, except thatMarcel Moolenaar2002-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. Notes: svn path=/head/; revision=106342
* Don't claim all MBR's have subtype 165 on i386.Poul-Henning Kamp2002-11-022-3/+2
| | | | | | | Spotted by: Frode Nordahl <frode@nordahl.net> Notes: svn path=/head/; revision=106337
* Track the number of non-data chararacters stored in socket buffers so thatKelly Yancey2002-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 Notes: svn path=/head/; revision=106313
* Fill in partition 2 with with "whole disk" parameters.Poul-Henning Kamp2002-11-011-0/+8
| | | | Notes: svn path=/head/; revision=106303
* * Add stubs for pthread_cond_broadcast.Doug Rabson2002-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 Notes: svn path=/head/; revision=106288
* No need to include floatio.h here: vfscanf() no longer uses anythingTim J. Robbins2002-11-012-2/+0
| | | | | | | it defines. Notes: svn path=/head/; revision=106282
* Re-apply the previously backed-out commit that fixes the problem whereArchie Cobbs2002-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 Notes: svn path=/head/; revision=106268
* Use the strong symbol'd version of pthread_mutex_init so we don'tDaniel Eischen2002-10-311-2/+2
| | | | | | | | | | accidentally call a stub or application provided version of the same routine. Submitted by: dfr Notes: svn path=/head/; revision=106256