| 84721 packages online |
|
|
| dev/src/unixlib.lha | | | No screenshot available |
|
Introduction
------------
This library provides 80 odd functions which are useful for porting
Unix programs to the Amiga running AmigaDOS 2.04 or higher. It is thus
similar to Markus Wild's ixemul.library, but has more restricted aims:
a) It is written specifically for SAS C 5.10b.
b) It isn't a complete C library, it requires the SAS C library to function.
It adds some routines, and replaces others that were deficient, out of date,
or that didn't provide adequate functionality.
c) It isn't a complete Unix emulation library, it only contains those functions
that I needed while porting various utilities (mainly from GNU) to the Amiga.
d) It is a traditional C link library, not an Amiga library. This produces
bigger executables.
Considering the above points, you might ask why I wrote it ... There are several
good answers:
a) I started it before I was aware of ixemul.library.
b) ixemul.library didn't provide the features I needed for Emacs (support for
select).
c) It is easier for me to maintain when I find I need to support another Unix
feature (eg deleting open files).
Copying
-------
The library includes code that I have written, which I place in the public
domain.
This is found in all the files that don't have a Copyright notice.
It also includes code which is (inclusive of my modifications)
Copyright (c) 1982, 1986, 1991 The Regents of the University of California.
All rights reserved.
This code is freely redistributable (see the copyright notices in the source
and include files).
Finally it includes Doug Gwyn's public domain alloca implementation.
Installation & Use
------------------
To use this library, you must compile with the include directory in your include
search path, and link with the unix.lib library (which must be specified before
lc.lib). For example, if you extract this archive in a directory called src:,
you
could compile the following program:
echo.c:
#include <sys/unistd.h>
void main(int argc, char **argv)
{
int i;
for (i = 1; i < argc; i++)
{
if (i != 1) write(1, " ", 1);
write(1, argv[i], strlen(argv[i]));
}
write(1, "\n", 1);
}
with the command
lc -isrc:unix/include/ -L+src:unix/src/unix.lib echo.c
to produce a simple unix-like echo command.
You should define the following environment variables:
USER - A user name for the sole Amiga user (default "user").
USERNAME - The full name of the sole Amiga user (default $USER).
HOME - A "home" directory (default "s:") for programs that want one.
Configuration
files will probably end up here ...
SHELL - A program which behaves reasonably like a Unix shell (default "bin:sh").
You should copy the sh executable there if you don't have a Unix-like shell.
HOSTNAME - The name of your machine (default "amiga").
If you are going to be using pipes, you will require Matt Dillon's fifo.library
and fifo: device. This can be found on the Fish disks, with his UUCP
distribution
and on many FTP sites.
If you want to install the timezone information (see the discussion below on
Unix vs Amiga time), do the following:
a) change to the zoneinfo directory
b) compile the zic problem by running lmk.
c) change to the datfiles directory.
d) edit lmkfile and choose your timezone (you can look at the data files
to see the ones available). If you get this wrong, you can always change
it later with the zic program.
e) type 'lmk install'. This will compile the timezones, and setup the one
you chose as the default. The default can be changed with
zic -l <timezone name>
or by defining the environment variable TZ.
|
Contents of dev/src/unixlib.lhaPERMISSION UID GID PACKED SIZE RATIO METHOD CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ ----------
[unknown] 1823 3791 48.1% -lh5- fa3d Feb 14 12:44 unixlib.readme
[unknown] 305 641 47.6% -lh5- e98d Aug 8 1992 unixlib/include/amiga/ioctl.h
[unknown] 903 2036 44.4% -lh5- eaac Jul 5 1992 unixlib/include/errno.h
[unknown] 23 23 100.0% -lh0- 5c1b Jul 9 1992 unixlib/include/fcntl.h
[unknown] 179 296 60.5% -lh5- dcae Jul 8 1992 unixlib/include/grp.h
[unknown] 148 236 62.7% -lh5- eb8d Aug 16 1992 unixlib/include/internal/devices.h
[unknown] 362 1163 31.1% -lh5- 8c9e Aug 16 1992 unixlib/include/internal/files.h
[unknown] 179 402 44.5% -lh5- d7c0 Aug 16 1992 unixlib/include/internal/messages.h
[unknown] 214 478 44.8% -lh5- fe5f Jul 19 1992 unixlib/include/internal/timers.h
[unknown] 156 235 66.4% -lh5- 8ec8 Aug 16 1992 unixlib/include/internal/vars.h
[unknown] 151 292 51.7% -lh5- 313d Jul 8 1992 unixlib/include/pwd.h
[unknown] 1037 2236 46.4% -lh5- ca7e Jul 4 1992 unixlib/include/rcs/errno.h,v
[unknown] 494 989 49.9% -lh5- 7eb1 Jul 4 1992 unixlib/include/rcs/fcntl.h,v
[unknown] 146 188 77.7% -lh5- 6a43 Jul 4 1992 unixlib/include/rcs/grp.h,v
[unknown] 274 471 58.2% -lh5- b676 Jul 4 1992 unixlib/include/rcs/pwd.h,v
[unknown] 441 888 49.7% -lh5- 5028 Jul 4 1992 unixlib/include/rcs/signal.h,v
[unknown] 1120 2246 49.9% -lh5- 4d55 Aug 16 1992 unixlib/include/setjmp.h
[unknown] 862 1792 48.1% -lh5- e72d Aug 10 2008 unixlib/include/signal.h
[unknown] 101 128 78.9% -lh5- eaec Sep 22 1992 unixlib/include/stdio.h
[unknown] 101 129 78.3% -lh5- 8808 Sep 26 1992 unixlib/include/stdlib.h
[unknown] 20 20 100.0% -lh0- 36e8 Aug 1 1992 unixlib/include/strings.h
[unknown] 1442 3074 46.9% -lh5- f134 Jul 9 1992 unixlib/include/sys/cdefs.h
[unknown] 2872 6928 41.5% -lh5- 367c Aug 9 2008 unixlib/include/sys/fcntl.h
[unknown] 43 43 100.0% -lh0- cc3b Aug 13 1992 unixlib/include/sys/file.h
[unknown] 110 138 79.7% -lh5- 653f Jul 5 1992 unixlib/include/sys/filio.h
[unknown] 25 25 100.0% -lh0- 62e7 Jul 7 1992 unixlib/include/sys/ioctl.h
[unknown] 127 186 68.3% -lh5- 8b9d Aug 1 1992 unixlib/include/sys/param.h
[unknown] 194 283 68.6% -lh5- 6396 Jul 4 1992 unixlib/include/sys/rcs/file.h,v
[unknown] 203 283 71.7% -lh5- a6c5 Jul 4 1992 unixlib/include/sys/rcs/ioctl.h,v
[unknown] 183 283 64.7% -lh5- d5c2 Jul 4 1992 unixlib/include/sys/rcs/param.h,v
[unknown] 216 281 76.9% -lh5- e213 Jul 4 1992 unixlib/include/sys/rcs/socket.h,v
[unknown] 159 204 77.9% -lh5- 2113 Jul 4 1992 unixlib/include/sys/rcs/time.h,v
[unknown] 228 306 74.5% -lh5- 4a4e Jul 4 1992 unixlib/include/sys/rcs/vlimit.h,v
[unknown] 76 77 98.7% -lh5- 4a49 Jul 4 1992 unixlib/include/sys/socket.h
[unknown] 1976 4978 39.7% -lh5- 7ff4 Sep 22 1992 unixlib/include/sys/stat.h
[unknown] 200 386 51.8% -lh5- 789d Jul 9 1992 unixlib/include/sys/termios.h
[unknown] 1590 3443 46.2% -lh5- 1f98 Aug 17 1992 unixlib/include/sys/time.h
[unknown] 103 145 71.0% -lh5- ce48 Jul 8 1992 unixlib/include/sys/timeb.h
[unknown] 1586 3508 45.2% -lh5- 358d Aug 14 1992 unixlib/include/sys/types.h
[unknown] 1227 2589 47.4% -lh5- 7341 Aug 25 1992 unixlib/include/sys/unistd.h
[unknown] 70 70 100.0% -lh0- ea53 Jul 4 1992 unixlib/include/sys/vlimit.h
[unknown] 1666 3490 47.7% -lh5- e4b7 Aug 14 1992 unixlib/include/sys/wait.h
[unknown] 1460 3112 46.9% -lh5- 08c7 Aug 1 1992 unixlib/include/time.h
[unknown] 2258 5108 44.2% -lh5- dec3 Jul 31 1992 unixlib/include/tzfile.h
[unknown] 2305 6770 34.0% -lh5- fa7d Aug 1 1992 unixlib/include/unistd.h
[unknown] 71 91 78.0% -lh5- 4696 Jul 5 1992 unixlib/include/utime.h
[unknown] 940 2025 46.4% -lh5- 0262 Sep 22 1992 unixlib/intro.doc
[unknown] 530 1294 41.0% -lh5- 0d85 Feb 29 1996 unixlib/intro.doc.info
[unknown] 62 67 92.5% -lh5- 6840 Sep 28 1992 unixlib/mkmkf
[unknown] 563 1215 46.3% -lh5- 00be Sep 28 1992 unixlib/mkmkf.perl
[unknown] 112 148 75.7% -lh5- 318e Jul 19 1992 unixlib/src/abort.c
[unknown] 430 808 53.2% -lh5- dffc Aug 14 1992 unixlib/src/access.c
[unknown] 2244 5311 42.3% -lh5- bff4 Jul 19 1992 unixlib/src/alloca.c
[unknown] 303 617 49.1% -lh5- 2ad0 Aug 16 1992 unixlib/src/amiga.h
[unknown] 16572 37817 43.8% -lh5- 3704 Sep 28 1992 unixlib/src/amiga.sym
[unknown] 2369 6650 35.6% -lh5- 43cd Sep 2 1992 unixlib/src/amigados.c
[unknown] 158 247 64.0% -lh5- 624d Jul 19 1992 unixlib/src/amigados.h
[unknown] 482 1331 36.2% -lh5- 6dfa Aug 25 1992 unixlib/src/amigatime.c
[unknown] 104 136 76.5% -lh5- 55b7 Jul 19 1992 unixlib/src/bcmp.c
[unknown] 114 142 80.3% -lh5- 7790 Jul 19 1992 unixlib/src/bcopy.c
[unknown] 85 100 85.0% -lh5- 81ef Jul 19 1992 unixlib/src/bzero.c
[unknown] 721 1814 39.7% -lh5- 54ed Aug 14 1992 unixlib/src/child.asm
[unknown] 114 140 81.4% -lh5- a3a8 Jul 19 1992 unixlib/src/chmod.c
[unknown] 85 133 63.9% -lh5- 2f23 Jul 19 1992 unixlib/src/chown.c
[unknown] 180 272 66.2% -lh5- 1d93 Aug 14 1992 unixlib/src/close.c
[unknown] 129 165 78.2% -lh5- 3ca9 Jul 19 1992 unixlib/src/creat.c
[unknown] 10820 34599 31.3% -lh5- 51f9 Aug 24 1992 unixlib/src/ctime.c
[unknown] 354 754 46.9% -lh5- 0edf Jul 19 1992 unixlib/src/devices.c
[unknown] 1124 3525 31.9% -lh5- 2f31 Sep 28 1992 unixlib/src/dir.c
[unknown] 128 179 71.5% -lh5- 9984 Jul 19 1992 unixlib/src/dir_data.c
[unknown] 259 463 55.9% -lh5- d2c9 Jul 19 1992 unixlib/src/dir_data.h
[unknown] 548 1571 34.9% -lh5- 955c Jul 19 1992 unixlib/src/error.c
[unknown] 496 1149 43.2% -lh5- 43d6 Sep 21 1992 unixlib/src/error_msg.c
[unknown] 1612 4368 36.9% -lh5- 62ce Aug 17 1992 unixlib/src/exec.c
[unknown] 142 182 78.0% -lh5- 8fb0 Jul 19 1992 unixlib/src/fchmod.c
[unknown] 431 809 53.3% -lh5- 5160 Jul 19 1992 unixlib/src/fcntl.c
[unknown] 580 1269 45.7% -lh5- 5722 Aug 24 1992 unixlib/src/fibstat.c
[unknown] 490 1094 44.8% -lh5- 165e Jul 19 1992 unixlib/src/fifo.h
[unknown] 256 511 50.1% -lh5- de91 Aug 14 1992 unixlib/src/fifofd.c
[unknown] 280 503 55.7% -lh5- 7491 Aug 24 1992 unixlib/src/fifofd.h
[unknown] 126 289 43.6% -lh5- f3dc Jul 19 1992 unixlib/src/fifo_pragmas.h
[unknown] 715 1943 36.8% -lh5- fd5c Jul 19 1992 unixlib/src/files.c
[unknown] 548 1068 51.3% -lh5- 55a0 Aug 14 1992 unixlib/src/fstat.c
[unknown] 121 145 83.4% -lh5- 6ea9 Jul 19 1992 unixlib/src/ftruncate.c
[unknown] 324 615 52.7% -lh5- e187 Jul 19 1992 unixlib/src/getenv.c
[unknown] 116 156 74.4% -lh5- afec Aug 16 1992 unixlib/src/gethostname.c
[unknown] 91 118 77.1% -lh5- f6ee Aug 14 1992 unixlib/src/getpid.c
[unknown] 114 129 88.4% -lh5- a5cf Aug 15 1992 unixlib/src/getwd.c
[unknown] 76 103 73.8% -lh5- c68d Jul 19 1992 unixlib/src/gid.c
[unknown] 160 271 59.0% -lh5- c8fe Jul 19 1992 unixlib/src/grp.c
[unknown] 72 80 90.0% -lh5- d763 Aug 13 1992 unixlib/src/index.c
[unknown] 151 227 66.5% -lh5- 02b4 Jul 19 1992 unixlib/src/ioctl.c
[unknown] 134 172 77.9% -lh5- 02fe Jul 19 1992 unixlib/src/isatty.c
[unknown] 797 1776 44.9% -lh5- 5c59 Aug 14 1992 unixlib/src/kill.c
[unknown] 165 245 67.3% -lh5- 72b8 Jul 19 1992 unixlib/src/link.c
[unknown] 1163 3746 31.0% -lh5- 3aa4 Sep 28 1992 unixlib/src/lmkfile
[unknown] 268 566 47.3% -lh5- 9858 Aug 16 1992 unixlib/src/lmkfile.base
[unknown] 156 239 65.3% -lh5- b7e7 Jul 19 1992 unixlib/src/lseek.c
[unknown] 773 1963 39.4% -lh5- 757c Aug 17 1992 unixlib/src/message.c
[unknown] 275 426 64.6% -lh5- 5d25 Sep 26 1992 unixlib/src/mkdir.c
[unknown] 98 165 59.4% -lh5- 4aba Jul 19 1992 unixlib/src/mkfifo.c
[unknown] 261 465 56.1% -lh5- 927f Aug 15 1992 unixlib/src/mktemp.c
[unknown] 1237 2858 43.3% -lh5- 7579 Aug 29 1992 unixlib/src/open.c
[unknown] 294 541 54.3% -lh5- 1a03 Aug 15 1992 unixlib/src/perror.c
[unknown] 2612 8680 30.1% -lh5- b9c7 Aug 24 1992 unixlib/src/pipe.c
[unknown] 670 1403 47.8% -lh5- 31d1 Sep 26 1992 unixlib/src/processes.c
[unknown] 395 852 46.4% -lh5- ab7e Aug 14 1992 unixlib/src/processes.h
[unknown] 647 2061 31.4% -lh5- 225a Aug 8 1992 unixlib/src/protection.c
[unknown] 172 262 65.6% -lh5- bdca Aug 14 1992 unixlib/src/pseudo_c.c
[unknown] 171 311 55.0% -lh5- 349c Sep 20 1992 unixlib/src/pwd.c
[unknown] 201 302 66.6% -lh5- 7a65 Jul 19 1992 unixlib/src/read.c
[unknown] 241 449 53.7% -lh5- 0ff2 Jul 19 1992 unixlib/src/rename.c
[unknown] 73 82 89.0% -lh5- e65e Aug 13 1992 unixlib/src/rindex.c
[unknown] 324 584 55.5% -lh5- bf61 Aug 1 1992 unixlib/src/rmdir.c
[unknown] 24 24 100.0% -lh0- cd7b Sep 21 1992 unixlib/src/sascopts
[unknown] 634 1763 36.0% -lh5- a91f Jul 19 1992 unixlib/src/select.c
[unknown] 139 220 63.2% -lh5- 48b8 Aug 16 1992 unixlib/src/setjmp.c
[unknown] 370 899 41.2% -lh5- 849d Aug 15 1992 unixlib/src/siglist.c
[unknown] 162 269 60.2% -lh5- 8aba Jul 19 1992 unixlib/src/signal.c
[unknown] 1396 3877 36.0% -lh5- 3498 Aug 29 1992 unixlib/src/signals.c
[unknown] 257 466 55.2% -lh5- db23 Jul 19 1992 unixlib/src/signals.h
[unknown] 162 262 61.8% -lh5- 8c32 Aug 1 1992 unixlib/src/sigpause.c
[unknown] 199 331 60.1% -lh5- c606 Jul 19 1992 unixlib/src/sigsetmask.c
[unknown] 147 241 61.0% -lh5- fb2f Jul 19 1992 unixlib/src/sleep.c
[unknown] 250 427 58.5% -lh5- 1e55 Aug 15 1992 unixlib/src/sprintf.asm
[unknown] 760 1809 42.0% -lh5- 723e Aug 14 1992 unixlib/src/stat.c
[unknown] 2307 6862 33.6% -lh5- d674 Jul 31 1992 unixlib/src/strftime.c
[unknown] 126 202 62.4% -lh5- dacc Aug 25 1992 unixlib/src/time.c
[unknown] 728 2020 36.0% -lh5- 1fdc Aug 25 1992 unixlib/src/timeconvert.c
[unknown] 397 818 48.5% -lh5- a9b6 Aug 25 1992 unixlib/src/timeconvert.h
[unknown] 571 1575 36.3% -lh5- 548f Aug 17 1992 unixlib/src/timers.c
[unknown] 211 341 61.9% -lh5- 8f4c Jul 19 1992 unixlib/src/truncate.c
[unknown] 77 103 74.8% -lh5- cdf2 Jul 19 1992 unixlib/src/uid.c
[unknown] 54 54 100.0% -lh0- b556 Jul 19 1992 unixlib/src/umask.c
[unknown] 24894 48204 51.6% -lh5- cb25 Sep 28 1992 unixlib/src/unix.lib
[unknown] 377 730 51.6% -lh5- fae7 Aug 8 1992 unixlib/src/unlink.c
[unknown] 209 379 55.1% -lh5- 9b0b Aug 24 1992 unixlib/src/utime.c
[unknown] 499 1128 44.2% -lh5- 0c8a Aug 15 1992 unixlib/src/wait4.c
[unknown] 247 401 61.6% -lh5- 3e83 Aug 29 1992 unixlib/src/write.c
[unknown] 567 1409 40.2% -lh5- ed92 Aug 1 1992 unixlib/src/zoneinfo/datfiles/africa
[unknown] 89 90 98.9% -lh5- e8eb Jul 30 1992 unixlib/src/zoneinfo/datfiles/antarctica
[unknown] 2789 9163 30.4% -lh5- e321 Aug 1 1992 unixlib/src/zoneinfo/datfiles/asia
[unknown] 1875 4375 42.9% -lh5- 8360 Aug 1 1992 unixlib/src/zoneinfo/datfiles/australasia
[unknown] 492 1282 38.4% -lh5- 6a79 Aug 1 1992 unixlib/src/zoneinfo/datfiles/etcetera
[unknown] 3443 8251 41.7% -lh5- 7f43 Aug 1 1992 unixlib/src/zoneinfo/datfiles/europe
[unknown] 227 311 73.0% -lh5- b819 Aug 1 1992 unixlib/src/zoneinfo/datfiles/factory
[unknown] 299 832 35.9% -lh5- 200c Aug 1 1992 unixlib/src/zoneinfo/datfiles/leapseconds
[unknown] 791 2023 39.1% -lh5- b3c0 Sep 21 1992 unixlib/src/zoneinfo/datfiles/lmkfile
[unknown] 4290 12414 34.6% -lh5- 6d16 Aug 1 1992 unixlib/src/zoneinfo/datfiles/northamerica
[unknown] 566 990 57.2% -lh5- d0b6 Aug 1 1992 unixlib/src/zoneinfo/datfiles/pacificnew
[unknown] 3068 19159 16.0% -lh5- 9db9 Aug 1 1992 unixlib/src/zoneinfo/datfiles/solar87
[unknown] 3006 19177 15.7% -lh5- 3363 Aug 1 1992 unixlib/src/zoneinfo/datfiles/solar88
[unknown] 3205 19453 16.5% -lh5- 63fd Aug 1 1992 unixlib/src/zoneinfo/datfiles/solar89
[unknown] 1418 4094 34.6% -lh5- 49f8 Aug 1 1992 unixlib/src/zoneinfo/datfiles/southamerica
[unknown] 620 1390 44.6% -lh5- 5b4b Aug 1 1992 unixlib/src/zoneinfo/datfiles/systemv
[unknown] 1515 5895 25.7% -lh5- de21 Aug 1 1992 unixlib/src/zoneinfo/datfiles/usno1988
[unknown] 4765 21163 22.5% -lh5- 58d4 Aug 1 1992 unixlib/src/zoneinfo/datfiles/usno1989
[unknown] 6285 18974 33.1% -lh5- 2238 Aug 1 1992 unixlib/src/zoneinfo/getopt.c
[unknown] 1636 3957 41.3% -lh5- 4b16 Jun 23 1992 unixlib/src/zoneinfo/getopt.h
[unknown] 1639 3898 42.0% -lh5- 4733 Aug 1 1992 unixlib/src/zoneinfo/ialloc.c
[unknown] 198 325 60.9% -lh5- 04dc Sep 21 1992 unixlib/src/zoneinfo/lmkfile
[unknown] 24 24 100.0% -lh0- cd7b Sep 21 1992 unixlib/src/zoneinfo/sascopts
[unknown] 4195 10594 39.6% -lh5- b0cf Aug 1 1992 unixlib/src/zoneinfo/zic.8
[unknown] 13387 43765 30.6% -lh5- 3347 Aug 1 1992 unixlib/src/zoneinfo/zic.c
[unknown] 185 338 54.7% -lh5- 4774 Jul 19 1992 unixlib/src/_exit.c
[unknown] 3789 11632 32.6% -lh5- b7b5 Sep 21 1992 unixlib/src/_main.c
[unknown] 246 486 50.6% -lh5- b840 Aug 15 1992 unixlib/src/_setjmp.asm
[unknown] 5469 12820 42.7% -lh5- eaab Sep 29 1992 unixlib/unix.doc
[unknown] 532 1294 41.1% -lh5- f7a3 Feb 29 1996 unixlib/unix.doc.info
---------- ----------- ------- ------- ------ ---------- ------------ ----------
Total 169 files 192794 522164 36.9% Feb 14 08:56
|
|
|
|
Page generated in 0.02 seconds |
Aminet © 1992-2024 Urban
Müller and
the Aminet team.
Aminet contact address: <aminetaminet net> |