├── images ├── 72earth.png ├── Thumbs.db ├── 72smallapp.jpg └── 72gongzhonghao.png ├── linux-0.11 ├── linux.IAB ├── linux.IAD ├── linux.IMB ├── linux.IMD ├── linux.PO ├── linux.PR ├── linux.PRI ├── linux.PS ├── linux.WK3 ├── lib │ ├── errno.c │ ├── dup.c │ ├── setsid.c │ ├── close.c │ ├── write.c │ ├── execve.c │ ├── string.c │ ├── _exit.c │ ├── wait.c │ ├── open.c │ ├── ctype.c │ └── Makefile ├── fs │ ├── file_table.c │ ├── ioctl.c │ ├── stat.c │ ├── truncate.c │ ├── block_dev.c │ ├── fcntl.c │ ├── file_dev.c │ ├── char_dev.c │ └── pipe.c ├── linux.PFI ├── include │ ├── linux │ │ ├── mm.h │ │ ├── head.h │ │ ├── kernel.h │ │ ├── config.h │ │ ├── hdreg.h │ │ ├── tty.h │ │ ├── fdreg.h │ │ └── sys.h │ ├── sys │ │ ├── times.h │ │ ├── utsname.h │ │ ├── wait.h │ │ ├── types.h │ │ └── stat.h │ ├── utime.h │ ├── stddef.h │ ├── const.h │ ├── asm │ │ ├── memory.h │ │ ├── io.h │ │ ├── segment.h │ │ └── system.h │ ├── stdarg.h │ ├── time.h │ ├── ctype.h │ ├── errno.h │ ├── fcntl.h │ └── signal.h ├── kernel │ ├── panic.c │ ├── printk.c │ ├── math │ │ ├── Makefile │ │ └── math_emulate.c │ ├── chr_drv │ │ ├── serial.c │ │ └── Makefile │ ├── mktime.c │ └── blk_drv │ │ └── Makefile └── mm │ ├── page.s │ └── Makefile ├── msdos ├── v11object │ ├── ART.BAS │ ├── SYS.COM │ ├── BALL.BAS │ ├── BASIC.COM │ ├── COMM.BAS │ ├── COMP.COM │ ├── DEBUG.COM │ ├── EDLIN.COM │ ├── LINK.EXE │ ├── MODE.COM │ ├── MUSIC.BAS │ ├── SPACE.BAS │ ├── BASICA.COM │ ├── CALENDAR.BAS │ ├── CHKDSK.COM │ ├── CIRCLE.BAS │ ├── COLORBAR.BAS │ ├── COMMAND.COM │ ├── DISKCOMP.COM │ ├── DISKCOPY.COM │ ├── DONKEY.BAS │ ├── EXE2BIN.EXE │ ├── FORMAT.COM │ ├── MORTGAGE.BAS │ ├── PIECHART.BAS │ ├── SAMPLES.BAS │ └── SETCLOCK.COM ├── v20object │ ├── FC.EXE │ ├── SYS.COM │ ├── CREF.EXE │ ├── DEBUG.COM │ ├── EDLIN.COM │ ├── FIND.EXE │ ├── LINK.EXE │ ├── MASM.EXE │ ├── MORE.COM │ ├── MSDOS.SYS │ ├── PRINT.COM │ ├── SORT.EXE │ ├── CHKDSK.COM │ ├── COMMAND.COM │ ├── DISKCOPY.COM │ ├── EXE2BIN.EXE │ ├── FORMAT.OBJ │ ├── FORMES.OBJ │ ├── PROFIL.OBJ │ ├── PROHST.EXE │ ├── RECOVER.COM │ ├── SYSIMES.OBJ │ ├── SYSINIT.OBJ │ ├── DOSPATCH.TXT │ └── INCOMP.DOC ├── v20source │ ├── TDATA.ASM │ ├── WSBAUD.BAS │ ├── WSMSGS.OVR │ ├── WSOVLY1.OVR │ ├── COMLINK │ ├── DOSLINK │ ├── MSDOS.ASM │ ├── STDPROC.ASM │ ├── STDFCB.ASM │ ├── STDIO.ASM │ ├── STDBUF.ASM │ ├── STDCALL.ASM │ ├── STDCTRLC.ASM │ ├── IFEQU.ASM │ ├── MOREMES.ASM │ ├── DOSSEG.ASM │ ├── COMSW.ASM │ ├── SYSIMES.ASM │ ├── EXEMES.ASM │ ├── COMSEG.ASM │ ├── COMEQU.ASM │ ├── UINIT.ASM │ ├── SYSMES.ASM │ ├── DEBEQU.ASM │ ├── STDSW.ASM │ ├── FINDMES.ASM │ ├── PROHST.HLP │ ├── FCMES.ASM │ ├── DEVSYM.ASM │ ├── INCOMP.txt │ └── SORTMES.ASM └── v11source │ ├── Tim_Paterson_16Dec2013_email.txt │ └── STDDOS.ASM ├── photoshop v1.0.1 ├── Photoshop.r ├── ChangeHistory.txt ├── UInitFormats.p.inc ├── USeparation.p.inc ├── UAbout.a.inc ├── UTrap.p.inc ├── UPasteControls.p.inc ├── UPreferences.p.inc ├── ULine.p.inc ├── UTable.p.inc ├── UText.p.inc ├── UScreen.p.inc ├── UCoords.p.inc ├── UGIFFormat.a.inc ├── UScan.p.inc ├── ULine.a.inc ├── UInternal.p.inc ├── UIFFFormat.a.inc ├── MovableWDEF.make ├── PaletteWDEF.make ├── UPostScript.a.inc ├── UPrint.p.inc ├── UFilter.p.inc ├── UChannel.p.inc ├── UTIFFormat.a.inc ├── UTrap.a.inc ├── UResize.p.inc ├── UConvert.p.inc ├── UHistogram.p.inc ├── UTarga.a.inc ├── UPressure.p ├── UMagnification.p.inc ├── UAdjust.a.inc ├── UAbout.p.inc ├── UProgress.p ├── UGhost.p.inc ├── URotate.p.inc ├── URotate.a.inc ├── UCrop.p.inc ├── UAdjust.p.inc ├── UTransfer.p ├── ULZWCompress.p ├── UCalculate.p.inc ├── UPick.p.inc ├── UCalculate.a.inc ├── UScitexFormat.p ├── UMacPaint.p ├── UTarga.p ├── URawFormat.p ├── UGIFFormat.p ├── UFloat.p.inc ├── UFilters.p ├── UGhost.p ├── UAbout.a ├── UThunderScan.p ├── UResize.a.inc ├── UPICTResource.p ├── UDraw.p.inc ├── UPixelPaint.p ├── UAssembly.a.inc ├── UIFFFormat.p ├── UPixar.p ├── Huffman1.t ├── UFloat.a.inc ├── USelect.p.inc ├── UScreen.p ├── Huffman2.t ├── UPostScript.p ├── USelect.a.inc ├── UScreen.a.inc ├── UPICTFile.p ├── UConvert.a.inc ├── UGIFFormat.a └── UTIFFormat.p └── README.md /images/72earth.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/images/72earth.png -------------------------------------------------------------------------------- /images/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/images/Thumbs.db -------------------------------------------------------------------------------- /linux-0.11/linux.IAB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/linux-0.11/linux.IAB -------------------------------------------------------------------------------- /linux-0.11/linux.IAD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/linux-0.11/linux.IAD -------------------------------------------------------------------------------- /linux-0.11/linux.IMB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/linux-0.11/linux.IMB -------------------------------------------------------------------------------- /linux-0.11/linux.IMD: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/linux-0.11/linux.IMD -------------------------------------------------------------------------------- /linux-0.11/linux.PO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/linux-0.11/linux.PO -------------------------------------------------------------------------------- /linux-0.11/linux.PR: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/linux-0.11/linux.PR -------------------------------------------------------------------------------- /linux-0.11/linux.PRI: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/linux-0.11/linux.PRI -------------------------------------------------------------------------------- /linux-0.11/linux.PS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/linux-0.11/linux.PS -------------------------------------------------------------------------------- /linux-0.11/linux.WK3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/linux-0.11/linux.WK3 -------------------------------------------------------------------------------- /images/72smallapp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/images/72smallapp.jpg -------------------------------------------------------------------------------- /msdos/v11object/ART.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/ART.BAS -------------------------------------------------------------------------------- /msdos/v11object/SYS.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/SYS.COM -------------------------------------------------------------------------------- /msdos/v20object/FC.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/FC.EXE -------------------------------------------------------------------------------- /msdos/v20object/SYS.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/SYS.COM -------------------------------------------------------------------------------- /images/72gongzhonghao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/images/72gongzhonghao.png -------------------------------------------------------------------------------- /msdos/v11object/BALL.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/BALL.BAS -------------------------------------------------------------------------------- /msdos/v11object/BASIC.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/BASIC.COM -------------------------------------------------------------------------------- /msdos/v11object/COMM.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/COMM.BAS -------------------------------------------------------------------------------- /msdos/v11object/COMP.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/COMP.COM -------------------------------------------------------------------------------- /msdos/v11object/DEBUG.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/DEBUG.COM -------------------------------------------------------------------------------- /msdos/v11object/EDLIN.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/EDLIN.COM -------------------------------------------------------------------------------- /msdos/v11object/LINK.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/LINK.EXE -------------------------------------------------------------------------------- /msdos/v11object/MODE.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/MODE.COM -------------------------------------------------------------------------------- /msdos/v11object/MUSIC.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/MUSIC.BAS -------------------------------------------------------------------------------- /msdos/v11object/SPACE.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/SPACE.BAS -------------------------------------------------------------------------------- /msdos/v20object/CREF.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/CREF.EXE -------------------------------------------------------------------------------- /msdos/v20object/DEBUG.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/DEBUG.COM -------------------------------------------------------------------------------- /msdos/v20object/EDLIN.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/EDLIN.COM -------------------------------------------------------------------------------- /msdos/v20object/FIND.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/FIND.EXE -------------------------------------------------------------------------------- /msdos/v20object/LINK.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/LINK.EXE -------------------------------------------------------------------------------- /msdos/v20object/MASM.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/MASM.EXE -------------------------------------------------------------------------------- /msdos/v20object/MORE.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/MORE.COM -------------------------------------------------------------------------------- /msdos/v20object/MSDOS.SYS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/MSDOS.SYS -------------------------------------------------------------------------------- /msdos/v20object/PRINT.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/PRINT.COM -------------------------------------------------------------------------------- /msdos/v20object/SORT.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/SORT.EXE -------------------------------------------------------------------------------- /msdos/v20source/TDATA.ASM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20source/TDATA.ASM -------------------------------------------------------------------------------- /msdos/v11object/BASICA.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/BASICA.COM -------------------------------------------------------------------------------- /msdos/v11object/CALENDAR.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/CALENDAR.BAS -------------------------------------------------------------------------------- /msdos/v11object/CHKDSK.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/CHKDSK.COM -------------------------------------------------------------------------------- /msdos/v11object/CIRCLE.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/CIRCLE.BAS -------------------------------------------------------------------------------- /msdos/v11object/COLORBAR.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/COLORBAR.BAS -------------------------------------------------------------------------------- /msdos/v11object/COMMAND.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/COMMAND.COM -------------------------------------------------------------------------------- /msdos/v11object/DISKCOMP.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/DISKCOMP.COM -------------------------------------------------------------------------------- /msdos/v11object/DISKCOPY.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/DISKCOPY.COM -------------------------------------------------------------------------------- /msdos/v11object/DONKEY.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/DONKEY.BAS -------------------------------------------------------------------------------- /msdos/v11object/EXE2BIN.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/EXE2BIN.EXE -------------------------------------------------------------------------------- /msdos/v11object/FORMAT.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/FORMAT.COM -------------------------------------------------------------------------------- /msdos/v11object/MORTGAGE.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/MORTGAGE.BAS -------------------------------------------------------------------------------- /msdos/v11object/PIECHART.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/PIECHART.BAS -------------------------------------------------------------------------------- /msdos/v11object/SAMPLES.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/SAMPLES.BAS -------------------------------------------------------------------------------- /msdos/v11object/SETCLOCK.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11object/SETCLOCK.COM -------------------------------------------------------------------------------- /msdos/v20object/CHKDSK.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/CHKDSK.COM -------------------------------------------------------------------------------- /msdos/v20object/COMMAND.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/COMMAND.COM -------------------------------------------------------------------------------- /msdos/v20object/DISKCOPY.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/DISKCOPY.COM -------------------------------------------------------------------------------- /msdos/v20object/EXE2BIN.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/EXE2BIN.EXE -------------------------------------------------------------------------------- /msdos/v20object/FORMAT.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/FORMAT.OBJ -------------------------------------------------------------------------------- /msdos/v20object/FORMES.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/FORMES.OBJ -------------------------------------------------------------------------------- /msdos/v20object/PROFIL.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/PROFIL.OBJ -------------------------------------------------------------------------------- /msdos/v20object/PROHST.EXE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/PROHST.EXE -------------------------------------------------------------------------------- /msdos/v20object/RECOVER.COM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/RECOVER.COM -------------------------------------------------------------------------------- /msdos/v20object/SYSIMES.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/SYSIMES.OBJ -------------------------------------------------------------------------------- /msdos/v20object/SYSINIT.OBJ: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20object/SYSINIT.OBJ -------------------------------------------------------------------------------- /msdos/v20source/WSBAUD.BAS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20source/WSBAUD.BAS -------------------------------------------------------------------------------- /msdos/v20source/WSMSGS.OVR: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20source/WSMSGS.OVR -------------------------------------------------------------------------------- /msdos/v20source/WSOVLY1.OVR: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v20source/WSOVLY1.OVR -------------------------------------------------------------------------------- /photoshop v1.0.1/Photoshop.r: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/photoshop v1.0.1/Photoshop.r -------------------------------------------------------------------------------- /linux-0.11/lib/errno.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/lib/errno.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | int errno; 8 | -------------------------------------------------------------------------------- /photoshop v1.0.1/ChangeHistory.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/photoshop v1.0.1/ChangeHistory.txt -------------------------------------------------------------------------------- /msdos/v11source/Tim_Paterson_16Dec2013_email.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/fenwii/classic_source_code/HEAD/msdos/v11source/Tim_Paterson_16Dec2013_email.txt -------------------------------------------------------------------------------- /msdos/v20source/COMLINK: -------------------------------------------------------------------------------- 1 | command rucode rdata init uinit tcode tcode2 tcode3 + 2 | tcode4 tcode5 tucode copy copyproc cparse tdata tspc; 3 | -------------------------------------------------------------------------------- /msdos/v20source/DOSLINK: -------------------------------------------------------------------------------- 1 | msdos mscode dosmes misc getset dircall alloc dev dir + 2 | disk fat rom stdbuf stdcall stdctrlc stdfcb stdproc + 3 | stdio time xenix xenix2; 4 | 5 |  -------------------------------------------------------------------------------- /linux-0.11/fs/file_table.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/fs/file_table.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #include 8 | 9 | struct file file_table[NR_FILE]; 10 | -------------------------------------------------------------------------------- /linux-0.11/lib/dup.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/lib/dup.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #define __LIBRARY__ 8 | #include 9 | 10 | _syscall1(int,dup,int,fd) 11 | -------------------------------------------------------------------------------- /linux-0.11/lib/setsid.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/lib/setsid.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #define __LIBRARY__ 8 | #include 9 | 10 | _syscall0(pid_t,setsid) 11 | -------------------------------------------------------------------------------- /linux-0.11/lib/close.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/lib/close.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #define __LIBRARY__ 8 | #include 9 | 10 | _syscall1(int,close,int,fd) 11 | -------------------------------------------------------------------------------- /linux-0.11/lib/write.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/lib/write.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #define __LIBRARY__ 8 | #include 9 | 10 | _syscall3(int,write,int,fd,const char *,buf,off_t,count) 11 | -------------------------------------------------------------------------------- /linux-0.11/lib/execve.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/lib/execve.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #define __LIBRARY__ 8 | #include 9 | 10 | _syscall3(int,execve,const char *,file,char **,argv,char **,envp) 11 | -------------------------------------------------------------------------------- /linux-0.11/linux.PFI: -------------------------------------------------------------------------------- 1 | 6)*+,-.  /5! 2 | 0" # $1%2&' (34 -------------------------------------------------------------------------------- /msdos/v20source/MSDOS.ASM: -------------------------------------------------------------------------------- 1 | TITLE Standard MSDOS 2 | NAME MSDOS_2 3 | 4 | ; Number of disk I/O buffers 5 | 6 | INCLUDE STDSW.ASM 7 | INCLUDE MSHEAD.ASM 8 | INCLUDE MSDATA.ASM 9 | 10 | END 11 | 12 |  -------------------------------------------------------------------------------- /linux-0.11/lib/string.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/lib/string.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #ifndef __GNUC__ 8 | #error I want gcc! 9 | #endif 10 | 11 | #define extern 12 | #define inline 13 | #define __LIBRARY__ 14 | #include 15 | -------------------------------------------------------------------------------- /msdos/v20source/STDPROC.ASM: -------------------------------------------------------------------------------- 1 | ; 2 | ; Pseudo EXEC system call for MSDOS 3 | ; 4 | 5 | .xlist 6 | .xcref 7 | INCLUDE STDSW.ASM 8 | .cref 9 | .list 10 | 11 | TITLE STDPROC - process maintenance for MSDOS 12 | NAME STDPROC 13 | 14 | INCLUDE PROC.ASM 15 | 16 |  -------------------------------------------------------------------------------- /msdos/v20source/STDFCB.ASM: -------------------------------------------------------------------------------- 1 | ; 2 | ; Standard FCB calls for MSDOS (first 12 function calls) 3 | ; 4 | 5 | .xlist 6 | .xcref 7 | INCLUDE STDSW.ASM 8 | .cref 9 | .list 10 | 11 | TITLE STDFCB - FCB calls for MSDOS 12 | NAME STDFCB 13 | 14 | INCLUDE FCB.ASM 15 | 16 |  -------------------------------------------------------------------------------- /linux-0.11/lib/_exit.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/lib/_exit.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #define __LIBRARY__ 8 | #include 9 | 10 | volatile void _exit(int exit_code) 11 | { 12 | __asm__("int $0x80"::"a" (__NR_exit),"b" (exit_code)); 13 | } 14 | -------------------------------------------------------------------------------- /linux-0.11/include/linux/mm.h: -------------------------------------------------------------------------------- 1 | #ifndef _MM_H 2 | #define _MM_H 3 | 4 | #define PAGE_SIZE 4096 5 | 6 | extern unsigned long get_free_page(void); 7 | extern unsigned long put_page(unsigned long page,unsigned long address); 8 | extern void free_page(unsigned long addr); 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /msdos/v20source/STDIO.ASM: -------------------------------------------------------------------------------- 1 | ; 2 | ; Standard device IO for MSDOS (first 12 function calls) 3 | ; 4 | 5 | .xlist 6 | .xcref 7 | INCLUDE STDSW.ASM 8 | INCLUDE DOSSEG.ASM 9 | .cref 10 | .list 11 | 12 | TITLE STDIO - device IO for MSDOS 13 | NAME STDIO 14 | 15 | INCLUDE IO.ASM 16 | 17 |  -------------------------------------------------------------------------------- /linux-0.11/include/sys/times.h: -------------------------------------------------------------------------------- 1 | #ifndef _TIMES_H 2 | #define _TIMES_H 3 | 4 | #include 5 | 6 | struct tms { 7 | time_t tms_utime; 8 | time_t tms_stime; 9 | time_t tms_cutime; 10 | time_t tms_cstime; 11 | }; 12 | 13 | extern time_t times(struct tms * tp); 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /linux-0.11/include/utime.h: -------------------------------------------------------------------------------- 1 | #ifndef _UTIME_H 2 | #define _UTIME_H 3 | 4 | #include /* I know - shouldn't do this, but .. */ 5 | 6 | struct utimbuf { 7 | time_t actime; 8 | time_t modtime; 9 | }; 10 | 11 | extern int utime(const char *filename, struct utimbuf *times); 12 | 13 | #endif 14 | -------------------------------------------------------------------------------- /linux-0.11/include/sys/utsname.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_UTSNAME_H 2 | #define _SYS_UTSNAME_H 3 | 4 | #include 5 | 6 | struct utsname { 7 | char sysname[9]; 8 | char nodename[9]; 9 | char release[9]; 10 | char version[9]; 11 | char machine[9]; 12 | }; 13 | 14 | extern int uname(struct utsname * utsbuf); 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /msdos/v20source/STDBUF.ASM: -------------------------------------------------------------------------------- 1 | ; 2 | ; Standard buffer management for MSDOS 3 | ; 4 | 5 | .xlist 6 | .xcref 7 | INCLUDE STDSW.ASM 8 | .cref 9 | .list 10 | 11 | TITLE STDBUF - MSDOS buffer management 12 | NAME STDBUF 13 | 14 | INCLUDE BUF.ASM 15 | -------------------------------------------------------------------------------- /linux-0.11/lib/wait.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/lib/wait.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #define __LIBRARY__ 8 | #include 9 | #include 10 | 11 | _syscall3(pid_t,waitpid,pid_t,pid,int *,wait_stat,int,options) 12 | 13 | pid_t wait(int * wait_stat) 14 | { 15 | return waitpid(-1,wait_stat,0); 16 | } 17 | -------------------------------------------------------------------------------- /msdos/v20source/STDCALL.ASM: -------------------------------------------------------------------------------- 1 | ; 2 | ; Standard system calls for MSDOS 3 | ; 4 | 5 | .xlist 6 | .xcref 7 | INCLUDE STDSW.ASM 8 | .cref 9 | .list 10 | 11 | TITLE STDCALL - system calls for MSDOS 12 | NAME STDCALL 13 | 14 | INCLUDE SYSCALL.ASM 15 | -------------------------------------------------------------------------------- /msdos/v20source/STDCTRLC.ASM: -------------------------------------------------------------------------------- 1 | ; 2 | ; ^C and error handler for MSDOS 3 | ; 4 | 5 | .xlist 6 | .xcref 7 | INCLUDE STDSW.ASM 8 | .cref 9 | .list 10 | 11 | TITLE STDCTRLC - error handler for MSDOS 12 | NAME STDCTRLC 13 | 14 | INCLUDE CTRLC.ASM 15 | -------------------------------------------------------------------------------- /msdos/v20source/IFEQU.ASM: -------------------------------------------------------------------------------- 1 | ;************************************* 2 | ; COMMAND EQUs which are switch dependant 3 | 4 | IF1 5 | IF IBM 6 | %OUT IBM version 7 | ELSE 8 | %OUT Normal version 9 | ENDIF 10 | 11 | IF HIGHMEM 12 | %OUT Highmem version 13 | ENDIF 14 | 15 | IF KANJI 16 | %OUT Kanji version 17 | ENDIF 18 | ENDIF 19 | -------------------------------------------------------------------------------- /msdos/v20source/MOREMES.ASM: -------------------------------------------------------------------------------- 1 | TITLE MORE Messages 2 | 3 | CODE SEGMENT PUBLIC 4 | PUBLIC MORETXT,BADVER,CRLFTXT,BUFFER 5 | 6 | MORETXT DB 13,"-- More --$" 7 | BADVER DB "MORE: Incorrect DOS version" 8 | CRLFTXT DB 13,10,"$" 9 | ; 10 | ; THIS VARIABLE MUST BE DEFINED LAST! 11 | ; 12 | BUFFER DB 4098 DUP (?) 13 | 14 | CODE ENDS 15 | END 16 | 17 |  -------------------------------------------------------------------------------- /linux-0.11/include/stddef.h: -------------------------------------------------------------------------------- 1 | #ifndef _STDDEF_H 2 | #define _STDDEF_H 3 | 4 | #ifndef _PTRDIFF_T 5 | #define _PTRDIFF_T 6 | typedef long ptrdiff_t; 7 | #endif 8 | 9 | #ifndef _SIZE_T 10 | #define _SIZE_T 11 | typedef unsigned long size_t; 12 | #endif 13 | 14 | #undef NULL 15 | #define NULL ((void *)0) 16 | 17 | #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) 18 | 19 | #endif 20 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UInitFormats.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UInitFormats.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitFormats; EXTERNAL; 9 | -------------------------------------------------------------------------------- /photoshop v1.0.1/USeparation.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: USeparation.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitSeparation; EXTERNAL; 9 | -------------------------------------------------------------------------------- /linux-0.11/include/const.h: -------------------------------------------------------------------------------- 1 | #ifndef _CONST_H 2 | #define _CONST_H 3 | 4 | #define BUFFER_END 0x200000 5 | 6 | #define I_TYPE 0170000 7 | #define I_DIRECTORY 0040000 8 | #define I_REGULAR 0100000 9 | #define I_BLOCK_SPECIAL 0060000 10 | #define I_CHAR_SPECIAL 0020000 11 | #define I_NAMED_PIPE 0010000 12 | #define I_SET_UID_BIT 0004000 13 | #define I_SET_GID_BIT 0002000 14 | 15 | #endif 16 | -------------------------------------------------------------------------------- /linux-0.11/include/linux/head.h: -------------------------------------------------------------------------------- 1 | #ifndef _HEAD_H 2 | #define _HEAD_H 3 | 4 | typedef struct desc_struct { 5 | unsigned long a,b; 6 | } desc_table[256]; 7 | 8 | extern unsigned long pg_dir[1024]; 9 | extern desc_table idt,gdt; 10 | 11 | #define GDT_NUL 0 12 | #define GDT_CODE 1 13 | #define GDT_DATA 2 14 | #define GDT_TMP 3 15 | 16 | #define LDT_NUL 0 17 | #define LDT_CODE 1 18 | #define LDT_DATA 2 19 | 20 | #endif 21 | -------------------------------------------------------------------------------- /msdos/v20source/DOSSEG.ASM: -------------------------------------------------------------------------------- 1 | ; 2 | ; segment ordering for MSDOS 3 | ; 4 | 5 | CONSTANTS SEGMENT BYTE PUBLIC 'CONST' 6 | CONSTANTS ENDS 7 | 8 | DATA SEGMENT BYTE PUBLIC 'DATA' 9 | DATA ENDS 10 | 11 | CODE SEGMENT BYTE PUBLIC 'CODE' 12 | CODE ENDS 13 | 14 | LAST SEGMENT BYTE PUBLIC 'LAST' 15 | LAST ENDS 16 | 17 | DOSGROUP GROUP CODE,CONSTANTS,DATA,LAST 18 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UAbout.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UAbout.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | FUNCTION CodedChecksum (srcPtr: Ptr; 9 | count: INTEGER): LONGINT; EXTERNAL; 10 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UTrap.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UTrap.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitTraps; EXTERNAL; 9 | 10 | FUNCTION DoTrapCommand (view: TImageView): TCommand; EXTERNAL; 11 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UPasteControls.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UPasteControls.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitPasteControls; EXTERNAL; 9 | 10 | FUNCTION DoPasteControls (view: TImageView): TCommand; EXTERNAL; 11 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UPreferences.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UPreferences.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitPreferences; EXTERNAL; 9 | 10 | PROCEDURE SavePreferences; EXTERNAL; 11 | 12 | PROCEDURE DoPreferencesCommand; EXTERNAL; 13 | -------------------------------------------------------------------------------- /photoshop v1.0.1/ULine.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: ULine.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitLineTool; EXTERNAL; 9 | 10 | FUNCTION DoLineTool (view: TImageView): TCommand; EXTERNAL; 11 | 12 | PROCEDURE DoLineToolOptions; EXTERNAL; 13 | -------------------------------------------------------------------------------- /linux-0.11/lib/open.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/lib/open.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #define __LIBRARY__ 8 | #include 9 | #include 10 | 11 | int open(const char * filename, int flag, ...) 12 | { 13 | register int res; 14 | va_list arg; 15 | 16 | va_start(arg,flag); 17 | __asm__("int $0x80" 18 | :"=a" (res) 19 | :"0" (__NR_open),"b" (filename),"c" (flag), 20 | "d" (va_arg(arg,int))); 21 | if (res>=0) 22 | return res; 23 | errno = -res; 24 | return -1; 25 | } 26 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UTable.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UTable.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | FUNCTION DoTableCommand (view: TImageView; 9 | name: Str255): TCommand; EXTERNAL; 10 | 11 | FUNCTION DoEditTableCommand (view: TImageView): TCommand; EXTERNAL; 12 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UText.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UText.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitTextTool; EXTERNAL; 9 | 10 | FUNCTION DoTextTool (view: TImageView; pt: Point): TCommand; EXTERNAL; 11 | 12 | FUNCTION DoTextDrop (view: TImageView): TCommand; EXTERNAL; 13 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UScreen.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UScreen.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitScreens; EXTERNAL; 9 | 10 | PROCEDURE RegisterSpot (h: Handle); EXTERNAL; 11 | 12 | PROCEDURE MarkSpotDirty; EXTERNAL; 13 | 14 | PROCEDURE CollectSpotGarbage; EXTERNAL; 15 | -------------------------------------------------------------------------------- /linux-0.11/kernel/panic.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/kernel/panic.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | /* 8 | * This function is used through-out the kernel (includeinh mm and fs) 9 | * to indicate a major problem. 10 | */ 11 | #include 12 | #include 13 | 14 | void sys_sync(void); /* it's really int */ 15 | 16 | volatile void panic(const char * s) 17 | { 18 | printk("Kernel panic: %s\n\r",s); 19 | if (current == task[0]) 20 | printk("In swapper task - not syncing\n\r"); 21 | else 22 | sys_sync(); 23 | for(;;); 24 | } 25 | -------------------------------------------------------------------------------- /msdos/v20source/COMSW.ASM: -------------------------------------------------------------------------------- 1 | ; Use the following booleans to set assembly flags 2 | FALSE EQU 0 3 | TRUE EQU NOT FALSE 4 | 5 | IBMVER EQU true ; Switch to build IBM version of Command 6 | IBM EQU IBMVER 7 | MSVER EQU false ; Switch to build MS-DOS version of Command 8 | 9 | HIGHMEM EQU FALSE ; Run resident part above transient (high memory) 10 | KANJI EQU false ; Support for dual byte Microsoft KANJI standard 11 | IBMJAPAN EQU FALSE ;MUST BE TRUE (along with IBM and KANJI) 12 | 13 |  -------------------------------------------------------------------------------- /photoshop v1.0.1/UCoords.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UCoords.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitCoords; EXTERNAL; 9 | 10 | FUNCTION CoordsVisible: BOOLEAN; EXTERNAL; 11 | 12 | PROCEDURE ShowCoords (visible: BOOLEAN); EXTERNAL; 13 | 14 | PROCEDURE UpdateCoords (view: TImageView; pt: Point); EXTERNAL; 15 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UGIFFormat.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UGIFFormat.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | FUNCTION ExtractGIF (buffer: Ptr; 9 | offset: LONGINT; 10 | count: INTEGER): INTEGER; EXTERNAL; 11 | 12 | PROCEDURE StuffGIF (buffer: Ptr; 13 | offset: LONGINT; 14 | code: INTEGER); EXTERNAL; 15 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UScan.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UScan.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE VerifyHardware; EXTERNAL; 9 | 10 | PROCEDURE InitScanners; EXTERNAL; 11 | 12 | PROCEDURE DoAcquireCommand (name: Str255); EXTERNAL; 13 | 14 | PROCEDURE DoExportCommand (doc: TImageDocument; name: Str255); EXTERNAL; 15 | -------------------------------------------------------------------------------- /linux-0.11/include/asm/memory.h: -------------------------------------------------------------------------------- 1 | /* 2 | * NOTE!!! memcpy(dest,src,n) assumes ds=es=normal data segment. This 3 | * goes for all kernel functions (ds=es=kernel space, fs=local data, 4 | * gs=null), as well as for all well-behaving user programs (ds=es= 5 | * user data space). This is NOT a bug, as any user program that changes 6 | * es deserves to die if it isn't careful. 7 | */ 8 | #define memcpy(dest,src,n) ({ \ 9 | void * _res = dest; \ 10 | __asm__ ("cld;rep;movsb" \ 11 | ::"D" ((long)(_res)),"S" ((long)(src)),"c" ((long) (n)) \ 12 | :"di","si","cx"); \ 13 | _res; \ 14 | }) 15 | -------------------------------------------------------------------------------- /photoshop v1.0.1/ULine.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: ULine.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE DoMarkLine (srcPtr: Ptr; 9 | dstPtr: Ptr; 10 | level: INTEGER; 11 | count: INTEGER); EXTERNAL; 12 | 13 | PROCEDURE DoMultiplyMasks (srcPtr: Ptr; 14 | dstPtr: Ptr; 15 | count: INTEGER); EXTERNAL; 16 | -------------------------------------------------------------------------------- /linux-0.11/include/asm/io.h: -------------------------------------------------------------------------------- 1 | #define outb(value,port) \ 2 | __asm__ ("outb %%al,%%dx"::"a" (value),"d" (port)) 3 | 4 | 5 | #define inb(port) ({ \ 6 | unsigned char _v; \ 7 | __asm__ volatile ("inb %%dx,%%al":"=a" (_v):"d" (port)); \ 8 | _v; \ 9 | }) 10 | 11 | #define outb_p(value,port) \ 12 | __asm__ ("outb %%al,%%dx\n" \ 13 | "\tjmp 1f\n" \ 14 | "1:\tjmp 1f\n" \ 15 | "1:"::"a" (value),"d" (port)) 16 | 17 | #define inb_p(port) ({ \ 18 | unsigned char _v; \ 19 | __asm__ volatile ("inb %%dx,%%al\n" \ 20 | "\tjmp 1f\n" \ 21 | "1:\tjmp 1f\n" \ 22 | "1:":"=a" (_v):"d" (port)); \ 23 | _v; \ 24 | }) 25 | -------------------------------------------------------------------------------- /msdos/v20source/SYSIMES.ASM: -------------------------------------------------------------------------------- 1 | SYSINITSEG SEGMENT PUBLIC BYTE 'SYSTEM_INIT' 2 | 3 | PUBLIC BADOPM,CRLFM,BADSIZ,BADLD,BADCOM,SYSSIZE 4 | 5 | BADOPM DB 13,10,"Unrecognized command in CONFIG.SYS" 6 | CRLFM DB 13,10,'$' 7 | 8 | BADSIZ DB 13,10,"Sector size too large in file $" 9 | 10 | BADLD DB 13,10,"Bad or missing $" 11 | 12 | BADCOM DB "Command Interpreter",0 13 | 14 | SYSSIZE LABEL BYTE 15 | 16 | SYSINITSEG ENDS 17 | END 18 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UInternal.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UInternal.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE ReadMiscResources (doc: TImageDocument); EXTERNAL; 9 | 10 | PROCEDURE MiscResourcesBytes (doc: TImageDocument; 11 | VAR rsrcForkBytes: LONGINT); EXTERNAL; 12 | 13 | PROCEDURE WriteMiscResources (doc: TImageDocument); EXTERNAL; 14 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UIFFFormat.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UIFFFormat.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE ExtractPlane (iData: Ptr; 9 | pData: Ptr; 10 | cols: INTEGER; 11 | plane: INTEGER); EXTERNAL; 12 | 13 | PROCEDURE StuffPlane (pData: Ptr; 14 | iData: Ptr; 15 | cols: INTEGER; 16 | plane: INTEGER); EXTERNAL; 17 | -------------------------------------------------------------------------------- /photoshop v1.0.1/MovableWDEF.make: -------------------------------------------------------------------------------- 1 | #Photoshop version 1.0.1, file: MovableWDEF.make 2 | # Computer History Museum, www.computerhistory.org 3 | # This material is (C)Copyright 1990 Adobe Systems Inc. 4 | # It may not be distributed to third parties. 5 | # It is licensed for non-commercial use according to 6 | # www.computerhistory.org/softwarelicense/photoshop/ 7 | 8 | MovableWDEF : MovableWDEF.p.o 9 | Link \ 10 | -o MovableWDEF \ 11 | -rt WDEF=3 \ 12 | -m MOVABLEWDEF \ 13 | -sn Main='Movable' \ 14 | MovableWDEF.p.o 15 | Delete MovableWDEF.p.o 16 | 17 | MovableWDEF.p.o : MovableWDEF.p 18 | Pascal MovableWDEF.p -z -r 19 | -------------------------------------------------------------------------------- /photoshop v1.0.1/PaletteWDEF.make: -------------------------------------------------------------------------------- 1 | #Photoshop version 1.0.1, file: PaletteWDEF.make 2 | # Computer History Museum, www.computerhistory.org 3 | # This material is (C)Copyright 1990 Adobe Systems Inc. 4 | # It may not be distributed to third parties. 5 | # It is licensed for non-commercial use according to 6 | # www.computerhistory.org/softwarelicense/photoshop/ 7 | 8 | PaletteWDEF : PaletteWDEF.p.o 9 | Link \ 10 | -o PaletteWDEF \ 11 | -rt WDEF=2 \ 12 | -m PALETTEWDEF \ 13 | -sn Main='Palette' \ 14 | PaletteWDEF.p.o 15 | Delete PaletteWDEF.p.o 16 | 17 | PaletteWDEF.p.o : PaletteWDEF.p 18 | Pascal PaletteWDEF.p -z -r 19 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UPostScript.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UPostScript.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE ConvertToHex (srcPtr: Ptr; 9 | dstPtr: Ptr; 10 | count: INTEGER); EXTERNAL; 11 | 12 | PROCEDURE DeHexBytes (srcPtr: Ptr; 13 | VAR srcCount: LONGINT; 14 | VAR dstPtr: Ptr; 15 | VAR dstCount: LONGINT; 16 | table: TLookUpTable); EXTERNAL; 17 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UPrint.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UPrint.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitImagePrinting; EXTERNAL; 9 | 10 | PROCEDURE GetPrintRects (doc: TImageDocument; 11 | bounds: Rect; 12 | VAR thePaper: Rect; 13 | VAR theInk: Rect; 14 | VAR theImage: Rect); EXTERNAL; 15 | 16 | PROCEDURE AddImagePrintHander (view: TImageView); EXTERNAL; 17 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UFilter.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UFilter.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitFilters; EXTERNAL; 9 | 10 | PROCEDURE Do3by3Filter (srcArray: TVMArray; 11 | dstArray: TVMArray; 12 | r: Rect; 13 | which: INTEGER); EXTERNAL; 14 | 15 | FUNCTION DoFilterCommand (view: TImageView; 16 | name: Str255; 17 | repeating: BOOLEAN): TCommand; EXTERNAL; 18 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UChannel.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UChannel.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | FUNCTION DoSetChannelCommand 9 | (view: TImageView; channel: INTEGER): TCommand; EXTERNAL; 10 | 11 | FUNCTION DoNewChannel (view: TImageView): TCommand; EXTERNAL; 12 | 13 | FUNCTION DoSplitChannels (view: TImageView): TCommand; EXTERNAL; 14 | 15 | FUNCTION DoMergeChannels (view: TImageView): TCommand; EXTERNAL; 16 | -------------------------------------------------------------------------------- /linux-0.11/include/sys/wait.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_WAIT_H 2 | #define _SYS_WAIT_H 3 | 4 | #include 5 | 6 | #define _LOW(v) ( (v) & 0377) 7 | #define _HIGH(v) ( ((v) >> 8) & 0377) 8 | 9 | /* options for waitpid, WUNTRACED not supported */ 10 | #define WNOHANG 1 11 | #define WUNTRACED 2 12 | 13 | #define WIFEXITED(s) (!((s)&0xFF) 14 | #define WIFSTOPPED(s) (((s)&0xFF)==0x7F) 15 | #define WEXITSTATUS(s) (((s)>>8)&0xFF) 16 | #define WTERMSIG(s) ((s)&0x7F) 17 | #define WSTOPSIG(s) (((s)>>8)&0xFF) 18 | #define WIFSIGNALED(s) (((unsigned int)(s)-1 & 0xFFFF) < 0xFF) 19 | 20 | pid_t wait(int *stat_loc); 21 | pid_t waitpid(pid_t pid, int *stat_loc, int options); 22 | 23 | #endif 24 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UTIFFormat.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UTIFFormat.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | FUNCTION ExtractTIFF (buffer: Ptr; 9 | offset: LONGINT; 10 | count: INTEGER): INTEGER; EXTERNAL; 11 | 12 | PROCEDURE StuffTIFF (buffer: Ptr; 13 | offset: LONGINT; 14 | code: INTEGER); EXTERNAL; 15 | 16 | PROCEDURE AddTIFFPlane (srcPtr: Ptr; 17 | dstPtr: Ptr; 18 | count: INTEGER); EXTERNAL; 19 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UTrap.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UTrap.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE DoTrapRow (srcPtr1: Ptr; 9 | srcPtr2: Ptr; 10 | dstPtr: Ptr; 11 | bufPtr1: Ptr; 12 | bufPtr2: Ptr; 13 | radius: INTEGER; 14 | count: INTEGER); EXTERNAL; 15 | 16 | PROCEDURE DoCombineTrap (srcPtr: Ptr; 17 | dstPtr: Ptr; 18 | median: INTEGER; 19 | count: INTEGER); EXTERNAL; 20 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UResize.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UResize.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitResize; EXTERNAL; 9 | 10 | PROCEDURE ResizeArray (srcArray: TVMArray; 11 | dstArray: TVMArray; 12 | sample: BOOLEAN; 13 | canAbort: BOOLEAN); EXTERNAL; 14 | 15 | FUNCTION DoResizeImage (view: TImageView): TCommand; EXTERNAL; 16 | 17 | FUNCTION DoResampleImage (view: TImageView): TCommand; EXTERNAL; 18 | -------------------------------------------------------------------------------- /linux-0.11/mm/page.s: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/mm/page.s 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | /* 8 | * page.s contains the low-level page-exception code. 9 | * the real work is done in mm.c 10 | */ 11 | 12 | .globl _page_fault 13 | 14 | _page_fault: 15 | xchgl %eax,(%esp) 16 | pushl %ecx 17 | pushl %edx 18 | push %ds 19 | push %es 20 | push %fs 21 | movl $0x10,%edx 22 | mov %dx,%ds 23 | mov %dx,%es 24 | mov %dx,%fs 25 | movl %cr2,%edx 26 | pushl %edx 27 | pushl %eax 28 | testl $1,%eax 29 | jne 1f 30 | call _do_no_page 31 | jmp 2f 32 | 1: call _do_wp_page 33 | 2: addl $8,%esp 34 | pop %fs 35 | pop %es 36 | pop %ds 37 | popl %edx 38 | popl %ecx 39 | popl %eax 40 | iret 41 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UConvert.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UConvert.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitCvtOptions; EXTERNAL; 9 | 10 | FUNCTION DeHalftoneDoc (doc: TImageDocument; 11 | scale: INTEGER; 12 | canAbort: BOOLEAN): TVMArray; EXTERNAL; 13 | 14 | FUNCTION DoConvertCommand (view: TImageView; 15 | mode: TDisplayMode): TCommand; EXTERNAL; 16 | 17 | FUNCTION DoDeleteChannel (view: TImageView): TCommand; EXTERNAL; 18 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UHistogram.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UHistogram.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE GetHistogram (view: TImageView; 9 | luminosity: BOOLEAN; 10 | VAR hist0: THistogram; 11 | VAR hist1: THistogram; 12 | VAR hist2: THistogram; 13 | VAR hist3: THistogram); EXTERNAL; 14 | 15 | PROCEDURE DrawHistogram (hist: THistogram; bounds: Rect); EXTERNAL; 16 | 17 | PROCEDURE DoHistogramCommand (view: TImageView); EXTERNAL; 18 | -------------------------------------------------------------------------------- /msdos/v11source/STDDOS.ASM: -------------------------------------------------------------------------------- 1 | TITLE MS-DOS version 1.25 by Tim Paterson March 3, 1982 2 | PAGE 60,132 3 | ; Use the following booleans to set the switches 4 | FALSE EQU 0 5 | TRUE EQU NOT FALSE 6 | 7 | ; Use the switches below to produce the standard Microsoft version of the IBM 8 | ; version of the operating system 9 | MSVER EQU TRUE 10 | IBM EQU FALSE 11 | 12 | ; Set this switch to cause DOS to move itself to the end of memory 13 | HIGHMEM EQU FALSE 14 | 15 | ; Turn on switch below to allow testing disk code with DEBUG. It sets 16 | ; up a different stack for disk I/O (functions > 11) than that used for 17 | ; character I/O which effectively makes the DOS re-entrant. 18 | 19 | DSKTEST EQU FALSE 20 | 21 | INCLUDE MSDOS.ASM 22 | 23 |  -------------------------------------------------------------------------------- /photoshop v1.0.1/UTarga.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UTarga.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE Targa16Red (srcPtr: Ptr; 9 | dstPtr: Ptr; 10 | count: INTEGER); EXTERNAL; 11 | 12 | PROCEDURE Targa16Green (srcPtr: Ptr; 13 | dstPtr: Ptr; 14 | count: INTEGER); EXTERNAL; 15 | 16 | PROCEDURE Targa16Blue (srcPtr: Ptr; 17 | dstPtr: Ptr; 18 | count: INTEGER); EXTERNAL; 19 | 20 | PROCEDURE DecodeTargaRLE (VAR srcPtr: Ptr; 21 | VAR dstPtr: Ptr; 22 | count: LONGINT; 23 | size: INTEGER); EXTERNAL; 24 | -------------------------------------------------------------------------------- /linux-0.11/include/linux/kernel.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 'kernel.h' contains some often-used function prototypes etc 3 | */ 4 | void verify_area(void * addr,int count); 5 | volatile void panic(const char * str); 6 | int printf(const char * fmt, ...); 7 | int printk(const char * fmt, ...); 8 | int tty_write(unsigned ch,char * buf,int count); 9 | void * malloc(unsigned int size); 10 | void free_s(void * obj, int size); 11 | 12 | #define free(x) free_s((x), 0) 13 | 14 | /* 15 | * This is defined as a macro, but at some point this might become a 16 | * real subroutine that sets a flag if it returns true (to do 17 | * BSD-style accounting where the process is flagged if it uses root 18 | * privs). The implication of this is that you should do normal 19 | * permissions checks first, and check suser() last. 20 | */ 21 | #define suser() (current->euid == 0) 22 | 23 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UPressure.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UPressure.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UPressure; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop; 19 | 20 | VAR 21 | gHavePressure: BOOLEAN; 22 | 23 | PROCEDURE InitPressure; 24 | 25 | FUNCTION UsingPressure: BOOLEAN; 26 | 27 | FUNCTION ReadPressure: INTEGER; 28 | 29 | IMPLEMENTATION 30 | 31 | {$I UPressure.inc1.p} 32 | 33 | END. 34 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UMagnification.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UMagnification.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | FUNCTION DoZoomInCommand (view: TImageView): TCommand; EXTERNAL; 9 | 10 | FUNCTION DoZoomOutCommand (view: TImageView): TCommand; EXTERNAL; 11 | 12 | FUNCTION DoScaleFactorCommand (view: TImageView): TCommand; EXTERNAL; 13 | 14 | FUNCTION DoNormalSize (view: TImageView): TCommand; EXTERNAL; 15 | 16 | FUNCTION DoOverviewSize (view: TImageView): TCommand; EXTERNAL; 17 | 18 | FUNCTION DoZoomTool (view: TImageView; 19 | downPoint: Point; 20 | zoomOut: BOOLEAN): TCommand; EXTERNAL; 21 | -------------------------------------------------------------------------------- /msdos/v20source/EXEMES.ASM: -------------------------------------------------------------------------------- 1 | title LOCATE (EXE2BIN) Messages 2 | 3 | FALSE EQU 0 4 | TRUE EQU NOT FALSE 5 | 6 | DATA SEGMENT PUBLIC BYTE 7 | 8 | PUBLIC bad_vers_err,NOTFND,NOROOM,DIRFULL,FULL,PROMPT,CRLF 9 | PUBLIC CANTFIX,RDBAD 10 | 11 | bad_vers_err db "Incorrect DOS version$" 12 | NOTFND DB "File not found$" 13 | NOROOM DB "Insufficient memory$" 14 | DIRFULL DB "File creation error$" 15 | FULL DB "Insufficient disk space$" 16 | PROMPT DB "Fix-ups needed - base segment (hex): $" 17 | CRLF DB 13,10,"$" 18 | CANTFIX DB "File cannot be converted$" 19 | RDBAD DB "WARNING - Read error on EXE file." 20 | DB 13,10," Amount read less than size in header.",13,10,"$" 21 | 22 | 23 | DATA ENDS 24 | END 25 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UAdjust.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UAdjust.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | FUNCTION FindGamma (x: INTEGER; gamma: INTEGER): INTEGER; EXTERNAL; 9 | 10 | PROCEDURE DoHistLuminosity (data1Ptr: Ptr; 11 | data2Ptr: Ptr; 12 | data3Ptr: Ptr; 13 | maskPtr: Ptr; 14 | maps: TRGBLookUpTable; 15 | count: INTEGER; 16 | VAR hist: THistogram); EXTERNAL; 17 | 18 | PROCEDURE ThresholdLuminosity (data1Ptr: Ptr; 19 | data2Ptr: Ptr; 20 | data3Ptr: Ptr; 21 | maps: TRGBLookUpTable; 22 | count: INTEGER; 23 | threshold: INTEGER); EXTERNAL; 24 | -------------------------------------------------------------------------------- /linux-0.11/include/stdarg.h: -------------------------------------------------------------------------------- 1 | #ifndef _STDARG_H 2 | #define _STDARG_H 3 | 4 | typedef char *va_list; 5 | 6 | /* Amount of space required in an argument list for an arg of type TYPE. 7 | TYPE may alternatively be an expression whose type is used. */ 8 | 9 | #define __va_rounded_size(TYPE) \ 10 | (((sizeof (TYPE) + sizeof (int) - 1) / sizeof (int)) * sizeof (int)) 11 | 12 | #ifndef __sparc__ 13 | #define va_start(AP, LASTARG) \ 14 | (AP = ((char *) &(LASTARG) + __va_rounded_size (LASTARG))) 15 | #else 16 | #define va_start(AP, LASTARG) \ 17 | (__builtin_saveregs (), \ 18 | AP = ((char *) &(LASTARG) + __va_rounded_size (LASTARG))) 19 | #endif 20 | 21 | void va_end (va_list); /* Defined in gnulib */ 22 | #define va_end(AP) 23 | 24 | #define va_arg(AP, TYPE) \ 25 | (AP += __va_rounded_size (TYPE), \ 26 | *((TYPE *) (AP - __va_rounded_size (TYPE)))) 27 | 28 | #endif /* _STDARG_H */ 29 | -------------------------------------------------------------------------------- /msdos/v20source/COMSEG.ASM: -------------------------------------------------------------------------------- 1 | ; The following are all of the segments used in the load order 2 | 3 | CODERES SEGMENT PUBLIC 4 | CODERES ENDS 5 | 6 | DATARES SEGMENT PUBLIC 7 | DATARES ENDS 8 | 9 | ENVIRONMENT SEGMENT PUBLIC 10 | ENVIRONMENT ENDS 11 | 12 | INIT SEGMENT PUBLIC 13 | INIT ENDS 14 | 15 | TAIL SEGMENT PUBLIC 16 | TAIL ENDS 17 | 18 | TRANCODE SEGMENT PUBLIC 19 | TRANCODE ENDS 20 | 21 | TRANDATA SEGMENT PUBLIC 22 | TRANDATA ENDS 23 | 24 | TRANSPACE SEGMENT PUBLIC 25 | TRANSPACE ENDS 26 | 27 | TRANTAIL SEGMENT PUBLIC 28 | TRANTAIL ENDS 29 | 30 | ZEXEC_CODE SEGMENT PUBLIC 31 | ZEXEC_CODE ENDS 32 | 33 | ZEXEC_DATA SEGMENT PUBLIC 34 | ZEXEC_DATA ENDS 35 | 36 | RESGROUP GROUP CODERES,DATARES,ENVIRONMENT,INIT,TAIL 37 | TRANGROUP GROUP TRANCODE,TRANDATA,TRANSPACE,TRANTAIL 38 | EGROUP GROUP ZEXEC_CODE,ZEXEC_DATA 39 | -------------------------------------------------------------------------------- /linux-0.11/kernel/printk.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/kernel/printk.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | /* 8 | * When in kernel-mode, we cannot use printf, as fs is liable to 9 | * point to 'interesting' things. Make a printf with fs-saving, and 10 | * all is well. 11 | */ 12 | #include 13 | #include 14 | 15 | #include 16 | 17 | static char buf[1024]; 18 | 19 | extern int vsprintf(char * buf, const char * fmt, va_list args); 20 | 21 | int printk(const char *fmt, ...) 22 | { 23 | va_list args; 24 | int i; 25 | 26 | va_start(args, fmt); 27 | i=vsprintf(buf,fmt,args); 28 | va_end(args); 29 | __asm__("push %%fs\n\t" 30 | "push %%ds\n\t" 31 | "pop %%fs\n\t" 32 | "pushl %0\n\t" 33 | "pushl $_buf\n\t" 34 | "pushl $0\n\t" 35 | "call _tty_write\n\t" 36 | "addl $8,%%esp\n\t" 37 | "popl %0\n\t" 38 | "pop %%fs" 39 | ::"r" (i):"ax","cx","dx"); 40 | return i; 41 | } 42 | -------------------------------------------------------------------------------- /linux-0.11/include/time.h: -------------------------------------------------------------------------------- 1 | #ifndef _TIME_H 2 | #define _TIME_H 3 | 4 | #ifndef _TIME_T 5 | #define _TIME_T 6 | typedef long time_t; 7 | #endif 8 | 9 | #ifndef _SIZE_T 10 | #define _SIZE_T 11 | typedef unsigned int size_t; 12 | #endif 13 | 14 | #define CLOCKS_PER_SEC 100 15 | 16 | typedef long clock_t; 17 | 18 | struct tm { 19 | int tm_sec; 20 | int tm_min; 21 | int tm_hour; 22 | int tm_mday; 23 | int tm_mon; 24 | int tm_year; 25 | int tm_wday; 26 | int tm_yday; 27 | int tm_isdst; 28 | }; 29 | 30 | clock_t clock(void); 31 | time_t time(time_t * tp); 32 | double difftime(time_t time2, time_t time1); 33 | time_t mktime(struct tm * tp); 34 | 35 | char * asctime(const struct tm * tp); 36 | char * ctime(const time_t * tp); 37 | struct tm * gmtime(const time_t *tp); 38 | struct tm *localtime(const time_t * tp); 39 | size_t strftime(char * s, size_t smax, const char * fmt, const struct tm * tp); 40 | void tzset(void); 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UAbout.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UAbout.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE RegisterCopy; EXTERNAL; 9 | 10 | PROCEDURE ShowSplashScreen; EXTERNAL; 11 | 12 | PROCEDURE KillSplashScreen; EXTERNAL; 13 | 14 | PROCEDURE DoAboutPhotoshop; EXTERNAL; 15 | 16 | PROCEDURE MakeSizeString (doc: TImageDocument; 17 | across: BOOLEAN; 18 | VAR s: Str255); EXTERNAL; 19 | 20 | PROCEDURE MakeResString (doc: TImageDocument; 21 | align: BOOLEAN; 22 | VAR s: Str255); EXTERNAL; 23 | 24 | PROCEDURE DoSizeBoxPopUp (doc: TImageDocument; 25 | r: Rect; 26 | info: EventInfo); EXTERNAL; 27 | 28 | PROCEDURE VerifyEvE; EXTERNAL; 29 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UProgress.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UProgress.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UProgress; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD} 18 | UDialog, UBWDialog; 19 | 20 | PROCEDURE InitProgress; 21 | 22 | PROCEDURE StartProgress (s: Str255); 23 | 24 | PROCEDURE CommandProgress (cmd: INTEGER); 25 | 26 | PROCEDURE FinishProgress; 27 | 28 | PROCEDURE UpdateProgress (m, n: LONGINT); 29 | 30 | PROCEDURE StartTask (f: EXTENDED); 31 | 32 | PROCEDURE FinishTask; 33 | 34 | IMPLEMENTATION 35 | 36 | {$I UProgress.inc1.p} 37 | 38 | END. 39 | -------------------------------------------------------------------------------- /linux-0.11/mm/Makefile: -------------------------------------------------------------------------------- 1 | CC =gcc 2 | CFLAGS =-O -Wall -fstrength-reduce -fcombine-regs -fomit-frame-pointer \ 3 | -finline-functions -nostdinc -I../include 4 | AS =gas 5 | AR =gar 6 | LD =gld 7 | CPP =gcc -E -nostdinc -I../include 8 | 9 | .c.o: 10 | $(CC) $(CFLAGS) \ 11 | -c -o $*.o $< 12 | .s.o: 13 | $(AS) -o $*.o $< 14 | .c.s: 15 | $(CC) $(CFLAGS) \ 16 | -S -o $*.s $< 17 | 18 | OBJS = memory.o page.o 19 | 20 | all: mm.o 21 | 22 | mm.o: $(OBJS) 23 | $(LD) -r -o mm.o $(OBJS) 24 | 25 | clean: 26 | rm -f core *.o *.a tmp_make 27 | for i in *.c;do rm -f `basename $$i .c`.s;done 28 | 29 | dep: 30 | sed '/\#\#\# Dependencies/q' < Makefile > tmp_make 31 | (for i in *.c;do $(CPP) -M $$i;done) >> tmp_make 32 | cp tmp_make Makefile 33 | 34 | ### Dependencies: 35 | memory.o : memory.c ../include/signal.h ../include/sys/types.h \ 36 | ../include/asm/system.h ../include/linux/sched.h ../include/linux/head.h \ 37 | ../include/linux/fs.h ../include/linux/mm.h ../include/linux/kernel.h 38 | -------------------------------------------------------------------------------- /msdos/v20source/COMEQU.ASM: -------------------------------------------------------------------------------- 1 | ;************************************* 2 | ; COMMAND EQUs which are not switch dependant 3 | 4 | IFDEF IBM 5 | INCLUDE IFEQU.ASM 6 | ENDIF 7 | 8 | 9 | SYM EQU ">" 10 | 11 | LINPERPAG EQU 23 12 | NORMPERLIN EQU 1 13 | WIDEPERLIN EQU 5 14 | COMBUFLEN EQU 128 ; Length of commmand buffer 15 | 16 | DRVCHAR EQU ":" 17 | 18 | FCB EQU 5CH 19 | 20 | VARSTRUC STRUC 21 | ISDIR DB ? 22 | SIZ DB ? 23 | TTAIL DW ? 24 | INFO DB ? 25 | BUF DB DIRSTRLEN + 20 DUP (?) 26 | VARSTRUC ENDS 27 | 28 | WSWITCH EQU 1 ; Wide display during DIR 29 | PSWITCH EQU 2 ; Pause (or Page) mode during DIR 30 | ASWITCH EQU 4 ; ASCII mode during COPY 31 | BSWITCH EQU 8 ; Binary mode during COPY 32 | VSWITCH EQU 10H ; Verify switch 33 | GOTSWITCH EQU 8000H ; Meta switch set if switch character encountered 34 | -------------------------------------------------------------------------------- /linux-0.11/include/sys/types.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_TYPES_H 2 | #define _SYS_TYPES_H 3 | 4 | #ifndef _SIZE_T 5 | #define _SIZE_T 6 | typedef unsigned int size_t; 7 | #endif 8 | 9 | #ifndef _TIME_T 10 | #define _TIME_T 11 | typedef long time_t; 12 | #endif 13 | 14 | #ifndef _PTRDIFF_T 15 | #define _PTRDIFF_T 16 | typedef long ptrdiff_t; 17 | #endif 18 | 19 | #ifndef NULL 20 | #define NULL ((void *) 0) 21 | #endif 22 | 23 | typedef int pid_t; 24 | typedef unsigned short uid_t; 25 | typedef unsigned char gid_t; 26 | typedef unsigned short dev_t; 27 | typedef unsigned short ino_t; 28 | typedef unsigned short mode_t; 29 | typedef unsigned short umode_t; 30 | typedef unsigned char nlink_t; 31 | typedef int daddr_t; 32 | typedef long off_t; 33 | typedef unsigned char u_char; 34 | typedef unsigned short ushort; 35 | 36 | typedef struct { int quot,rem; } div_t; 37 | typedef struct { long quot,rem; } ldiv_t; 38 | 39 | struct ustat { 40 | daddr_t f_tfree; 41 | ino_t f_tinode; 42 | char f_fname[6]; 43 | char f_fpack[6]; 44 | }; 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /msdos/v20source/UINIT.ASM: -------------------------------------------------------------------------------- 1 | TITLE COMMAND Initialization messages 2 | 3 | INCLUDE COMSW.ASM 4 | 5 | INCLUDE IFEQU.ASM 6 | 7 | INIT SEGMENT PUBLIC BYTE 8 | 9 | PUBLIC BADCOMLKMES 10 | 11 | PUBLIC HEADER 12 | IF NOT IBM 13 | HEADER DB 13,10,"Command v. 2.11" 14 | IF HIGHMEM 15 | DB "H" 16 | ENDIF 17 | DB 13,10,"$" 18 | ENDIF 19 | IF IBM 20 | HEADER DB 13,10,13,10,"TeleVideo Personal Computer DOS Vers. 2.11",13,10 21 | DB "(C) Copyright TeleVideo Systems, Inc. 1983",13,10 22 | DB "(C) Copyright Microsoft Corp. 1981, 1982, 1983",13,10,"$" 23 | ENDIF 24 | 25 | BADCOMLKMES DB "Specified COMMAND search directory bad",13,10,"$" 26 | 27 | INIT ENDS 28 | 29 | END 30 |  -------------------------------------------------------------------------------- /photoshop v1.0.1/UGhost.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UGhost.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitGhosts; EXTERNAL; 9 | 10 | PROCEDURE MoveGhostsForward; EXTERNAL; 11 | 12 | FUNCTION FrontVisible: WindowPtr; EXTERNAL; 13 | 14 | FUNCTION IsGhostWindow (wp: WindowPtr): BOOLEAN; EXTERNAL; 15 | 16 | PROCEDURE MakeIntoGhost (wp: WindowPtr; ghost: BOOLEAN); EXTERNAL; 17 | 18 | PROCEDURE HiliteGhosts (state: BOOLEAN); EXTERNAL; 19 | 20 | PROCEDURE MySelectWindow (theWindow: WindowPtr); EXTERNAL; 21 | 22 | PROCEDURE MyDragWindow (theWindow: WindowPtr; 23 | startPt: Point; 24 | bounds: Rect); EXTERNAL; 25 | 26 | FUNCTION ToggleGhosts: BOOLEAN; EXTERNAL; 27 | 28 | FUNCTION NewGhostWindow (itsRsrcID: INTEGER; 29 | itsView: TView): TWindow; EXTERNAL; 30 | -------------------------------------------------------------------------------- /photoshop v1.0.1/URotate.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: URotate.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitRotations; EXTERNAL; 9 | 10 | PROCEDURE DoTransposeArray (srcArray: TVMArray; 11 | dstArray: TVMArray; 12 | horizontal: BOOLEAN; 13 | vertical: BOOLEAN); EXTERNAL; 14 | 15 | FUNCTION DoFlipCommand (view: TImageView; 16 | horizontal, vertical: BOOLEAN): TCommand; EXTERNAL; 17 | 18 | FUNCTION DoRotateCommand (view: TImageView; angle: INTEGER): TCommand; EXTERNAL; 19 | 20 | FUNCTION DoRotateArbitraryCommand (view: TImageView): TCommand; EXTERNAL; 21 | 22 | FUNCTION SetEffectMode (view: TImageView; mode: INTEGER): TCommand; EXTERNAL; 23 | 24 | FUNCTION DoEffectsCommand (view: TImageView; 25 | downPoint: Point): TCommand; EXTERNAL; 26 | -------------------------------------------------------------------------------- /photoshop v1.0.1/URotate.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: URotate.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | FUNCTION DoBiCubic (base: Ptr; 9 | part: INTEGER): INTEGER; EXTERNAL; 10 | 11 | PROCEDURE DoReverseBytes (data: Ptr; 12 | count: INTEGER); EXTERNAL; 13 | 14 | PROCEDURE DoSkewRow (srcPtr: Ptr; 15 | dstPtr: Ptr; 16 | srcCount: INTEGER; 17 | dstCount: INTEGER; 18 | base: LONGINT; 19 | step: LONGINT; 20 | method: INTEGER; 21 | background: INTEGER); EXTERNAL; 22 | 23 | PROCEDURE DoScaleFactor (srcPtr: Ptr; 24 | dstPtr: Ptr; 25 | count: INTEGER; 26 | factor: INTEGER); EXTERNAL; 27 | 28 | PROCEDURE DoEllipseRow (dstPtr: Ptr; 29 | row: INTEGER; 30 | width: INTEGER; 31 | height: INTEGER); EXTERNAL; 32 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UCrop.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UCrop.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitCrops; EXTERNAL; 9 | 10 | FUNCTION DoMarqueeTool (view: TImageView; 11 | add: BOOLEAN; 12 | remove: BOOLEAN; 13 | refine: BOOLEAN): TCommand; EXTERNAL; 14 | 15 | PROCEDURE DoMarqueeOptions; EXTERNAL; 16 | 17 | FUNCTION DoEllipseTool (view: TImageView; 18 | add: BOOLEAN; 19 | remove: BOOLEAN; 20 | refine: BOOLEAN): TCommand; EXTERNAL; 21 | 22 | PROCEDURE DoEllipseOptions; EXTERNAL; 23 | 24 | FUNCTION DoCroppingTool (view: TImageView): TCommand; EXTERNAL; 25 | 26 | PROCEDURE DoCroppingOptions; EXTERNAL; 27 | 28 | FUNCTION DoCropCommand (view: TImageView): TCommand; EXTERNAL; 29 | 30 | FUNCTION AdjustZeroPoint (view: TImageView): TCommand; EXTERNAL; 31 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UAdjust.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UAdjust.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitAdjustments; EXTERNAL; 9 | 10 | FUNCTION DoInvertCommand (view: TImageView): TCommand; EXTERNAL; 11 | 12 | FUNCTION DoEqualizeCommand (view: TImageView): TCommand; EXTERNAL; 13 | 14 | FUNCTION DoThresholdCommand (view: TImageView): TCommand; EXTERNAL; 15 | 16 | FUNCTION DoPosterizeCommand (view: TImageView): TCommand; EXTERNAL; 17 | 18 | FUNCTION DoMapArbitraryCommand (view: TImageView): TCommand; EXTERNAL; 19 | 20 | FUNCTION DoLevelsCommand (view: TImageView): TCommand; EXTERNAL; 21 | 22 | FUNCTION DoBrightnessCommand (view: TImageView): TCommand; EXTERNAL; 23 | 24 | FUNCTION DoBalanceCommand (view: TImageView): TCommand; EXTERNAL; 25 | 26 | FUNCTION DoSaturationCommand (view: TImageView): TCommand; EXTERNAL; 27 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | #经典源码 2 | linux0.11,msdos,photoshop v1.0.1 3 | 关于72编程-72program 4 | 72编程学校专注于STEAM编程教育,致力于成为中国的42编程学校,让中国技术创新引领全球。 5 | 6 |

7 | =================深度交流================== 8 |

9 | 10 |

11 | 人生90%的机会来自于人脉和有效信息 12 |

13 | 14 |

15 | ================分微矩阵社区================ 16 |

17 | 18 |

19 | 20 | 21 | 22 | [分微社区公众号官网] 23 | 微信公众号(fenwii-tec):分微科技 24 | Github: https://github.com/fenwii 25 | Gitee: https://gitee.com/samir 26 | 27 | [分微技术社区] 28 | 头条,抖音: ChatGPT中国应用社区 29 | ChatGPT应用实践知识星球:ChatGPT中国应用社区 https://t.zsxq.com/0af53ee8J 30 | 编程技术交流知识星球:C语言C++汇编研究中心 https://t.zsxq.com/jeYVJuj 31 | 32 | 33 |

34 |

35 |

36 | ================分微矩阵社区================ 37 |

38 |

39 | =================深度交流================== 40 |

41 | 42 | 43 | # Star History 44 | 45 | [![Star History Chart](https://api.star-history.com/svg?repos=fenwii/classic_source_code&type=Date)](https://star-history.com/#fenwii/classic_source_code&Date) 46 | 47 | 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UTransfer.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UTransfer.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UTransfer; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, UBWDialog, UScreen; 21 | 22 | TYPE 23 | TTransferArray = ARRAY [0..20] OF INTEGER; 24 | 25 | PROCEDURE SolveTransfer (spec: TTransferSpec; 26 | VAR transfer: TTransferArray); 27 | 28 | PROCEDURE SetTransferFunction (VAR spec: TTransferSpec; 29 | VAR gamma: INTEGER); 30 | 31 | PROCEDURE SetTransferFunctions (VAR specs: TTransferSpecs; 32 | VAR gamma: INTEGER); 33 | 34 | IMPLEMENTATION 35 | 36 | {$I UTransfer.inc1.p} 37 | 38 | END. 39 | -------------------------------------------------------------------------------- /photoshop v1.0.1/ULZWCompress.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: ULZWCompress.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT ULZWCompress; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop; 19 | 20 | VAR 21 | lzwWordSize: INTEGER; 22 | 23 | PROCEDURE LZWCompress (codeSize: INTEGER; 24 | FUNCTION GetData (VAR pixel: INTEGER): BOOLEAN; 25 | PROCEDURE PutCodeWord (code: INTEGER); 26 | tiff: BOOLEAN); 27 | 28 | PROCEDURE LZWExpand (codeSize: INTEGER; 29 | errorCode: INTEGER; 30 | FUNCTION GetCodeWord: INTEGER; 31 | PROCEDURE PutData (pixel: INTEGER); 32 | tiff: BOOLEAN); 33 | 34 | IMPLEMENTATION 35 | 36 | {$I ULZWCompress.inc1.p} 37 | 38 | END. 39 | -------------------------------------------------------------------------------- /linux-0.11/kernel/math/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile for the FREAX-kernel character device drivers. 3 | # 4 | # Note! Dependencies are done automagically by 'make dep', which also 5 | # removes any old dependencies. DON'T put your own dependencies here 6 | # unless it's something special (ie not a .c file). 7 | # 8 | 9 | AR =gar 10 | AS =gas 11 | LD =gld 12 | LDFLAGS =-s -x 13 | CC =gcc 14 | CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -fcombine-regs \ 15 | -finline-functions -mstring-insns -nostdinc -I../../include 16 | CPP =gcc -E -nostdinc -I../../include 17 | 18 | .c.s: 19 | $(CC) $(CFLAGS) \ 20 | -S -o $*.s $< 21 | .s.o: 22 | $(AS) -c -o $*.o $< 23 | .c.o: 24 | $(CC) $(CFLAGS) \ 25 | -c -o $*.o $< 26 | 27 | OBJS = math_emulate.o 28 | 29 | math.a: $(OBJS) 30 | $(AR) rcs math.a $(OBJS) 31 | sync 32 | 33 | clean: 34 | rm -f core *.o *.a tmp_make 35 | for i in *.c;do rm -f `basename $$i .c`.s;done 36 | 37 | dep: 38 | sed '/\#\#\# Dependencies/q' < Makefile > tmp_make 39 | (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \ 40 | $(CPP) -M $$i;done) >> tmp_make 41 | cp tmp_make Makefile 42 | 43 | ### Dependencies: 44 | -------------------------------------------------------------------------------- /linux-0.11/fs/ioctl.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/fs/ioctl.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | 11 | #include 12 | 13 | extern int tty_ioctl(int dev, int cmd, int arg); 14 | 15 | typedef int (*ioctl_ptr)(int dev,int cmd,int arg); 16 | 17 | #define NRDEVS ((sizeof (ioctl_table))/(sizeof (ioctl_ptr))) 18 | 19 | static ioctl_ptr ioctl_table[]={ 20 | NULL, /* nodev */ 21 | NULL, /* /dev/mem */ 22 | NULL, /* /dev/fd */ 23 | NULL, /* /dev/hd */ 24 | tty_ioctl, /* /dev/ttyx */ 25 | tty_ioctl, /* /dev/tty */ 26 | NULL, /* /dev/lp */ 27 | NULL}; /* named pipes */ 28 | 29 | 30 | int sys_ioctl(unsigned int fd, unsigned int cmd, unsigned long arg) 31 | { 32 | struct file * filp; 33 | int dev,mode; 34 | 35 | if (fd >= NR_OPEN || !(filp = current->filp[fd])) 36 | return -EBADF; 37 | mode=filp->f_inode->i_mode; 38 | if (!S_ISCHR(mode) && !S_ISBLK(mode)) 39 | return -EINVAL; 40 | dev = filp->f_inode->i_zone[0]; 41 | if (MAJOR(dev) >= NRDEVS) 42 | return -ENODEV; 43 | if (!ioctl_table[MAJOR(dev)]) 44 | return -ENOTTY; 45 | return ioctl_table[MAJOR(dev)](dev,cmd,arg); 46 | } 47 | -------------------------------------------------------------------------------- /linux-0.11/include/ctype.h: -------------------------------------------------------------------------------- 1 | #ifndef _CTYPE_H 2 | #define _CTYPE_H 3 | 4 | #define _U 0x01 /* upper */ 5 | #define _L 0x02 /* lower */ 6 | #define _D 0x04 /* digit */ 7 | #define _C 0x08 /* cntrl */ 8 | #define _P 0x10 /* punct */ 9 | #define _S 0x20 /* white space (space/lf/tab) */ 10 | #define _X 0x40 /* hex digit */ 11 | #define _SP 0x80 /* hard space (0x20) */ 12 | 13 | extern unsigned char _ctype[]; 14 | extern char _ctmp; 15 | 16 | #define isalnum(c) ((_ctype+1)[c]&(_U|_L|_D)) 17 | #define isalpha(c) ((_ctype+1)[c]&(_U|_L)) 18 | #define iscntrl(c) ((_ctype+1)[c]&(_C)) 19 | #define isdigit(c) ((_ctype+1)[c]&(_D)) 20 | #define isgraph(c) ((_ctype+1)[c]&(_P|_U|_L|_D)) 21 | #define islower(c) ((_ctype+1)[c]&(_L)) 22 | #define isprint(c) ((_ctype+1)[c]&(_P|_U|_L|_D|_SP)) 23 | #define ispunct(c) ((_ctype+1)[c]&(_P)) 24 | #define isspace(c) ((_ctype+1)[c]&(_S)) 25 | #define isupper(c) ((_ctype+1)[c]&(_U)) 26 | #define isxdigit(c) ((_ctype+1)[c]&(_D|_X)) 27 | 28 | #define isascii(c) (((unsigned) c)<=0x7f) 29 | #define toascii(c) (((unsigned) c)&0x7f) 30 | 31 | #define tolower(c) (_ctmp=c,isupper(_ctmp)?_ctmp-('A'-'a'):_ctmp) 32 | #define toupper(c) (_ctmp=c,islower(_ctmp)?_ctmp-('a'-'A'):_ctmp) 33 | 34 | #endif 35 | -------------------------------------------------------------------------------- /linux-0.11/kernel/math/math_emulate.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/kernel/math/math_emulate.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | /* 8 | * This directory should contain the math-emulation code. 9 | * Currently only results in a signal. 10 | */ 11 | 12 | #include 13 | 14 | #include 15 | #include 16 | #include 17 | 18 | void math_emulate(long edi, long esi, long ebp, long sys_call_ret, 19 | long eax,long ebx,long ecx,long edx, 20 | unsigned short fs,unsigned short es,unsigned short ds, 21 | unsigned long eip,unsigned short cs,unsigned long eflags, 22 | unsigned short ss, unsigned long esp) 23 | { 24 | unsigned char first, second; 25 | 26 | /* 0x0007 means user code space */ 27 | if (cs != 0x000F) { 28 | printk("math_emulate: %04x:%08x\n\r",cs,eip); 29 | panic("Math emulation needed in kernel"); 30 | } 31 | first = get_fs_byte((char *)((*&eip)++)); 32 | second = get_fs_byte((char *)((*&eip)++)); 33 | printk("%04x:%08x %02x %02x\n\r",cs,eip-2,first,second); 34 | current->signal |= 1<<(SIGFPE-1); 35 | } 36 | 37 | void math_error(void) 38 | { 39 | __asm__("fnclex"); 40 | if (last_task_used_math) 41 | last_task_used_math->signal |= 1<<(SIGFPE-1); 42 | } 43 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UCalculate.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UCalculate.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitCalculate; EXTERNAL; 9 | 10 | FUNCTION DoDuplicateCommand (view: TImageView): TCommand; EXTERNAL; 11 | 12 | FUNCTION DoConstantCommand (view: TImageView): TCommand; EXTERNAL; 13 | 14 | FUNCTION DoCompositeCommand (view: TImageView): TCommand; EXTERNAL; 15 | 16 | FUNCTION DoBlendCommand (view: TImageView): TCommand; EXTERNAL; 17 | 18 | FUNCTION DoSubtractCommand (view: TImageView): TCommand; EXTERNAL; 19 | 20 | FUNCTION DoAddCommand (view: TImageView): TCommand; EXTERNAL; 21 | 22 | FUNCTION DoMultiplyCommand (view: TImageView): TCommand; EXTERNAL; 23 | 24 | FUNCTION DoLighterCommand (view: TImageView): TCommand; EXTERNAL; 25 | 26 | FUNCTION DoDarkerCommand (view: TImageView): TCommand; EXTERNAL; 27 | 28 | FUNCTION DoDifferenceCommand (view: TImageView): TCommand; EXTERNAL; 29 | 30 | FUNCTION DoScreenCommand (view: TImageView): TCommand; EXTERNAL; 31 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UPick.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UPick.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitPicker; EXTERNAL; 9 | 10 | FUNCTION PickerVisible: BOOLEAN; EXTERNAL; 11 | 12 | FUNCTION PickerBackground: BOOLEAN; EXTERNAL; 13 | 14 | PROCEDURE ShowPicker (visible: BOOLEAN); EXTERNAL; 15 | 16 | PROCEDURE TrackPickerCursor (mousePt: Point; 17 | spaceDown: BOOLEAN; 18 | shiftDown: BOOLEAN; 19 | optionDown: BOOLEAN; 20 | commandDown: BOOLEAN); EXTERNAL; 21 | 22 | PROCEDURE InvalidateGhostColors; EXTERNAL; 23 | 24 | PROCEDURE InvalidateCMYKPicker; EXTERNAL; 25 | 26 | PROCEDURE ResetGroundColors; EXTERNAL; 27 | 28 | FUNCTION DoSetColor (cube: BOOLEAN; 29 | index: INTEGER; 30 | VAR color: RGBColor): BOOLEAN; EXTERNAL; 31 | 32 | PROCEDURE DoSetForeground; EXTERNAL; 33 | 34 | PROCEDURE DoSetBackground; EXTERNAL; 35 | 36 | FUNCTION DoEyedropperTool (view: TImageView; 37 | background: BOOLEAN): TCommand; EXTERNAL; 38 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UCalculate.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UCalculate.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE DoCompositeBytes (forePtr: Ptr; 9 | backPtr: Ptr; 10 | maskPtr: Ptr; 11 | count: INTEGER); EXTERNAL; 12 | 13 | PROCEDURE DoBlendBytes (srcPtr: Ptr; 14 | dstPtr: Ptr; 15 | count: INTEGER; 16 | map1: TLookUpTable; 17 | map2: TLookUpTable); EXTERNAL; 18 | 19 | PROCEDURE DoSubtractBytes (srcPtr: Ptr; 20 | dstPtr: Ptr; 21 | count: INTEGER; 22 | scale: INTEGER; 23 | offset: INTEGER); EXTERNAL; 24 | 25 | PROCEDURE DoAddBytes (srcPtr: Ptr; 26 | dstPtr: Ptr; 27 | count: INTEGER; 28 | scale: INTEGER; 29 | offset: INTEGER); EXTERNAL; 30 | 31 | PROCEDURE DoMultiplyBytes (srcPtr: Ptr; 32 | dstPtr: Ptr; 33 | count: INTEGER); EXTERNAL; 34 | 35 | PROCEDURE DoScreenBytes (srcPtr: Ptr; 36 | dstPtr: Ptr; 37 | count: INTEGER); EXTERNAL; 38 | 39 | PROCEDURE DoDiffBytes (srcPtr: Ptr; 40 | dstPtr: Ptr; 41 | count: INTEGER); EXTERNAL; 42 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UScitexFormat.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UScitexFormat.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UScitexFormat; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, UBWDialog, URootFormat, UProgress; 21 | 22 | TYPE 23 | 24 | TScitexFormat = OBJECT (TRootFormat) 25 | 26 | PROCEDURE TScitexFormat.IImageFormat; OVERRIDE; 27 | 28 | FUNCTION TScitexFormat.CanWrite 29 | (doc: TImageDocument): BOOLEAN; OVERRIDE; 30 | 31 | PROCEDURE TScitexFormat.DoRead (doc: TImageDocument; 32 | refNum: INTEGER; 33 | rsrcExists: BOOLEAN); OVERRIDE; 34 | 35 | FUNCTION TScitexFormat.DataForkBytes 36 | (doc: TImageDocument): LONGINT; OVERRIDE; 37 | 38 | PROCEDURE TScitexFormat.DoWrite 39 | (doc: TImageDocument; refNum: INTEGER); OVERRIDE; 40 | 41 | END; 42 | 43 | IMPLEMENTATION 44 | 45 | {$I UScitexFormat.inc1.p} 46 | 47 | END. 48 | -------------------------------------------------------------------------------- /linux-0.11/lib/ctype.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/lib/ctype.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #include 8 | 9 | char _ctmp; 10 | unsigned char _ctype[] = {0x00, /* EOF */ 11 | _C,_C,_C,_C,_C,_C,_C,_C, /* 0-7 */ 12 | _C,_C|_S,_C|_S,_C|_S,_C|_S,_C|_S,_C,_C, /* 8-15 */ 13 | _C,_C,_C,_C,_C,_C,_C,_C, /* 16-23 */ 14 | _C,_C,_C,_C,_C,_C,_C,_C, /* 24-31 */ 15 | _S|_SP,_P,_P,_P,_P,_P,_P,_P, /* 32-39 */ 16 | _P,_P,_P,_P,_P,_P,_P,_P, /* 40-47 */ 17 | _D,_D,_D,_D,_D,_D,_D,_D, /* 48-55 */ 18 | _D,_D,_P,_P,_P,_P,_P,_P, /* 56-63 */ 19 | _P,_U|_X,_U|_X,_U|_X,_U|_X,_U|_X,_U|_X,_U, /* 64-71 */ 20 | _U,_U,_U,_U,_U,_U,_U,_U, /* 72-79 */ 21 | _U,_U,_U,_U,_U,_U,_U,_U, /* 80-87 */ 22 | _U,_U,_U,_P,_P,_P,_P,_P, /* 88-95 */ 23 | _P,_L|_X,_L|_X,_L|_X,_L|_X,_L|_X,_L|_X,_L, /* 96-103 */ 24 | _L,_L,_L,_L,_L,_L,_L,_L, /* 104-111 */ 25 | _L,_L,_L,_L,_L,_L,_L,_L, /* 112-119 */ 26 | _L,_L,_L,_P,_P,_P,_P,_C, /* 120-127 */ 27 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 128-143 */ 28 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 144-159 */ 29 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 160-175 */ 30 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 176-191 */ 31 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 192-207 */ 32 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 208-223 */ 33 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* 224-239 */ 34 | 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}; /* 240-255 */ 35 | 36 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UMacPaint.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UMacPaint.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UMacPaint; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, URootFormat, UCommands, UProgress; 21 | 22 | TYPE 23 | 24 | TMacPaintFormat = OBJECT (TRootFormat) 25 | 26 | fCenter: BOOLEAN; 27 | 28 | PROCEDURE TMacPaintFormat.IImageFormat; OVERRIDE; 29 | 30 | FUNCTION TMacPaintFormat.CanWrite 31 | (doc: TImageDocument): BOOLEAN; OVERRIDE; 32 | 33 | PROCEDURE TMacPaintFormat.SetFormatOptions 34 | (doc: TImageDocument); OVERRIDE; 35 | 36 | PROCEDURE TMacPaintFormat.DoRead 37 | (doc: TImageDocument; 38 | refNum: INTEGER; 39 | rsrcExists: BOOLEAN); OVERRIDE; 40 | 41 | PROCEDURE TMacPaintFormat.DoWrite 42 | (doc: TImageDocument; refNum: INTEGER); OVERRIDE; 43 | 44 | END; 45 | 46 | IMPLEMENTATION 47 | 48 | {$I UMacPaint.inc1.p} 49 | 50 | END. 51 | -------------------------------------------------------------------------------- /msdos/v20source/SYSMES.ASM: -------------------------------------------------------------------------------- 1 | TITLE Message file for MS-DOS SYS Program 2 | 3 | FALSE EQU 0 4 | TRUE EQU NOT FALSE 5 | 6 | INCLUDE DOSSYM.ASM 7 | 8 | Message MACRO label,text 9 | PUBLIC label,label&Len 10 | label DB text 11 | label&Len DW $-label 12 | ENDM 13 | 14 | 15 | IBMJAPVER EQU FALSE 16 | 17 | CONST SEGMENT PUBLIC BYTE 18 | 19 | ; only this message must be terminated with a $ 20 | PUBLIC BadVer 21 | BADVER DB "Incorrect DOS version",13,10,"$" 22 | 23 | IF IBMJAPVER 24 | Message BadDisk,<"Destination disk cannot be booted"> 25 | ENDIF 26 | 27 | Message BadDrv,<"Invalid drive specification"> 28 | Message BadParm,<"Invalid parameter"> 29 | Message NoDest,<"No room for system on destination disk"> 30 | Message BadSiz,<"Incompatible system size"> 31 | Message Done,<"System transferred"> 32 | 33 | PUBLIC GetSys,SysDrv,GetSysLen 34 | GETSYS DB "Insert system disk in drive " 35 | SYSDRV DB "A",13,10 36 | DB "and strike any key when ready",13,10 37 | GetSysLen DW GetSysLen-GetSys 38 | 39 | CONST ENDS 40 | 41 | DATA SEGMENT BYTE PUBLIC 42 | DATA ENDS 43 | 44 | CODE SEGMENT 45 | DG GROUP CODE,CONST,DATA 46 | ASSUME CS:DG,DS:DG,ES:DG,SS:DG 47 | 48 | CODE ENDS 49 | END 50 | 51 |  -------------------------------------------------------------------------------- /msdos/v20source/DEBEQU.ASM: -------------------------------------------------------------------------------- 1 | FALSE EQU 0 2 | TRUE EQU NOT FALSE 3 | 4 | IBMVER EQU true ; Set conditional switches 5 | MSVER EQU false 6 | 7 | SYSVER EQU FALSE ; if true, i/o direct to bios 8 | ; so DOS can be debugged 9 | IBMJAPAN EQU FALSE 10 | 11 | SETCNTC EQU TRUE ; If this is FALSE, DEBUG will not set 12 | ; the Control C int vector 13 | 14 | ZIBO EQU TRUE ; true if P traces over interrupts 15 | ; and calls and dump looks pretty 16 | PROMPT EQU "-" 17 | FCB EQU 5CH 18 | EXEFCB EQU FCB 19 | BUFLEN EQU 80 ; Maximum length of line input buffer 20 | BPMAX EQU 10 ; Maximum number of breakpoints 21 | BPLEN EQU 5*BPMAX ; Length of breakpoint table 22 | REGTABLEN EQU 14 ; Number of registers 23 | SEGDIF EQU 0 24 | BUFSIZ EQU 512 25 | 26 | BXREG EQU "B"+5800H ; "BX" 27 | BPREG EQU "B"+5000H ; "BP" 28 | SIREG EQU "S"+4900H ; "SI" 29 | DIREG EQU "D"+4900H ; "DI" 30 | COMMA EQU 2C00H 31 | OPBUFLEN EQU 35 32 |  -------------------------------------------------------------------------------- /msdos/v20source/STDSW.ASM: -------------------------------------------------------------------------------- 1 | TRUE EQU 0FFFFH 2 | FALSE EQU NOT TRUE 3 | 4 | ; Use the switches below to produce the standard Microsoft version or the IBM 5 | ; version of the operating system 6 | MSVER EQU false 7 | IBM EQU true 8 | WANG EQU FALSE 9 | ALTVECT EQU FALSE 10 | 11 | ; Set this switch to cause DOS to move itself to the end of memory 12 | HIGHMEM EQU FALSE 13 | 14 | IF IBM 15 | ESCCH EQU 0 ; character to begin escape seq. 16 | CANCEL EQU 27 17 | TOGLINS EQU TRUE ;One key toggles insert mode 18 | TOGLPRN EQU TRUE ;One key toggles printer echo 19 | ZEROEXT EQU TRUE 20 | ELSE 21 | IF WANG ;Are we assembling for WANG? 22 | ESCCH EQU 1FH ;Yes. Use 1FH for escape character 23 | ELSE 24 | ESCCH EQU 1BH 25 | ENDIF 26 | CANCEL EQU "X"-"@" ;Cancel with Ctrl-X 27 | TOGLINS EQU WANG ;Separate keys for insert mode on 28 | ;and off if not WANG 29 | TOGLPRN EQU FALSE ;Separate keys for printer echo on 30 | ;and off 31 | ZEROEXT EQU TRUE 32 | ENDIF 33 | 34 |  -------------------------------------------------------------------------------- /linux-0.11/fs/stat.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/fs/stat.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #include 8 | #include 9 | 10 | #include 11 | #include 12 | #include 13 | #include 14 | 15 | static void cp_stat(struct m_inode * inode, struct stat * statbuf) 16 | { 17 | struct stat tmp; 18 | int i; 19 | 20 | verify_area(statbuf,sizeof (* statbuf)); 21 | tmp.st_dev = inode->i_dev; 22 | tmp.st_ino = inode->i_num; 23 | tmp.st_mode = inode->i_mode; 24 | tmp.st_nlink = inode->i_nlinks; 25 | tmp.st_uid = inode->i_uid; 26 | tmp.st_gid = inode->i_gid; 27 | tmp.st_rdev = inode->i_zone[0]; 28 | tmp.st_size = inode->i_size; 29 | tmp.st_atime = inode->i_atime; 30 | tmp.st_mtime = inode->i_mtime; 31 | tmp.st_ctime = inode->i_ctime; 32 | for (i=0 ; i= NR_OPEN || !(f=current->filp[fd]) || !(inode=f->f_inode)) 53 | return -EBADF; 54 | cp_stat(inode,statbuf); 55 | return 0; 56 | } 57 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UTarga.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UTarga.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UTarga; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, URootFormat, UProgress; 21 | 22 | TYPE 23 | 24 | TTargaFormat = OBJECT (TRootFormat) 25 | 26 | fDepth: INTEGER; 27 | 28 | PROCEDURE TTargaFormat.IImageFormat; OVERRIDE; 29 | 30 | FUNCTION TTargaFormat.CanWrite 31 | (doc: TImageDocument): BOOLEAN; OVERRIDE; 32 | 33 | PROCEDURE TTargaFormat.SetFormatOptions 34 | (doc: TImageDocument); OVERRIDE; 35 | 36 | PROCEDURE TTargaFormat.DoRead (doc: TImageDocument; 37 | refNum: INTEGER; 38 | rsrcExists: BOOLEAN); OVERRIDE; 39 | 40 | FUNCTION TTargaFormat.DataForkBytes 41 | (doc: TImageDocument): LONGINT; OVERRIDE; 42 | 43 | PROCEDURE TTargaFormat.DoWrite (doc: TImageDocument; 44 | refNum: INTEGER); OVERRIDE; 45 | 46 | END; 47 | 48 | IMPLEMENTATION 49 | 50 | {$I UTarga.inc1.p} 51 | 52 | END. 53 | -------------------------------------------------------------------------------- /linux-0.11/fs/truncate.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/fs/truncate.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #include 8 | 9 | #include 10 | 11 | static void free_ind(int dev,int block) 12 | { 13 | struct buffer_head * bh; 14 | unsigned short * p; 15 | int i; 16 | 17 | if (!block) 18 | return; 19 | if (bh=bread(dev,block)) { 20 | p = (unsigned short *) bh->b_data; 21 | for (i=0;i<512;i++,p++) 22 | if (*p) 23 | free_block(dev,*p); 24 | brelse(bh); 25 | } 26 | free_block(dev,block); 27 | } 28 | 29 | static void free_dind(int dev,int block) 30 | { 31 | struct buffer_head * bh; 32 | unsigned short * p; 33 | int i; 34 | 35 | if (!block) 36 | return; 37 | if (bh=bread(dev,block)) { 38 | p = (unsigned short *) bh->b_data; 39 | for (i=0;i<512;i++,p++) 40 | if (*p) 41 | free_ind(dev,*p); 42 | brelse(bh); 43 | } 44 | free_block(dev,block); 45 | } 46 | 47 | void truncate(struct m_inode * inode) 48 | { 49 | int i; 50 | 51 | if (!(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode))) 52 | return; 53 | for (i=0;i<7;i++) 54 | if (inode->i_zone[i]) { 55 | free_block(inode->i_dev,inode->i_zone[i]); 56 | inode->i_zone[i]=0; 57 | } 58 | free_ind(inode->i_dev,inode->i_zone[7]); 59 | free_dind(inode->i_dev,inode->i_zone[8]); 60 | inode->i_zone[7] = inode->i_zone[8] = 0; 61 | inode->i_size = 0; 62 | inode->i_dirt = 1; 63 | inode->i_mtime = inode->i_ctime = CURRENT_TIME; 64 | } 65 | 66 | -------------------------------------------------------------------------------- /photoshop v1.0.1/URawFormat.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: URawFormat.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT URawFormat; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, UBWDialog, URootFormat, UProgress; 21 | 22 | TYPE 23 | 24 | TRawFormat = OBJECT (TRootFormat) 25 | 26 | fHeader: LONGINT; 27 | 28 | fInterleaved: BOOLEAN; 29 | 30 | PROCEDURE TRawFormat.IImageFormat; OVERRIDE; 31 | 32 | FUNCTION TRawFormat.CanWrite 33 | (doc: TImageDocument): BOOLEAN; OVERRIDE; 34 | 35 | PROCEDURE TRawFormat.SetFormatOptions (doc: TImageDocument); OVERRIDE; 36 | 37 | PROCEDURE TRawFormat.DoRead (doc: TImageDocument; 38 | refNum: INTEGER; 39 | rsrcExists: BOOLEAN); OVERRIDE; 40 | 41 | FUNCTION TRawFormat.DataForkBytes 42 | (doc: TImageDocument): LONGINT; OVERRIDE; 43 | 44 | PROCEDURE TRawFormat.DoWrite 45 | (doc: TImageDocument; refNum: INTEGER); OVERRIDE; 46 | 47 | END; 48 | 49 | IMPLEMENTATION 50 | 51 | {$I URawFormat.inc1.p} 52 | 53 | END. 54 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UGIFFormat.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UGIFFormat.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UGIFFormat; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, URootFormat, ULZWCompress, UProgress; 21 | 22 | TYPE 23 | 24 | TGIFFormat = OBJECT (TRootFormat) 25 | 26 | fDepth: INTEGER; 27 | 28 | PROCEDURE TGIFFormat.IImageFormat; OVERRIDE; 29 | 30 | FUNCTION TGIFFormat.CanWrite 31 | (doc: TImageDocument): BOOLEAN; OVERRIDE; 32 | 33 | PROCEDURE TGIFFormat.SetFormatOptions 34 | (doc: TImageDocument); OVERRIDE; 35 | 36 | PROCEDURE TGIFFormat.ReadRaster (canAbort: BOOLEAN); 37 | 38 | PROCEDURE TGIFFormat.DoRead 39 | (doc: TImageDocument; 40 | refNum: INTEGER; 41 | rsrcExists: BOOLEAN); OVERRIDE; 42 | 43 | PROCEDURE TGIFFormat.WriteRaster (doc: TImageDocument); 44 | 45 | PROCEDURE TGIFFormat.DoWrite 46 | (doc: TImageDocument; refNum: INTEGER); OVERRIDE; 47 | 48 | END; 49 | 50 | IMPLEMENTATION 51 | 52 | {$I UGIFFormat.inc1.p} 53 | 54 | END. 55 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UFloat.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UFloat.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitFloatCommands; EXTERNAL; 9 | 10 | FUNCTION GetClipSize (VAR width: INTEGER; 11 | VAR height: INTEGER; 12 | VAR resolution: FixedScaled; 13 | VAR color: BOOLEAN): BOOLEAN; EXTERNAL; 14 | 15 | FUNCTION DoMoveSelection (view: TImageView; 16 | duplicate: BOOLEAN; 17 | outline: BOOLEAN; 18 | VAR hysteresis: Point): TCommand; EXTERNAL; 19 | 20 | FUNCTION DoNudgeSelection (view: TImageView; 21 | nudge: Point; 22 | duplicate: BOOLEAN; 23 | outline: BOOLEAN): TCommand; EXTERNAL; 24 | 25 | FUNCTION ConvertPICTDeskScrap (size: LONGINT): TView; EXTERNAL; 26 | 27 | FUNCTION DoCutCopyCommand (view: TImageView; 28 | duplicate: BOOLEAN): TCommand; EXTERNAL; 29 | 30 | FUNCTION DoPasteCommand (view: TImageView; 31 | pasteMode: INTEGER): TCommand; EXTERNAL; 32 | 33 | FUNCTION DoClearCommand (view: TImageView): TCommand; EXTERNAL; 34 | 35 | FUNCTION DoFillCommand (view: TImageView; 36 | options: BOOLEAN): TCommand; EXTERNAL; 37 | 38 | FUNCTION DoGradientTool (view: TImageView): TCommand; EXTERNAL; 39 | 40 | PROCEDURE DoGradientOptions; EXTERNAL; 41 | -------------------------------------------------------------------------------- /linux-0.11/include/linux/config.h: -------------------------------------------------------------------------------- 1 | #ifndef _CONFIG_H 2 | #define _CONFIG_H 3 | 4 | /* 5 | * The root-device is no longer hard-coded. You can change the default 6 | * root-device by changing the line ROOT_DEV = XXX in boot/bootsect.s 7 | */ 8 | 9 | /* 10 | * define your keyboard here - 11 | * KBD_FINNISH for Finnish keyboards 12 | * KBD_US for US-type 13 | * KBD_GR for German keyboards 14 | * KBD_FR for Frech keyboard 15 | */ 16 | /*#define KBD_US */ 17 | /*#define KBD_GR */ 18 | /*#define KBD_FR */ 19 | #define KBD_FINNISH 20 | 21 | /* 22 | * Normally, Linux can get the drive parameters from the BIOS at 23 | * startup, but if this for some unfathomable reason fails, you'd 24 | * be left stranded. For this case, you can define HD_TYPE, which 25 | * contains all necessary info on your harddisk. 26 | * 27 | * The HD_TYPE macro should look like this: 28 | * 29 | * #define HD_TYPE { head, sect, cyl, wpcom, lzone, ctl} 30 | * 31 | * In case of two harddisks, the info should be sepatated by 32 | * commas: 33 | * 34 | * #define HD_TYPE { h,s,c,wpcom,lz,ctl },{ h,s,c,wpcom,lz,ctl } 35 | */ 36 | /* 37 | This is an example, two drives, first is type 2, second is type 3: 38 | 39 | #define HD_TYPE { 4,17,615,300,615,8 }, { 6,17,615,300,615,0 } 40 | 41 | NOTE: ctl is 0 for all drives with heads<=8, and ctl=8 for drives 42 | with more than 8 heads. 43 | 44 | If you want the BIOS to tell what kind of drive you have, just 45 | leave HD_TYPE undefined. This is the normal thing to do. 46 | */ 47 | 48 | #endif 49 | -------------------------------------------------------------------------------- /linux-0.11/include/errno.h: -------------------------------------------------------------------------------- 1 | #ifndef _ERRNO_H 2 | #define _ERRNO_H 3 | 4 | /* 5 | * ok, as I hadn't got any other source of information about 6 | * possible error numbers, I was forced to use the same numbers 7 | * as minix. 8 | * Hopefully these are posix or something. I wouldn't know (and posix 9 | * isn't telling me - they want $$$ for their f***ing standard). 10 | * 11 | * We don't use the _SIGN cludge of minix, so kernel returns must 12 | * see to the sign by themselves. 13 | * 14 | * NOTE! Remember to change strerror() if you change this file! 15 | */ 16 | 17 | extern int errno; 18 | 19 | #define ERROR 99 20 | #define EPERM 1 21 | #define ENOENT 2 22 | #define ESRCH 3 23 | #define EINTR 4 24 | #define EIO 5 25 | #define ENXIO 6 26 | #define E2BIG 7 27 | #define ENOEXEC 8 28 | #define EBADF 9 29 | #define ECHILD 10 30 | #define EAGAIN 11 31 | #define ENOMEM 12 32 | #define EACCES 13 33 | #define EFAULT 14 34 | #define ENOTBLK 15 35 | #define EBUSY 16 36 | #define EEXIST 17 37 | #define EXDEV 18 38 | #define ENODEV 19 39 | #define ENOTDIR 20 40 | #define EISDIR 21 41 | #define EINVAL 22 42 | #define ENFILE 23 43 | #define EMFILE 24 44 | #define ENOTTY 25 45 | #define ETXTBSY 26 46 | #define EFBIG 27 47 | #define ENOSPC 28 48 | #define ESPIPE 29 49 | #define EROFS 30 50 | #define EMLINK 31 51 | #define EPIPE 32 52 | #define EDOM 33 53 | #define ERANGE 34 54 | #define EDEADLK 35 55 | #define ENAMETOOLONG 36 56 | #define ENOLCK 37 57 | #define ENOSYS 38 58 | #define ENOTEMPTY 39 59 | 60 | #endif 61 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UFilters.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UFilters.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UFilters; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UProgress; 21 | 22 | CONST 23 | cFacetPass1 = -1; 24 | cFacetPass2 = -2; 25 | cFacetPass3 = -3; 26 | cFacetPass4 = -4; 27 | cDiffuseDarken = -5; 28 | cDiffuseLighten = -6; 29 | cSelectFringeNarrow = -7; 30 | cSelectFringeWide = -8; 31 | 32 | kMaxParameters = 27; 33 | 34 | VAR 35 | gFilterParameter: ARRAY [1..kMaxParameters] OF LONGINT; 36 | 37 | PROCEDURE GaussianFilter (data: TVMArray; 38 | VAR r: Rect; 39 | width: INTEGER; 40 | quick: BOOLEAN; 41 | canAbort: BOOLEAN); 42 | 43 | PROCEDURE MinOrMaxFilter (srcArray: TVMArray; 44 | dstArray: TVMArray; 45 | r: Rect; 46 | radius: INTEGER; 47 | maxFlag: BOOLEAN; 48 | alternate: BOOLEAN); 49 | 50 | PROCEDURE Do3by3Filter (srcArray: TVMArray; 51 | dstArray: TVMArray; 52 | r: Rect; 53 | which: INTEGER); 54 | 55 | IMPLEMENTATION 56 | 57 | {$I UFilters.inc1.p} 58 | 59 | END. 60 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UGhost.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UGhost.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UGhost; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD} 18 | PaletteMgr, SysEqu, Traps, UPatch; 19 | 20 | TYPE 21 | 22 | TGhostWindow = OBJECT (TWindow) 23 | 24 | fClosed: BOOLEAN; 25 | 26 | PROCEDURE TGhostWindow.ShowGhost (visible: BOOLEAN); 27 | 28 | PROCEDURE TGhostWindow.Close; OVERRIDE; 29 | 30 | PROCEDURE TGhostWindow.MoveByUser (startPt: Point); OVERRIDE; 31 | 32 | PROCEDURE TGhostWindow.UpdateEvent; OVERRIDE; 33 | 34 | END; 35 | 36 | PROCEDURE InitGhosts; 37 | 38 | PROCEDURE MoveGhostsForward; 39 | 40 | FUNCTION FrontVisible: WindowPtr; 41 | 42 | FUNCTION IsGhostWindow (wp: WindowPtr): BOOLEAN; 43 | 44 | PROCEDURE MakeIntoGhost (wp: WindowPtr; ghost: BOOLEAN); 45 | 46 | PROCEDURE HiliteGhosts (state: BOOLEAN); 47 | 48 | PROCEDURE MySelectWindow (theWindow: WindowPtr); 49 | 50 | PROCEDURE MyDragWindow (theWindow: WindowPtr; startPt: Point; bounds: Rect); 51 | 52 | FUNCTION ToggleGhosts: BOOLEAN; 53 | 54 | FUNCTION NewGhostWindow (itsRsrcID: INTEGER; itsView: TView): TWindow; 55 | 56 | IMPLEMENTATION 57 | 58 | {$I UGhost.inc1.p} 59 | 60 | END. 61 | -------------------------------------------------------------------------------- /linux-0.11/include/sys/stat.h: -------------------------------------------------------------------------------- 1 | #ifndef _SYS_STAT_H 2 | #define _SYS_STAT_H 3 | 4 | #include 5 | 6 | struct stat { 7 | dev_t st_dev; 8 | ino_t st_ino; 9 | umode_t st_mode; 10 | nlink_t st_nlink; 11 | uid_t st_uid; 12 | gid_t st_gid; 13 | dev_t st_rdev; 14 | off_t st_size; 15 | time_t st_atime; 16 | time_t st_mtime; 17 | time_t st_ctime; 18 | }; 19 | 20 | #define S_IFMT 00170000 21 | #define S_IFREG 0100000 22 | #define S_IFBLK 0060000 23 | #define S_IFDIR 0040000 24 | #define S_IFCHR 0020000 25 | #define S_IFIFO 0010000 26 | #define S_ISUID 0004000 27 | #define S_ISGID 0002000 28 | #define S_ISVTX 0001000 29 | 30 | #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) 31 | #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) 32 | #define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR) 33 | #define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK) 34 | #define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO) 35 | 36 | #define S_IRWXU 00700 37 | #define S_IRUSR 00400 38 | #define S_IWUSR 00200 39 | #define S_IXUSR 00100 40 | 41 | #define S_IRWXG 00070 42 | #define S_IRGRP 00040 43 | #define S_IWGRP 00020 44 | #define S_IXGRP 00010 45 | 46 | #define S_IRWXO 00007 47 | #define S_IROTH 00004 48 | #define S_IWOTH 00002 49 | #define S_IXOTH 00001 50 | 51 | extern int chmod(const char *_path, mode_t mode); 52 | extern int fstat(int fildes, struct stat *stat_buf); 53 | extern int mkdir(const char *_path, mode_t mode); 54 | extern int mkfifo(const char *_path, mode_t mode); 55 | extern int stat(const char *filename, struct stat *stat_buf); 56 | extern mode_t umask(mode_t mask); 57 | 58 | #endif 59 | -------------------------------------------------------------------------------- /msdos/v20source/FINDMES.ASM: -------------------------------------------------------------------------------- 1 | title FIND Messages 2 | 3 | 4 | CR equ 0dh ;A Carriage Return 5 | LF equ 0ah ;A Line Feed 6 | 7 | code segment public 8 | 9 | PUBLIC bad_vers,crlf,errmsg1,errlen1,errmsg2,errlen2 10 | PUBLIC errmsg3_pre,errlen3_pre,errmsg4_pre,errlen4_pre 11 | PUBLIC errmsg3_post,errlen3_post,errmsg4_post,errlen4_post 12 | PUBLIC errmsg5,errlen5,errmsg5_opt 13 | PUBLIC heading,heading_len 14 | 15 | bad_vers db "Incorrect DOS version$" 16 | crlf db CR,LF 17 | 18 | errmsg1 db "FIND: Invalid number of parameters",CR,LF 19 | errlen1 db $ - errmsg1 20 | 21 | errmsg2 db "FIND: Syntax error",CR,LF 22 | errlen2 db $ - errmsg2 23 | 24 | ;"errmsg3_preerrmsg3_post" 25 | errmsg3_pre db "FIND: File not found " 26 | errlen3_pre db $ - errmsg3_pre 27 | errmsg3_post db CR,LF 28 | errlen3_post db $ - errmsg3_post 29 | 30 | ;"errmsg4_preerrmsg4_post" 31 | errmsg4_pre db "FIND: Read error in " 32 | errlen4_pre db $ - errmsg4_pre 33 | errmsg4_post db CR,LF 34 | errlen4_post db $ - errmsg4_post 35 | 36 | errmsg5 db "FIND: Invalid Parameter " 37 | errmsg5_opt db ? 38 | errlen5 db $ - errmsg5 39 | 40 | heading db CR,LF,"---------- " 41 | heading_len db $ - heading 42 | 43 | code ends 44 | end 45 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UAbout.a: -------------------------------------------------------------------------------- 1 | ;Photoshop version 1.0.1, file: UAbout.a 2 | ; Computer History Museum, www.computerhistory.org 3 | ; This material is (C)Copyright 1990 Adobe Systems Inc. 4 | ; It may not be distributed to third parties. 5 | ; It is licensed for non-commercial use according to 6 | ; www.computerhistory.org/softwarelicense/photoshop/ 7 | 8 | INCLUDE 'Traps.a' 9 | INCLUDE 'QuickEqu.a' 10 | 11 | ; ********************************************************************** 12 | 13 | SEG 'ADoAbout' 14 | 15 | CodedChecksum PROC EXPORT 16 | 17 | ; Calling sequence (Pascal conventions): 18 | ; 19 | ; FUNCTION CodedChecksum (srcPtr: Ptr; 20 | ; count: INTEGER): LONGINT; 21 | ; 22 | ; Parameter Offsets 23 | 24 | @result EQU 14 25 | @srcPtr EQU 10 26 | @count EQU 8 27 | 28 | ; Size of parameters 29 | 30 | @params EQU 6 31 | 32 | ; Save registers 33 | 34 | LINK A6,#0 35 | MOVEM.L A4/D5-D7,-(SP) 36 | 37 | ; Unload parameters 38 | 39 | MOVE.L @srcPtr(A6),A4 40 | MOVE.W @count(A6),D7 41 | SUB.W #1,D7 42 | 43 | ; Loop though bytes 44 | 45 | CLR.L D6 46 | @1 CLR.W D5 47 | MOVE.B (A4)+,D5 48 | ADD.W #1,D5 49 | CLR.W -(SP) 50 | _Random 51 | MULU.W (SP)+,D5 52 | ADD.L D5,D6 53 | DBF D7,@1 54 | 55 | ; Return result 56 | 57 | MOVE.L D6,@result(A6) 58 | 59 | ; Clean up and exit 60 | 61 | MOVEM.L (SP)+,A4/D5-D7 62 | UNLK A6 63 | MOVE.L (SP)+,A0 64 | ADD.W #@params,SP 65 | JMP (A0) 66 | 67 | ; ********************************************************************** 68 | 69 | END 70 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UThunderScan.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UThunderScan.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UThunderScan; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, UBWDialog, URootFormat, UProgress; 21 | 22 | TYPE 23 | 24 | TThunderScanFormat = OBJECT (TRootFormat) 25 | 26 | fDepth: INTEGER; 27 | 28 | PROCEDURE TThunderScanFormat.IImageFormat; OVERRIDE; 29 | 30 | FUNCTION TThunderScanFormat.CanWrite 31 | (doc: TImageDocument): BOOLEAN; OVERRIDE; 32 | 33 | PROCEDURE TThunderScanFormat.SetFormatOptions 34 | (doc: TImageDocument); OVERRIDE; 35 | 36 | PROCEDURE TThunderScanFormat.ReadSCANLine 37 | (doc: TImageDocument; 38 | row: INTEGER); 39 | 40 | PROCEDURE TThunderScanFormat.DoRead 41 | (doc: TImageDocument; 42 | refNum: INTEGER; 43 | rsrcExists: BOOLEAN); OVERRIDE; 44 | 45 | FUNCTION TThunderScanFormat.DataForkBytes 46 | (doc: TImageDocument): LONGINT; OVERRIDE; 47 | 48 | PROCEDURE TThunderScanFormat.DoWrite 49 | (doc: TImageDocument; refNum: INTEGER); OVERRIDE; 50 | 51 | END; 52 | 53 | IMPLEMENTATION 54 | 55 | {$I UThunderScan.inc1.p} 56 | 57 | END. 58 | -------------------------------------------------------------------------------- /linux-0.11/include/fcntl.h: -------------------------------------------------------------------------------- 1 | #ifndef _FCNTL_H 2 | #define _FCNTL_H 3 | 4 | #include 5 | 6 | /* open/fcntl - NOCTTY, NDELAY isn't implemented yet */ 7 | #define O_ACCMODE 00003 8 | #define O_RDONLY 00 9 | #define O_WRONLY 01 10 | #define O_RDWR 02 11 | #define O_CREAT 00100 /* not fcntl */ 12 | #define O_EXCL 00200 /* not fcntl */ 13 | #define O_NOCTTY 00400 /* not fcntl */ 14 | #define O_TRUNC 01000 /* not fcntl */ 15 | #define O_APPEND 02000 16 | #define O_NONBLOCK 04000 /* not fcntl */ 17 | #define O_NDELAY O_NONBLOCK 18 | 19 | /* Defines for fcntl-commands. Note that currently 20 | * locking isn't supported, and other things aren't really 21 | * tested. 22 | */ 23 | #define F_DUPFD 0 /* dup */ 24 | #define F_GETFD 1 /* get f_flags */ 25 | #define F_SETFD 2 /* set f_flags */ 26 | #define F_GETFL 3 /* more flags (cloexec) */ 27 | #define F_SETFL 4 28 | #define F_GETLK 5 /* not implemented */ 29 | #define F_SETLK 6 30 | #define F_SETLKW 7 31 | 32 | /* for F_[GET|SET]FL */ 33 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ 34 | 35 | /* Ok, these are locking features, and aren't implemented at any 36 | * level. POSIX wants them. 37 | */ 38 | #define F_RDLCK 0 39 | #define F_WRLCK 1 40 | #define F_UNLCK 2 41 | 42 | /* Once again - not implemented, but ... */ 43 | struct flock { 44 | short l_type; 45 | short l_whence; 46 | off_t l_start; 47 | off_t l_len; 48 | pid_t l_pid; 49 | }; 50 | 51 | extern int creat(const char * filename,mode_t mode); 52 | extern int fcntl(int fildes,int cmd, ...); 53 | extern int open(const char * filename, int flags, ...); 54 | 55 | #endif 56 | -------------------------------------------------------------------------------- /linux-0.11/include/asm/segment.h: -------------------------------------------------------------------------------- 1 | extern inline unsigned char get_fs_byte(const char * addr) 2 | { 3 | unsigned register char _v; 4 | 5 | __asm__ ("movb %%fs:%1,%0":"=r" (_v):"m" (*addr)); 6 | return _v; 7 | } 8 | 9 | extern inline unsigned short get_fs_word(const unsigned short *addr) 10 | { 11 | unsigned short _v; 12 | 13 | __asm__ ("movw %%fs:%1,%0":"=r" (_v):"m" (*addr)); 14 | return _v; 15 | } 16 | 17 | extern inline unsigned long get_fs_long(const unsigned long *addr) 18 | { 19 | unsigned long _v; 20 | 21 | __asm__ ("movl %%fs:%1,%0":"=r" (_v):"m" (*addr)); \ 22 | return _v; 23 | } 24 | 25 | extern inline void put_fs_byte(char val,char *addr) 26 | { 27 | __asm__ ("movb %0,%%fs:%1"::"r" (val),"m" (*addr)); 28 | } 29 | 30 | extern inline void put_fs_word(short val,short * addr) 31 | { 32 | __asm__ ("movw %0,%%fs:%1"::"r" (val),"m" (*addr)); 33 | } 34 | 35 | extern inline void put_fs_long(unsigned long val,unsigned long * addr) 36 | { 37 | __asm__ ("movl %0,%%fs:%1"::"r" (val),"m" (*addr)); 38 | } 39 | 40 | /* 41 | * Someone who knows GNU asm better than I should double check the followig. 42 | * It seems to work, but I don't know if I'm doing something subtly wrong. 43 | * --- TYT, 11/24/91 44 | * [ nothing wrong here, Linus ] 45 | */ 46 | 47 | extern inline unsigned long get_fs() 48 | { 49 | unsigned short _v; 50 | __asm__("mov %%fs,%%ax":"=a" (_v):); 51 | return _v; 52 | } 53 | 54 | extern inline unsigned long get_ds() 55 | { 56 | unsigned short _v; 57 | __asm__("mov %%ds,%%ax":"=a" (_v):); 58 | return _v; 59 | } 60 | 61 | extern inline void set_fs(unsigned long val) 62 | { 63 | __asm__("mov %0,%%fs"::"a" ((unsigned short) val)); 64 | } 65 | 66 | -------------------------------------------------------------------------------- /msdos/v20source/PROHST.HLP: -------------------------------------------------------------------------------- 1 | PROHST is a preliminary version of a utility to process the profile 2 | file produced by the PROFIL utility of MSDOS. 3 | Those of you familiar with MS-Pascal or MS-Fortran will have little 4 | difficulty in understanding how the parameters work. There are three, 5 | the .PRF filename, an optional histogram file (default extension .HST, 6 | default name same as the .PRF file) and an optional link map. If the 7 | link map was produced with the line number options PROHST will try 8 | and relate buckets to line numbers. Otherwise, it will relate it to 9 | module offsets. If you specify no map file (the default), addresses 10 | relative to the start of the program will be used. The default extension 11 | for the map file is .MAP. 12 | 13 | a:prohst f; 14 | 15 | this will produce a histogram for the file f.prf in f.hst and no map file 16 | will be assumed. 17 | 18 | a:prohst f,,; 19 | 20 | this will produce a histogram for f.prf in f.hst and expects a f.map file. 21 | 22 | a:prohst f,g,k 23 | 24 | this produces a histogram for f.prf in g.hst and expects a map file k.map. 25 | 26 | Note that if you select the map option with line numbers, the program will 27 | appear to be looping. Never fear, go and have lunch or some other time 28 | consuming pastime, and you will be suprised how long it took to produce 29 | such a small file. Also, some of the line number/bucket correspondances are 30 | not what they might be. Future version shoudl fix this. If you make a better 31 | version, be sure to let me have a copy. 32 | 33 | David Jones. 34 | 35 |  -------------------------------------------------------------------------------- /linux-0.11/kernel/chr_drv/serial.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/kernel/serial.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | /* 8 | * serial.c 9 | * 10 | * This module implements the rs232 io functions 11 | * void rs_write(struct tty_struct * queue); 12 | * void rs_init(void); 13 | * and all interrupts pertaining to serial IO. 14 | */ 15 | 16 | #include 17 | #include 18 | #include 19 | #include 20 | 21 | #define WAKEUP_CHARS (TTY_BUF_SIZE/4) 22 | 23 | extern void rs1_interrupt(void); 24 | extern void rs2_interrupt(void); 25 | 26 | static void init(int port) 27 | { 28 | outb_p(0x80,port+3); /* set DLAB of line control reg */ 29 | outb_p(0x30,port); /* LS of divisor (48 -> 2400 bps */ 30 | outb_p(0x00,port+1); /* MS of divisor */ 31 | outb_p(0x03,port+3); /* reset DLAB */ 32 | outb_p(0x0b,port+4); /* set DTR,RTS, OUT_2 */ 33 | outb_p(0x0d,port+1); /* enable all intrs but writes */ 34 | (void)inb(port); /* read data port to reset things (?) */ 35 | } 36 | 37 | void rs_init(void) 38 | { 39 | set_intr_gate(0x24,rs1_interrupt); 40 | set_intr_gate(0x23,rs2_interrupt); 41 | init(tty_table[1].read_q.data); 42 | init(tty_table[2].read_q.data); 43 | outb(inb_p(0x21)&0xE7,0x21); 44 | } 45 | 46 | /* 47 | * This routine gets called when tty_write has put something into 48 | * the write_queue. It must check wheter the queue is empty, and 49 | * set the interrupt register accordingly 50 | * 51 | * void _rs_write(struct tty_struct * tty); 52 | */ 53 | void rs_write(struct tty_struct * tty) 54 | { 55 | cli(); 56 | if (!EMPTY(tty->write_q)) 57 | outb(inb_p(tty->write_q.data+1)|0x02,tty->write_q.data+1); 58 | sti(); 59 | } 60 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UResize.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UResize.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE DoSampleLine (srcPtr: Ptr; 9 | dstPtr: Ptr; 10 | count: INTEGER; 11 | offsets: UNIV Ptr); EXTERNAL; 12 | 13 | PROCEDURE DoInterpolateLine (srcPtr: Ptr; 14 | dstPtr: Ptr; 15 | count: INTEGER; 16 | offsets: UNIV Ptr; 17 | weights: UNIV Ptr); EXTERNAL; 18 | 19 | PROCEDURE DoBiCubicLine (srcPtr: Ptr; 20 | dstPtr: Ptr; 21 | srcCount: INTEGER; 22 | dstCount: INTEGER; 23 | offsets: UNIV Ptr; 24 | weights: UNIV Ptr); EXTERNAL; 25 | 26 | PROCEDURE DoInterpolateRow (srcPtr: Ptr; 27 | dstPtr: Ptr; 28 | count: INTEGER; 29 | weight: INTEGER); EXTERNAL; 30 | 31 | PROCEDURE DoBiCubicRow (bufPtr: Ptr; 32 | count: INTEGER; 33 | weight: INTEGER); EXTERNAL; 34 | 35 | PROCEDURE DoBigAverageLine (srcPtr: Ptr; 36 | dstPtr: Ptr; 37 | count: INTEGER; 38 | counts: UNIV Ptr); EXTERNAL; 39 | 40 | PROCEDURE DoAddWeightedRow (srcPtr: Ptr; 41 | dstPtr: Ptr; 42 | count: INTEGER; 43 | weight: INTEGER); EXTERNAL; 44 | 45 | PROCEDURE DoDivideRow (bufPtr: Ptr; 46 | count: INTEGER; 47 | total: INTEGER); EXTERNAL; 48 | 49 | PROCEDURE DoAverageLine (srcPtr: Ptr; 50 | dstPtr: Ptr; 51 | count: INTEGER; 52 | offsets: UNIV Ptr; 53 | weights: UNIV Ptr; 54 | total: INTEGER); EXTERNAL; 55 | -------------------------------------------------------------------------------- /linux-0.11/kernel/mktime.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/kernel/mktime.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #include 8 | 9 | /* 10 | * This isn't the library routine, it is only used in the kernel. 11 | * as such, we don't care about years<1970 etc, but assume everything 12 | * is ok. Similarly, TZ etc is happily ignored. We just do everything 13 | * as easily as possible. Let's find something public for the library 14 | * routines (although I think minix times is public). 15 | */ 16 | /* 17 | * PS. I hate whoever though up the year 1970 - couldn't they have gotten 18 | * a leap-year instead? I also hate Gregorius, pope or no. I'm grumpy. 19 | */ 20 | #define MINUTE 60 21 | #define HOUR (60*MINUTE) 22 | #define DAY (24*HOUR) 23 | #define YEAR (365*DAY) 24 | 25 | /* interestingly, we assume leap-years */ 26 | static int month[12] = { 27 | 0, 28 | DAY*(31), 29 | DAY*(31+29), 30 | DAY*(31+29+31), 31 | DAY*(31+29+31+30), 32 | DAY*(31+29+31+30+31), 33 | DAY*(31+29+31+30+31+30), 34 | DAY*(31+29+31+30+31+30+31), 35 | DAY*(31+29+31+30+31+30+31+31), 36 | DAY*(31+29+31+30+31+30+31+31+30), 37 | DAY*(31+29+31+30+31+30+31+31+30+31), 38 | DAY*(31+29+31+30+31+30+31+31+30+31+30) 39 | }; 40 | 41 | long kernel_mktime(struct tm * tm) 42 | { 43 | long res; 44 | int year; 45 | 46 | year = tm->tm_year - 70; 47 | /* magic offsets (y+1) needed to get leapyears right.*/ 48 | res = YEAR*year + DAY*((year+1)/4); 49 | res += month[tm->tm_mon]; 50 | /* and (y+2) here. If it wasn't a leap-year, we have to adjust */ 51 | if (tm->tm_mon>1 && ((year+2)%4)) 52 | res -= DAY; 53 | res += DAY*(tm->tm_mday-1); 54 | res += HOUR*tm->tm_hour; 55 | res += MINUTE*tm->tm_min; 56 | res += tm->tm_sec; 57 | return res; 58 | } 59 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UPICTResource.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UPICTResource.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UPICTResource; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, URootFormat, UPICTFile; 21 | 22 | TYPE 23 | 24 | TPICTResourceFormat = OBJECT (TPICTFileFormat) 25 | 26 | fResID: INTEGER; 27 | fResName: Str255; 28 | 29 | PROCEDURE TPICTResourceFormat.IImageFormat; OVERRIDE; 30 | 31 | PROCEDURE TPICTResourceFormat.SetFormatOptions 32 | (doc: TImageDocument); OVERRIDE; 33 | 34 | PROCEDURE TPICTResourceFormat.ConvertPICT 35 | (thePICT: Handle; doc: TImageDocument); 36 | 37 | PROCEDURE TPICTResourceFormat.DoRead 38 | (doc: TImageDocument; 39 | refNum: INTEGER; 40 | rsrcExists: BOOLEAN); OVERRIDE; 41 | 42 | FUNCTION TPICTResourceFormat.MakePICT 43 | (doc: TImageDocument): Handle; 44 | 45 | PROCEDURE TPICTResourceFormat.DoWrite 46 | (doc: TImageDocument; refNum: INTEGER); OVERRIDE; 47 | 48 | END; 49 | 50 | TClipFormat = OBJECT (TPICTResourceFormat) 51 | 52 | FUNCTION TClipFormat.MakePICT 53 | (doc: TImageDocument): Handle; OVERRIDE; 54 | 55 | END; 56 | 57 | VAR 58 | gClipFormat: TClipFormat; 59 | 60 | IMPLEMENTATION 61 | 62 | {$I UPICTResource.inc1.p} 63 | 64 | END. 65 | -------------------------------------------------------------------------------- /linux-0.11/fs/block_dev.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/fs/block_dev.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #include 8 | 9 | #include 10 | #include 11 | #include 12 | #include 13 | 14 | int block_write(int dev, long * pos, char * buf, int count) 15 | { 16 | int block = *pos >> BLOCK_SIZE_BITS; 17 | int offset = *pos & (BLOCK_SIZE-1); 18 | int chars; 19 | int written = 0; 20 | struct buffer_head * bh; 21 | register char * p; 22 | 23 | while (count>0) { 24 | chars = BLOCK_SIZE - offset; 25 | if (chars > count) 26 | chars=count; 27 | if (chars == BLOCK_SIZE) 28 | bh = getblk(dev,block); 29 | else 30 | bh = breada(dev,block,block+1,block+2,-1); 31 | block++; 32 | if (!bh) 33 | return written?written:-EIO; 34 | p = offset + bh->b_data; 35 | offset = 0; 36 | *pos += chars; 37 | written += chars; 38 | count -= chars; 39 | while (chars-->0) 40 | *(p++) = get_fs_byte(buf++); 41 | bh->b_dirt = 1; 42 | brelse(bh); 43 | } 44 | return written; 45 | } 46 | 47 | int block_read(int dev, unsigned long * pos, char * buf, int count) 48 | { 49 | int block = *pos >> BLOCK_SIZE_BITS; 50 | int offset = *pos & (BLOCK_SIZE-1); 51 | int chars; 52 | int read = 0; 53 | struct buffer_head * bh; 54 | register char * p; 55 | 56 | while (count>0) { 57 | chars = BLOCK_SIZE-offset; 58 | if (chars > count) 59 | chars = count; 60 | if (!(bh = breada(dev,block,block+1,block+2,-1))) 61 | return read?read:-EIO; 62 | block++; 63 | p = offset + bh->b_data; 64 | offset = 0; 65 | *pos += chars; 66 | read += chars; 67 | count -= chars; 68 | while (chars-->0) 69 | put_fs_byte(*(p++),buf++); 70 | brelse(bh); 71 | } 72 | return read; 73 | } 74 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UDraw.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UDraw.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitDrawing; EXTERNAL; 9 | 10 | FUNCTION DoEraserTool (view: TImageView; magic: BOOLEAN): TCommand; EXTERNAL; 11 | 12 | FUNCTION DoPencilTool (view: TImageView; pt: Point): TCommand; EXTERNAL; 13 | 14 | FUNCTION DoBrushTool (view: TImageView): TCommand; EXTERNAL; 15 | 16 | FUNCTION DoAirbrushTool (view: TImageView): TCommand; EXTERNAL; 17 | 18 | FUNCTION DoBlurTool (view: TImageView): TCommand; EXTERNAL; 19 | 20 | FUNCTION DoSharpenTool (view: TImageView): TCommand; EXTERNAL; 21 | 22 | FUNCTION DoSmudgeTool (view: TImageView; dip: BOOLEAN): TCommand; EXTERNAL; 23 | 24 | FUNCTION DoStampTool (view: TImageView): TCommand; EXTERNAL; 25 | 26 | FUNCTION DoStampPadTool (view: TImageView; pt: Point): TCommand; EXTERNAL; 27 | 28 | FUNCTION DoEraseAll (view: TImageView): TCommand; EXTERNAL; 29 | 30 | FUNCTION BrushesVisible: BOOLEAN; EXTERNAL; 31 | 32 | PROCEDURE ShowBrushes (visible: BOOLEAN); EXTERNAL; 33 | 34 | PROCEDURE UpdateBrush; EXTERNAL; 35 | 36 | PROCEDURE DoPencilOptions; EXTERNAL; 37 | 38 | PROCEDURE DoBrushOptions; EXTERNAL; 39 | 40 | PROCEDURE DoAirbrushOptions; EXTERNAL; 41 | 42 | PROCEDURE DoBlurOptions; EXTERNAL; 43 | 44 | PROCEDURE DoSharpenOptions; EXTERNAL; 45 | 46 | PROCEDURE DoSmudgeOptions; EXTERNAL; 47 | 48 | PROCEDURE DoStampOptions; EXTERNAL; 49 | 50 | PROCEDURE DefineBrush (view: TImageView); EXTERNAL; 51 | 52 | PROCEDURE DefinePattern (view: TImageView); EXTERNAL; 53 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UPixelPaint.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UPixelPaint.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UPixelPaint; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, URootFormat, UPICTFile, UProgress; 21 | 22 | TYPE 23 | 24 | TPixelPaintFormat = OBJECT (TPICTFileFormat) 25 | 26 | fCenter: BOOLEAN; 27 | fCanvasSize: INTEGER; 28 | 29 | PROCEDURE TPixelPaintFormat.IImageFormat; OVERRIDE; 30 | 31 | FUNCTION TPixelPaintFormat.CanWrite 32 | (doc: TImageDocument): BOOLEAN; OVERRIDE; 33 | 34 | PROCEDURE TPixelPaintFormat.SetFormatOptions 35 | (doc: TImageDocument); OVERRIDE; 36 | 37 | PROCEDURE TPixelPaintFormat.ReadRow (cols: INTEGER); 38 | 39 | PROCEDURE TPixelPaintFormat.DoRead 40 | (doc: TImageDocument; 41 | refNum: INTEGER; 42 | rsrcExists: BOOLEAN); OVERRIDE; 43 | 44 | FUNCTION TPixelPaintFormat.DataForkBytes 45 | (doc: TImageDocument): LONGINT; OVERRIDE; 46 | 47 | FUNCTION TPixelPaintFormat.RsrcForkBytes 48 | (doc: TImageDocument): LONGINT; OVERRIDE; 49 | 50 | PROCEDURE TPixelPaintFormat.DoWriteImage (doc: TImageDocument); 51 | 52 | PROCEDURE TPixelPaintFormat.DoWrite 53 | (doc: TImageDocument; refNum: INTEGER); OVERRIDE; 54 | 55 | END; 56 | 57 | IMPLEMENTATION 58 | 59 | {$I UPixelPaint.inc1.p} 60 | 61 | END. 62 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UAssembly.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UAssembly.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE DoSetBytes (dataPtr: Ptr; 9 | count: LONGINT; 10 | value: INTEGER); EXTERNAL; 11 | 12 | PROCEDURE DoMapBytes (dataPtr: Ptr; 13 | count: LONGINT; 14 | map: TLookUpTable); EXTERNAL; 15 | 16 | PROCEDURE DoHistBytes (dataPtr: Ptr; 17 | maskPtr: Ptr; 18 | count: LONGINT; 19 | VAR hist: THistogram); EXTERNAL; 20 | 21 | PROCEDURE DoSwapBytes (data1: Ptr; 22 | data2: Ptr; 23 | count: LONGINT); EXTERNAL; 24 | 25 | PROCEDURE DoMaxBytes (data1: Ptr; 26 | data2: Ptr; 27 | data3: Ptr; 28 | count: LONGINT); EXTERNAL; 29 | 30 | PROCEDURE DoMinBytes (data1: Ptr; 31 | data2: Ptr; 32 | data3: Ptr; 33 | count: LONGINT); EXTERNAL; 34 | 35 | FUNCTION EqualBytes (data1: Ptr; 36 | data2: Ptr; 37 | count: INTEGER): BOOLEAN; EXTERNAL; 38 | 39 | FUNCTION ConvertToGray (r, g, b: UNIV INTEGER): CHAR; EXTERNAL; 40 | 41 | FUNCTION DoFindBounds (dataPtr: Ptr; 42 | count: INTEGER; 43 | VAR first: INTEGER; 44 | VAR last: INTEGER): BOOLEAN; EXTERNAL; 45 | 46 | PROCEDURE DoStepCopyBytes (srcPtr: Ptr; 47 | dstPtr: Ptr; 48 | count: INTEGER; 49 | step1: INTEGER; 50 | step2: INTEGER); EXTERNAL; 51 | 52 | PROCEDURE CompareWords; EXTERNAL; 53 | 54 | PROCEDURE CompareUnsignedLongs; EXTERNAL; 55 | 56 | PROCEDURE MakeRamp (VAR map: TLookUpTable; limit: INTEGER); EXTERNAL; 57 | -------------------------------------------------------------------------------- /linux-0.11/fs/fcntl.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/fs/fcntl.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #include 8 | #include 9 | #include 10 | #include 11 | #include 12 | 13 | #include 14 | #include 15 | 16 | extern int sys_close(int fd); 17 | 18 | static int dupfd(unsigned int fd, unsigned int arg) 19 | { 20 | if (fd >= NR_OPEN || !current->filp[fd]) 21 | return -EBADF; 22 | if (arg >= NR_OPEN) 23 | return -EINVAL; 24 | while (arg < NR_OPEN) 25 | if (current->filp[arg]) 26 | arg++; 27 | else 28 | break; 29 | if (arg >= NR_OPEN) 30 | return -EMFILE; 31 | current->close_on_exec &= ~(1<filp[arg] = current->filp[fd])->f_count++; 33 | return arg; 34 | } 35 | 36 | int sys_dup2(unsigned int oldfd, unsigned int newfd) 37 | { 38 | sys_close(newfd); 39 | return dupfd(oldfd,newfd); 40 | } 41 | 42 | int sys_dup(unsigned int fildes) 43 | { 44 | return dupfd(fildes,0); 45 | } 46 | 47 | int sys_fcntl(unsigned int fd, unsigned int cmd, unsigned long arg) 48 | { 49 | struct file * filp; 50 | 51 | if (fd >= NR_OPEN || !(filp = current->filp[fd])) 52 | return -EBADF; 53 | switch (cmd) { 54 | case F_DUPFD: 55 | return dupfd(fd,arg); 56 | case F_GETFD: 57 | return (current->close_on_exec>>fd)&1; 58 | case F_SETFD: 59 | if (arg&1) 60 | current->close_on_exec |= (1<close_on_exec &= ~(1<f_flags; 66 | case F_SETFL: 67 | filp->f_flags &= ~(O_APPEND | O_NONBLOCK); 68 | filp->f_flags |= arg & (O_APPEND | O_NONBLOCK); 69 | return 0; 70 | case F_GETLK: case F_SETLK: case F_SETLKW: 71 | return -1; 72 | default: 73 | return -1; 74 | } 75 | } 76 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UIFFFormat.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UIFFFormat.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UIFFFormat; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, URootFormat, UProgress; 21 | 22 | TYPE 23 | 24 | TIFFFormat = OBJECT (TRootFormat) 25 | 26 | fDepth: INTEGER; 27 | 28 | PROCEDURE TIFFFormat.IImageFormat; OVERRIDE; 29 | 30 | FUNCTION TIFFFormat.CanWrite 31 | (doc: TImageDocument): BOOLEAN; OVERRIDE; 32 | 33 | PROCEDURE TIFFFormat.SetFormatOptions 34 | (doc: TImageDocument); OVERRIDE; 35 | 36 | FUNCTION TIFFFormat.ReadCMap (VAR cMap: TRGBLookUpTable): INTEGER; 37 | 38 | PROCEDURE TIFFFormat.TransCMap (doc: TImageDocument; 39 | VAR cMap: TRGBLookUpTable; 40 | nPlanes: INTEGER; 41 | depth: INTEGER; 42 | planePick: INTEGER; 43 | planeOnOff: INTEGER; 44 | planeMask: INTEGER); 45 | 46 | PROCEDURE TIFFFormat.ReadBody (doc: TImageDocument; 47 | nPlanes: INTEGER; 48 | masked: BOOLEAN; 49 | compressed: BOOLEAN); 50 | 51 | PROCEDURE TIFFFormat.DoRead (doc: TImageDocument; 52 | refNum: INTEGER; 53 | rsrcExists: BOOLEAN); OVERRIDE; 54 | 55 | PROCEDURE TIFFFormat.WriteBody (doc: TImageDocument; 56 | bounds: Rect); 57 | 58 | PROCEDURE TIFFFormat.DoWrite (doc: TImageDocument; 59 | refNum: INTEGER); OVERRIDE; 60 | 61 | END; 62 | 63 | IMPLEMENTATION 64 | 65 | {$I UIFFFormat.inc1.p} 66 | 67 | END. 68 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UPixar.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UPixar.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UPixar; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, URootFormat, UProgress; 21 | 22 | TYPE 23 | 24 | TPixarFormat = OBJECT (TRootFormat) 25 | 26 | PROCEDURE TPixarFormat.IImageFormat; OVERRIDE; 27 | 28 | FUNCTION TPixarFormat.CanWrite 29 | (doc: TImageDocument): BOOLEAN; OVERRIDE; 30 | 31 | PROCEDURE TPixarFormat.SetFormatOptions 32 | (doc: TImageDocument); OVERRIDE; 33 | 34 | PROCEDURE TPixarFormat.DecodeRow (dBytes: INTEGER; 35 | pBytes: INTEGER; 36 | rBytes: LONGINT; 37 | blockSize: INTEGER; 38 | buffer: Ptr); 39 | 40 | PROCEDURE TPixarFormat.ReadTile (doc: TImageDocument; 41 | rowOffset: INTEGER; 42 | colOffset: INTEGER; 43 | tileRows: INTEGER; 44 | tileCols: INTEGER; 45 | storage: INTEGER; 46 | blockSize: INTEGER); 47 | 48 | PROCEDURE TPixarFormat.DoRead (doc: TImageDocument; 49 | refNum: INTEGER; 50 | rsrcExists: BOOLEAN); OVERRIDE; 51 | 52 | FUNCTION TPixarFormat.SaveChannels (doc: TImageDocument): INTEGER; 53 | 54 | FUNCTION TPixarFormat.DataForkBytes 55 | (doc: TImageDocument): LONGINT; OVERRIDE; 56 | 57 | PROCEDURE TPixarFormat.DoWrite (doc: TImageDocument; 58 | refNum: INTEGER); OVERRIDE; 59 | 60 | END; 61 | 62 | IMPLEMENTATION 63 | 64 | {$I UPixar.inc1.p} 65 | 66 | END. 67 | -------------------------------------------------------------------------------- /photoshop v1.0.1/Huffman1.t: -------------------------------------------------------------------------------- 1 | 1 2 | 0 00110101 3 | 1 000111 4 | 2 0111 5 | 3 1000 6 | 4 1011 7 | 5 1100 8 | 6 1110 9 | 7 1111 10 | 8 10011 11 | 9 10100 12 | 10 00111 13 | 11 01000 14 | 12 001000 15 | 13 000011 16 | 14 110100 17 | 15 110101 18 | 16 101010 19 | 17 101011 20 | 18 0100111 21 | 19 0001100 22 | 20 0001000 23 | 21 0010111 24 | 22 0000011 25 | 23 0000100 26 | 24 0101000 27 | 25 0101011 28 | 26 0010011 29 | 27 0100100 30 | 28 0011000 31 | 29 00000010 32 | 30 00000011 33 | 31 00011010 34 | 32 00011011 35 | 33 00010010 36 | 34 00010011 37 | 35 00010100 38 | 36 00010101 39 | 37 00010110 40 | 38 00010111 41 | 39 00101000 42 | 40 00101001 43 | 41 00101010 44 | 42 00101011 45 | 43 00101100 46 | 44 00101101 47 | 45 00000100 48 | 46 00000101 49 | 47 00001010 50 | 48 00001011 51 | 49 01010010 52 | 50 01010011 53 | 51 01010100 54 | 52 01010101 55 | 53 00100100 56 | 54 00100101 57 | 55 01011000 58 | 56 01011001 59 | 57 01011010 60 | 58 01011011 61 | 59 01001010 62 | 60 01001011 63 | 61 00110010 64 | 62 00110011 65 | 63 00110100 66 | 64 11011 67 | 128 10010 68 | 192 010111 69 | 256 0110111 70 | 320 00110110 71 | 384 00110111 72 | 448 01100100 73 | 512 01100101 74 | 576 01101000 75 | 640 01100111 76 | 704 011001100 77 | 768 011001101 78 | 832 011010010 79 | 896 011010011 80 | 960 011010100 81 | 1024 011010101 82 | 1088 011010110 83 | 1152 011010111 84 | 1216 011011000 85 | 1280 011011001 86 | 1344 011011010 87 | 1408 011011011 88 | 1472 010011000 89 | 1536 010011001 90 | 1600 010011010 91 | 1664 011000 92 | 1728 010011011 93 | 1792 00000001000 94 | 1856 00000001100 95 | 1920 00000001101 96 | 1984 000000010010 97 | 2048 000000010011 98 | 2112 000000010100 99 | 2176 000000010101 100 | 2240 000000010110 101 | 2304 000000010111 102 | 2368 000000011100 103 | 2432 000000011101 104 | 2496 000000011110 105 | 2560 000000011111 106 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UFloat.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UFloat.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE DoMakeMonochrome (rPtr: Ptr; 9 | rTable: TLookUpTable; 10 | gPtr: Ptr; 11 | gTable: TLookUpTable; 12 | bPtr: Ptr; 13 | bTable: TLookUpTable; 14 | mPtr: Ptr; 15 | count: INTEGER); EXTERNAL; 16 | 17 | PROCEDURE ZapMaskRGB (rDataPtr: Ptr; 18 | gDataPtr: Ptr; 19 | bDataPtr: Ptr; 20 | grayLUT: TRGBLookUpTable; 21 | maskPtr: Ptr; 22 | count: INTEGER; 23 | map: TLookUpTable); EXTERNAL; 24 | 25 | PROCEDURE ZapMaskLUT (dataPtr: Ptr; 26 | maskPtr: Ptr; 27 | count: INTEGER; 28 | map: TLookUpTable); EXTERNAL; 29 | 30 | PROCEDURE DoBlendBelow (maskPtr: Ptr; 31 | floatPtr: Ptr; 32 | belowPtr: Ptr; 33 | count: INTEGER; 34 | mode: INTEGER; 35 | mat: INTEGER); EXTERNAL; 36 | 37 | PROCEDURE DoBlendColorOnly (grayPtr: Ptr; 38 | rPtr: Ptr; 39 | gPtr: Ptr; 40 | bPtr: Ptr; 41 | grayLUT: TRGBLookUpTable; 42 | count: INTEGER); EXTERNAL; 43 | 44 | PROCEDURE DoMaskBinary (maskPtr: Ptr; 45 | dataPtr: Ptr; 46 | count: INTEGER); EXTERNAL; 47 | 48 | PROCEDURE DoPatternFill (srcPtr: Ptr; 49 | dstPtr: Ptr; 50 | width: INTEGER; 51 | count: INTEGER); EXTERNAL; 52 | 53 | PROCEDURE DoLinearGradient (dstPtr: Ptr; 54 | count: INTEGER; 55 | base: LONGINT; 56 | step: LONGINT; 57 | dist: LONGINT; 58 | table: Ptr); EXTERNAL; 59 | 60 | PROCEDURE DoRadialGradient (dstPtr: Ptr; 61 | count: INTEGER; 62 | deltaRow: INTEGER; 63 | deltaCol: INTEGER; 64 | dist: LONGINT; 65 | table: Ptr); EXTERNAL; 66 | -------------------------------------------------------------------------------- /linux-0.11/include/asm/system.h: -------------------------------------------------------------------------------- 1 | #define move_to_user_mode() \ 2 | __asm__ ("movl %%esp,%%eax\n\t" \ 3 | "pushl $0x17\n\t" \ 4 | "pushl %%eax\n\t" \ 5 | "pushfl\n\t" \ 6 | "pushl $0x0f\n\t" \ 7 | "pushl $1f\n\t" \ 8 | "iret\n" \ 9 | "1:\tmovl $0x17,%%eax\n\t" \ 10 | "movw %%ax,%%ds\n\t" \ 11 | "movw %%ax,%%es\n\t" \ 12 | "movw %%ax,%%fs\n\t" \ 13 | "movw %%ax,%%gs" \ 14 | :::"ax") 15 | 16 | #define sti() __asm__ ("sti"::) 17 | #define cli() __asm__ ("cli"::) 18 | #define nop() __asm__ ("nop"::) 19 | 20 | #define iret() __asm__ ("iret"::) 21 | 22 | #define _set_gate(gate_addr,type,dpl,addr) \ 23 | __asm__ ("movw %%dx,%%ax\n\t" \ 24 | "movw %0,%%dx\n\t" \ 25 | "movl %%eax,%1\n\t" \ 26 | "movl %%edx,%2" \ 27 | : \ 28 | : "i" ((short) (0x8000+(dpl<<13)+(type<<8))), \ 29 | "o" (*((char *) (gate_addr))), \ 30 | "o" (*(4+(char *) (gate_addr))), \ 31 | "d" ((char *) (addr)),"a" (0x00080000)) 32 | 33 | #define set_intr_gate(n,addr) \ 34 | _set_gate(&idt[n],14,0,addr) 35 | 36 | #define set_trap_gate(n,addr) \ 37 | _set_gate(&idt[n],15,0,addr) 38 | 39 | #define set_system_gate(n,addr) \ 40 | _set_gate(&idt[n],15,3,addr) 41 | 42 | #define _set_seg_desc(gate_addr,type,dpl,base,limit) {\ 43 | *(gate_addr) = ((base) & 0xff000000) | \ 44 | (((base) & 0x00ff0000)>>16) | \ 45 | ((limit) & 0xf0000) | \ 46 | ((dpl)<<13) | \ 47 | (0x00408000) | \ 48 | ((type)<<8); \ 49 | *((gate_addr)+1) = (((base) & 0x0000ffff)<<16) | \ 50 | ((limit) & 0x0ffff); } 51 | 52 | #define _set_tssldt_desc(n,addr,type) \ 53 | __asm__ ("movw $104,%1\n\t" \ 54 | "movw %%ax,%2\n\t" \ 55 | "rorl $16,%%eax\n\t" \ 56 | "movb %%al,%3\n\t" \ 57 | "movb $" type ",%4\n\t" \ 58 | "movb $0x00,%5\n\t" \ 59 | "movb %%ah,%6\n\t" \ 60 | "rorl $16,%%eax" \ 61 | ::"a" (addr), "m" (*(n)), "m" (*(n+2)), "m" (*(n+4)), \ 62 | "m" (*(n+5)), "m" (*(n+6)), "m" (*(n+7)) \ 63 | ) 64 | 65 | #define set_tss_desc(n,addr) _set_tssldt_desc(((char *) (n)),addr,"0x89") 66 | #define set_ldt_desc(n,addr) _set_tssldt_desc(((char *) (n)),addr,"0x82") 67 | -------------------------------------------------------------------------------- /linux-0.11/include/signal.h: -------------------------------------------------------------------------------- 1 | #ifndef _SIGNAL_H 2 | #define _SIGNAL_H 3 | 4 | #include 5 | 6 | typedef int sig_atomic_t; 7 | typedef unsigned int sigset_t; /* 32 bits */ 8 | 9 | #define _NSIG 32 10 | #define NSIG _NSIG 11 | 12 | #define SIGHUP 1 13 | #define SIGINT 2 14 | #define SIGQUIT 3 15 | #define SIGILL 4 16 | #define SIGTRAP 5 17 | #define SIGABRT 6 18 | #define SIGIOT 6 19 | #define SIGUNUSED 7 20 | #define SIGFPE 8 21 | #define SIGKILL 9 22 | #define SIGUSR1 10 23 | #define SIGSEGV 11 24 | #define SIGUSR2 12 25 | #define SIGPIPE 13 26 | #define SIGALRM 14 27 | #define SIGTERM 15 28 | #define SIGSTKFLT 16 29 | #define SIGCHLD 17 30 | #define SIGCONT 18 31 | #define SIGSTOP 19 32 | #define SIGTSTP 20 33 | #define SIGTTIN 21 34 | #define SIGTTOU 22 35 | 36 | /* Ok, I haven't implemented sigactions, but trying to keep headers POSIX */ 37 | #define SA_NOCLDSTOP 1 38 | #define SA_NOMASK 0x40000000 39 | #define SA_ONESHOT 0x80000000 40 | 41 | #define SIG_BLOCK 0 /* for blocking signals */ 42 | #define SIG_UNBLOCK 1 /* for unblocking signals */ 43 | #define SIG_SETMASK 2 /* for setting the signal mask */ 44 | 45 | #define SIG_DFL ((void (*)(int))0) /* default signal handling */ 46 | #define SIG_IGN ((void (*)(int))1) /* ignore signal */ 47 | 48 | struct sigaction { 49 | void (*sa_handler)(int); 50 | sigset_t sa_mask; 51 | int sa_flags; 52 | void (*sa_restorer)(void); 53 | }; 54 | 55 | void (*signal(int _sig, void (*_func)(int)))(int); 56 | int raise(int sig); 57 | int kill(pid_t pid, int sig); 58 | int sigaddset(sigset_t *mask, int signo); 59 | int sigdelset(sigset_t *mask, int signo); 60 | int sigemptyset(sigset_t *mask); 61 | int sigfillset(sigset_t *mask); 62 | int sigismember(sigset_t *mask, int signo); /* 1 - is, 0 - not, -1 error */ 63 | int sigpending(sigset_t *set); 64 | int sigprocmask(int how, sigset_t *set, sigset_t *oldset); 65 | int sigsuspend(sigset_t *sigmask); 66 | int sigaction(int sig, struct sigaction *act, struct sigaction *oldact); 67 | 68 | #endif /* _SIGNAL_H */ 69 | -------------------------------------------------------------------------------- /photoshop v1.0.1/USelect.p.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: USelect.p.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE InitSelections; EXTERNAL; 9 | 10 | FUNCTION DoSelectAll (view: TImageView): TCommand; EXTERNAL; 11 | 12 | FUNCTION DoSelectNone (view: TImageView): TCommand; EXTERNAL; 13 | 14 | FUNCTION DropSelection (view: TImageView): TCommand; EXTERNAL; 15 | 16 | PROCEDURE InterpolatePoints (pt1, pt2: Point; 17 | PROCEDURE EachPoint (pt: Point)); EXTERNAL; 18 | 19 | FUNCTION DoLassoTool (view: TImageView; 20 | downPoint: Point; 21 | add: BOOLEAN; 22 | remove: BOOLEAN; 23 | refine: BOOLEAN; 24 | drop: BOOLEAN): TCommand; EXTERNAL; 25 | 26 | PROCEDURE DoLassoOptions; EXTERNAL; 27 | 28 | FUNCTION DoWandTool (view: TImageView; 29 | add: BOOLEAN; 30 | remove: BOOLEAN; 31 | refine: BOOLEAN): TCommand; EXTERNAL; 32 | 33 | PROCEDURE DoWandOptions; EXTERNAL; 34 | 35 | FUNCTION DoBucketTool (view: TImageView): TCommand; EXTERNAL; 36 | 37 | PROCEDURE DoBucketOptions; EXTERNAL; 38 | 39 | FUNCTION DoGrowCommand (view: TImageView; 40 | connected: BOOLEAN): TCommand; EXTERNAL; 41 | 42 | FUNCTION DoHandTool (view: TImageView): TCommand; EXTERNAL; 43 | 44 | PROCEDURE CopyAlphaChannel (doc: TImageDocument; buffer: TVMArray); EXTERNAL; 45 | 46 | FUNCTION DoSelectInverse (view: TImageView): TCommand; EXTERNAL; 47 | 48 | PROCEDURE FindTaxiCab (buffer: TVMArray; r: Rect; block: INTEGER); EXTERNAL; 49 | 50 | FUNCTION DoSelectFringe (view: TImageView): TCommand; EXTERNAL; 51 | 52 | FUNCTION DoFeatherCommand (view: TImageView): TCommand; EXTERNAL; 53 | 54 | FUNCTION DoDefringeCommand (view: TImageView): TCommand; EXTERNAL; 55 | 56 | FUNCTION DoMakeAlphaCommand (view: TImageView): TCommand; EXTERNAL; 57 | 58 | FUNCTION DoSelectAlphaCommand (view: TImageView): TCommand; EXTERNAL; 59 | -------------------------------------------------------------------------------- /linux-0.11/kernel/blk_drv/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile for the FREAX-kernel block device drivers. 3 | # 4 | # Note! Dependencies are done automagically by 'make dep', which also 5 | # removes any old dependencies. DON'T put your own dependencies here 6 | # unless it's something special (ie not a .c file). 7 | # 8 | 9 | AR =gar 10 | AS =gas 11 | LD =gld 12 | LDFLAGS =-s -x 13 | CC =gcc 14 | CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -fcombine-regs \ 15 | -finline-functions -mstring-insns -nostdinc -I../../include 16 | CPP =gcc -E -nostdinc -I../../include 17 | 18 | .c.s: 19 | $(CC) $(CFLAGS) \ 20 | -S -o $*.s $< 21 | .s.o: 22 | $(AS) -c -o $*.o $< 23 | .c.o: 24 | $(CC) $(CFLAGS) \ 25 | -c -o $*.o $< 26 | 27 | OBJS = ll_rw_blk.o floppy.o hd.o ramdisk.o 28 | 29 | blk_drv.a: $(OBJS) 30 | $(AR) rcs blk_drv.a $(OBJS) 31 | sync 32 | 33 | clean: 34 | rm -f core *.o *.a tmp_make 35 | for i in *.c;do rm -f `basename $$i .c`.s;done 36 | 37 | dep: 38 | sed '/\#\#\# Dependencies/q' < Makefile > tmp_make 39 | (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \ 40 | $(CPP) -M $$i;done) >> tmp_make 41 | cp tmp_make Makefile 42 | 43 | ### Dependencies: 44 | floppy.s floppy.o : floppy.c ../../include/linux/sched.h ../../include/linux/head.h \ 45 | ../../include/linux/fs.h ../../include/sys/types.h ../../include/linux/mm.h \ 46 | ../../include/signal.h ../../include/linux/kernel.h \ 47 | ../../include/linux/fdreg.h ../../include/asm/system.h \ 48 | ../../include/asm/io.h ../../include/asm/segment.h blk.h 49 | hd.s hd.o : hd.c ../../include/linux/config.h ../../include/linux/sched.h \ 50 | ../../include/linux/head.h ../../include/linux/fs.h \ 51 | ../../include/sys/types.h ../../include/linux/mm.h ../../include/signal.h \ 52 | ../../include/linux/kernel.h ../../include/linux/hdreg.h \ 53 | ../../include/asm/system.h ../../include/asm/io.h \ 54 | ../../include/asm/segment.h blk.h 55 | ll_rw_blk.s ll_rw_blk.o : ll_rw_blk.c ../../include/errno.h ../../include/linux/sched.h \ 56 | ../../include/linux/head.h ../../include/linux/fs.h \ 57 | ../../include/sys/types.h ../../include/linux/mm.h ../../include/signal.h \ 58 | ../../include/linux/kernel.h ../../include/asm/system.h blk.h 59 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UScreen.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UScreen.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UScreen; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, UBWDialog, UCommands, UResize, UProgress; 21 | 22 | CONST 23 | kMaxCellSize = 256; 24 | 25 | TYPE 26 | 27 | TLSDialog = OBJECT (TBWDialog) 28 | 29 | fLoadTitle1: Str255; 30 | fSaveTitle1: Str255; 31 | 32 | fLoadTitle2: Str255; 33 | fSaveTitle2: Str255; 34 | 35 | fOptionDown: BOOLEAN; 36 | 37 | fLoadButton: ControlHandle; 38 | fSaveButton: ControlHandle; 39 | 40 | PROCEDURE TLSDialog.ILSDialog (dialogID: INTEGER; 41 | loadItem: INTEGER; 42 | saveItem: INTEGER); 43 | 44 | PROCEDURE TLSDialog.UpdateButtons; 45 | 46 | FUNCTION TLSDialog.DoSetCursor 47 | (localPoint: Point): BOOLEAN; OVERRIDE; 48 | 49 | END; 50 | 51 | PROCEDURE InitScreens; 52 | 53 | PROCEDURE RegisterSpot (h: Handle); 54 | 55 | PROCEDURE MarkSpotDirty; 56 | 57 | PROCEDURE CollectSpotGarbage; 58 | 59 | PROCEDURE SetHalftoneScreen (VAR spec: THalftoneSpec; 60 | allowCustom: BOOLEAN); 61 | 62 | PROCEDURE SetHalftoneScreens (VAR specs: THalftoneSpecs; 63 | allowCustom: BOOLEAN); 64 | 65 | PROCEDURE MakeScreen (limit: INTEGER; 66 | resolution: Fixed; 67 | spec: THalftoneSpec; 68 | VAR cellData: Handle; 69 | VAR cellSize: INTEGER); 70 | 71 | FUNCTION ConvertScreen (cellData: Handle; cellSize: INTEGER): TVMArray; 72 | 73 | PROCEDURE HalftoneArea (srcArray: TVMArray; 74 | dstArray: TVMArray; 75 | r: Rect; 76 | newRows: INTEGER; 77 | newCols: INTEGER; 78 | map: PLookUpTable; 79 | screen: TVMArray; 80 | canAbort: BOOLEAN); 81 | 82 | IMPLEMENTATION 83 | 84 | {$I UScreen.inc1.p} 85 | 86 | END. 87 | -------------------------------------------------------------------------------- /linux-0.11/fs/file_dev.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/fs/file_dev.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #include 8 | #include 9 | 10 | #include 11 | #include 12 | #include 13 | 14 | #define MIN(a,b) (((a)<(b))?(a):(b)) 15 | #define MAX(a,b) (((a)>(b))?(a):(b)) 16 | 17 | int file_read(struct m_inode * inode, struct file * filp, char * buf, int count) 18 | { 19 | int left,chars,nr; 20 | struct buffer_head * bh; 21 | 22 | if ((left=count)<=0) 23 | return 0; 24 | while (left) { 25 | if (nr = bmap(inode,(filp->f_pos)/BLOCK_SIZE)) { 26 | if (!(bh=bread(inode->i_dev,nr))) 27 | break; 28 | } else 29 | bh = NULL; 30 | nr = filp->f_pos % BLOCK_SIZE; 31 | chars = MIN( BLOCK_SIZE-nr , left ); 32 | filp->f_pos += chars; 33 | left -= chars; 34 | if (bh) { 35 | char * p = nr + bh->b_data; 36 | while (chars-->0) 37 | put_fs_byte(*(p++),buf++); 38 | brelse(bh); 39 | } else { 40 | while (chars-->0) 41 | put_fs_byte(0,buf++); 42 | } 43 | } 44 | inode->i_atime = CURRENT_TIME; 45 | return (count-left)?(count-left):-ERROR; 46 | } 47 | 48 | int file_write(struct m_inode * inode, struct file * filp, char * buf, int count) 49 | { 50 | off_t pos; 51 | int block,c; 52 | struct buffer_head * bh; 53 | char * p; 54 | int i=0; 55 | 56 | /* 57 | * ok, append may not work when many processes are writing at the same time 58 | * but so what. That way leads to madness anyway. 59 | */ 60 | if (filp->f_flags & O_APPEND) 61 | pos = inode->i_size; 62 | else 63 | pos = filp->f_pos; 64 | while (ii_dev,block))) 68 | break; 69 | c = pos % BLOCK_SIZE; 70 | p = c + bh->b_data; 71 | bh->b_dirt = 1; 72 | c = BLOCK_SIZE-c; 73 | if (c > count-i) c = count-i; 74 | pos += c; 75 | if (pos > inode->i_size) { 76 | inode->i_size = pos; 77 | inode->i_dirt = 1; 78 | } 79 | i += c; 80 | while (c-->0) 81 | *(p++) = get_fs_byte(buf++); 82 | brelse(bh); 83 | } 84 | inode->i_mtime = CURRENT_TIME; 85 | if (!(filp->f_flags & O_APPEND)) { 86 | filp->f_pos = pos; 87 | inode->i_ctime = CURRENT_TIME; 88 | } 89 | return (i?i:-1); 90 | } 91 | -------------------------------------------------------------------------------- /linux-0.11/include/linux/hdreg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file contains some defines for the AT-hd-controller. 3 | * Various sources. Check out some definitions (see comments with 4 | * a ques). 5 | */ 6 | #ifndef _HDREG_H 7 | #define _HDREG_H 8 | 9 | /* Hd controller regs. Ref: IBM AT Bios-listing */ 10 | #define HD_DATA 0x1f0 /* _CTL when writing */ 11 | #define HD_ERROR 0x1f1 /* see err-bits */ 12 | #define HD_NSECTOR 0x1f2 /* nr of sectors to read/write */ 13 | #define HD_SECTOR 0x1f3 /* starting sector */ 14 | #define HD_LCYL 0x1f4 /* starting cylinder */ 15 | #define HD_HCYL 0x1f5 /* high byte of starting cyl */ 16 | #define HD_CURRENT 0x1f6 /* 101dhhhh , d=drive, hhhh=head */ 17 | #define HD_STATUS 0x1f7 /* see status-bits */ 18 | #define HD_PRECOMP HD_ERROR /* same io address, read=error, write=precomp */ 19 | #define HD_COMMAND HD_STATUS /* same io address, read=status, write=cmd */ 20 | 21 | #define HD_CMD 0x3f6 22 | 23 | /* Bits of HD_STATUS */ 24 | #define ERR_STAT 0x01 25 | #define INDEX_STAT 0x02 26 | #define ECC_STAT 0x04 /* Corrected error */ 27 | #define DRQ_STAT 0x08 28 | #define SEEK_STAT 0x10 29 | #define WRERR_STAT 0x20 30 | #define READY_STAT 0x40 31 | #define BUSY_STAT 0x80 32 | 33 | /* Values for HD_COMMAND */ 34 | #define WIN_RESTORE 0x10 35 | #define WIN_READ 0x20 36 | #define WIN_WRITE 0x30 37 | #define WIN_VERIFY 0x40 38 | #define WIN_FORMAT 0x50 39 | #define WIN_INIT 0x60 40 | #define WIN_SEEK 0x70 41 | #define WIN_DIAGNOSE 0x90 42 | #define WIN_SPECIFY 0x91 43 | 44 | /* Bits for HD_ERROR */ 45 | #define MARK_ERR 0x01 /* Bad address mark ? */ 46 | #define TRK0_ERR 0x02 /* couldn't find track 0 */ 47 | #define ABRT_ERR 0x04 /* ? */ 48 | #define ID_ERR 0x10 /* ? */ 49 | #define ECC_ERR 0x40 /* ? */ 50 | #define BBD_ERR 0x80 /* ? */ 51 | 52 | struct partition { 53 | unsigned char boot_ind; /* 0x80 - active (unused) */ 54 | unsigned char head; /* ? */ 55 | unsigned char sector; /* ? */ 56 | unsigned char cyl; /* ? */ 57 | unsigned char sys_ind; /* ? */ 58 | unsigned char end_head; /* ? */ 59 | unsigned char end_sector; /* ? */ 60 | unsigned char end_cyl; /* ? */ 61 | unsigned int start_sect; /* starting sector counting from 0 */ 62 | unsigned int nr_sects; /* nr of sectors in partition */ 63 | }; 64 | 65 | #endif 66 | -------------------------------------------------------------------------------- /photoshop v1.0.1/Huffman2.t: -------------------------------------------------------------------------------- 1 | 2 2 | 0 0000110111 3 | 1 010 4 | 2 11 5 | 3 10 6 | 4 011 7 | 5 0011 8 | 6 0010 9 | 7 00011 10 | 8 000101 11 | 9 000100 12 | 10 0000100 13 | 11 0000101 14 | 12 0000111 15 | 13 00000100 16 | 14 00000111 17 | 15 000011000 18 | 16 0000010111 19 | 17 0000011000 20 | 18 0000001000 21 | 19 00001100111 22 | 20 00001101000 23 | 21 00001101100 24 | 22 00000110111 25 | 23 00000101000 26 | 24 00000010111 27 | 25 00000011000 28 | 26 000011001010 29 | 27 000011001011 30 | 28 000011001100 31 | 29 000011001101 32 | 30 000001101000 33 | 31 000001101001 34 | 32 000001101010 35 | 33 000001101011 36 | 34 000011010010 37 | 35 000011010011 38 | 36 000011010100 39 | 37 000011010101 40 | 38 000011010110 41 | 39 000011010111 42 | 40 000001101100 43 | 41 000001101101 44 | 42 000011011010 45 | 43 000011011011 46 | 44 000001010100 47 | 45 000001010101 48 | 46 000001010110 49 | 47 000001010111 50 | 48 000001100100 51 | 49 000001100101 52 | 50 000001010010 53 | 51 000001010011 54 | 52 000000100100 55 | 53 000000110111 56 | 54 000000111000 57 | 55 000000100111 58 | 56 000000101000 59 | 57 000001011000 60 | 58 000001011001 61 | 59 000000101011 62 | 60 000000101100 63 | 61 000001011010 64 | 62 000001100110 65 | 63 000001100111 66 | 64 0000001111 67 | 128 000011001000 68 | 192 000011001001 69 | 256 000001011011 70 | 320 000000110011 71 | 384 000000110100 72 | 448 000000110101 73 | 512 0000001101100 74 | 576 0000001101101 75 | 640 0000001001010 76 | 704 0000001001011 77 | 768 0000001001100 78 | 832 0000001001101 79 | 896 0000001110010 80 | 960 0000001110011 81 | 1024 0000001110100 82 | 1088 0000001110101 83 | 1152 0000001110110 84 | 1216 0000001110111 85 | 1280 0000001010010 86 | 1344 0000001010011 87 | 1408 0000001010100 88 | 1472 0000001010101 89 | 1536 0000001011010 90 | 1600 0000001011011 91 | 1664 0000001100100 92 | 1728 0000001100101 93 | 1792 00000001000 94 | 1856 00000001100 95 | 1920 00000001101 96 | 1984 000000010010 97 | 2048 000000010011 98 | 2112 000000010100 99 | 2176 000000010101 100 | 2240 000000010110 101 | 2304 000000010111 102 | 2368 000000011100 103 | 2432 000000011101 104 | 2496 000000011110 105 | 2560 000000011111 106 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UPostScript.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UPostScript.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UPostScript; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, UBWDialog, UScreen, UTransfer, UProgress; 21 | 22 | TYPE 23 | TRegMarkList = ARRAY [0..7] OF Point; 24 | 25 | PROCEDURE BeginPostScript (toFile: BOOLEAN; refNum: INTEGER); 26 | 27 | PROCEDURE FlushPostScript; 28 | 29 | PROCEDURE EndPostScript; 30 | 31 | PROCEDURE GenerateEPSFHeader (doc: TImageDocument; 32 | channel: INTEGER; 33 | inputArea: Rect; 34 | outputArea: Rect; 35 | useDCS: BOOLEAN; 36 | color: BOOLEAN; 37 | screen: BOOLEAN; 38 | transfer: BOOLEAN; 39 | binary: BOOLEAN); 40 | 41 | PROCEDURE GeneratePostScript (doc: TImageDocument; 42 | channel: INTEGER; 43 | inputArea: Rect; 44 | outputArea: Rect; 45 | color: BOOLEAN; 46 | screen: BOOLEAN; 47 | transfer: BOOLEAN; 48 | mask: BOOLEAN; 49 | binary: BOOLEAN; 50 | printing: BOOLEAN); 51 | 52 | PROCEDURE GenerateRegMarks (marks: TRegMarkList); 53 | 54 | PROCEDURE GenerateStarTargets (bounds: Rect); 55 | 56 | PROCEDURE GenerateCropMarks (bounds: Rect); 57 | 58 | PROCEDURE GenerateGrayBar (bounds: Rect); 59 | 60 | PROCEDURE GenerateColorBars (bounds: Rect; channel: INTEGER); 61 | 62 | PROCEDURE GenerateBorder (location: Point; 63 | width: INTEGER; 64 | height: INTEGER; 65 | resolution: Fixed; 66 | border: Fixed); 67 | 68 | PROCEDURE GenerateSetFont; 69 | 70 | PROCEDURE GenerateText (s: Str255; 71 | center: BOOLEAN; 72 | left: INTEGER; 73 | right: INTEGER; 74 | bottom: INTEGER); 75 | 76 | PROCEDURE GenerateOther (s: Str255); 77 | 78 | IMPLEMENTATION 79 | 80 | {$I UPostScript.inc1.p} 81 | 82 | END. 83 | -------------------------------------------------------------------------------- /photoshop v1.0.1/USelect.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: USelect.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE DoDeltaMask (srcPtr: Ptr; 9 | dstPtr: Ptr; 10 | count: INTEGER); EXTERNAL; 11 | 12 | PROCEDURE MergeForward (prevPtr: Ptr; 13 | thisPtr: Ptr; 14 | count: INTEGER; 15 | VAR map: TLookUpTable); EXTERNAL; 16 | 17 | PROCEDURE PropagateBackward (thisPtr: Ptr; 18 | count: INTEGER); EXTERNAL; 19 | 20 | FUNCTION MarkNewRegions (thisPtr: Ptr; 21 | count: INTEGER; 22 | VAR nextRgn: INTEGER): BOOLEAN; EXTERNAL; 23 | 24 | FUNCTION SolidRow (dataPtr: Ptr; 25 | count: INTEGER): BOOLEAN; EXTERNAL; 26 | 27 | PROCEDURE Do6DHistogram (rData: Ptr; 28 | gData: Ptr; 29 | bData: Ptr; 30 | mData: Ptr; 31 | count: INTEGER; 32 | hData: Ptr); EXTERNAL; 33 | 34 | PROCEDURE Do6DMinimum (rData: Ptr; 35 | gData: Ptr; 36 | bData: Ptr; 37 | mData: Ptr; 38 | maps: Ptr; 39 | count: INTEGER); EXTERNAL; 40 | 41 | FUNCTION ConnectAcross (p: Ptr; 42 | count: INTEGER; 43 | VAR left: INTEGER; 44 | VAR right: INTEGER): BOOLEAN; EXTERNAL; 45 | 46 | FUNCTION ConnectDown (p1: Ptr; 47 | p2: Ptr; 48 | left: INTEGER; 49 | right: INTEGER): BOOLEAN; EXTERNAL; 50 | 51 | PROCEDURE DilateAcross (p: Ptr; 52 | count: INTEGER); EXTERNAL; 53 | 54 | PROCEDURE DilateDown (p1: Ptr; 55 | p2: Ptr; 56 | count: INTEGER); EXTERNAL; 57 | 58 | PROCEDURE DoMarkMasked (srcPtr: Ptr; 59 | dstPtr: Ptr; 60 | count: INTEGER); EXTERNAL; 61 | 62 | PROCEDURE DoTaxiCab (dataPtr: Ptr; 63 | step: INTEGER; 64 | count: INTEGER; 65 | block: INTEGER); EXTERNAL; 66 | 67 | PROCEDURE DefringeAcross (maskPtr: Ptr; 68 | dataPtr: Ptr; 69 | count: INTEGER; 70 | step: INTEGER; 71 | update: BOOLEAN); EXTERNAL; 72 | 73 | PROCEDURE DefringeDown (maskPtr1: Ptr; 74 | dataPtr1: Ptr; 75 | maskPtr2: Ptr; 76 | dataPtr2: Ptr; 77 | count: INTEGER; 78 | update: BOOLEAN); EXTERNAL; 79 | -------------------------------------------------------------------------------- /msdos/v20source/FCMES.ASM: -------------------------------------------------------------------------------- 1 | title File Compare Routine for MSDOS 2.0 2 | 3 | CR equ 0dh 4 | LF equ 0ah 5 | 6 | FALSE equ 0 7 | TRUE equ 0ffh 8 | 9 | 10 | const segment public byte 11 | 12 | PUBLIC vers_err,opt_err,opt_e,crlf,opt_err_len 13 | PUBLIC found_err_pre,found_err_pre_len,found_err_post 14 | PUBLIC found_err_post_len,read_err_pre,read_err_pre_len 15 | PUBLIC read_err_post,read_err_post_len,file_err,file_err_len 16 | PUBLIC bf1ne,bf1ne_len,bf2ne,bf2ne_len,bhead,bhead_len 17 | PUBLIC int_err,int_err_len,dif_err,dif_err_len,diff_sep,diff_sep_len 18 | PUBLIC args_err,args_err_len,fname_sep,fname_sep_len 19 | 20 | vers_err db "Incorrect DOS version$" 21 | 22 | opt_err db "Invalid parameter:" 23 | opt_e db 0 24 | crlf db CR,LF 25 | opt_err_len db $ - opt_err 26 | 27 | ;"found_err_prefound_err_post" 28 | found_err_pre db "File not found:" 29 | found_err_pre_len db $ - found_err_pre 30 | found_err_post label byte 31 | found_err_post_len db $ - found_err_post 32 | 33 | ;"read_err_preread_err_post" 34 | read_err_pre db "Read error in:" 35 | read_err_pre_len db $ - read_err_pre 36 | read_err_post label byte 37 | read_err_post_len db $ - read_err_post 38 | 39 | file_err db "Bad file" 40 | file_err_len db $ - file_err 41 | 42 | int_err db "Internal Error" 43 | int_err_len db $ - int_err 44 | 45 | dif_err db "*** Files are different ***" 46 | dif_err_len db $ - dif_err 47 | 48 | args_err db "Invalid number of parameters" 49 | args_err_len db $ - args_err 50 | 51 | fname_sep db CR,LF,"----------" 52 | fname_sep_len db $ - fname_sep 53 | 54 | diff_sep db CR,LF,"-----------------------------------------------",CR,LF 55 | diff_sep_len db $ - diff_sep 56 | 57 | bf1ne db CR,LF,"*** Data left in F1 ***",CR,LF 58 | bf1ne_len db $ - bf1ne 59 | 60 | bf2ne db CR,LF,"*** Data left in F2 ***",CR,LF 61 | bf2ne_len db $ - bf2ne 62 | 63 | bhead db CR,LF,'--ADDRS----F1---F2-',CR,LF 64 | bhead_len db $ - bhead 65 | 66 | const ends 67 | end 68 | -------------------------------------------------------------------------------- /linux-0.11/include/linux/tty.h: -------------------------------------------------------------------------------- 1 | /* 2 | * 'tty.h' defines some structures used by tty_io.c and some defines. 3 | * 4 | * NOTE! Don't touch this without checking that nothing in rs_io.s or 5 | * con_io.s breaks. Some constants are hardwired into the system (mainly 6 | * offsets into 'tty_queue' 7 | */ 8 | 9 | #ifndef _TTY_H 10 | #define _TTY_H 11 | 12 | #include 13 | 14 | #define TTY_BUF_SIZE 1024 15 | 16 | struct tty_queue { 17 | unsigned long data; 18 | unsigned long head; 19 | unsigned long tail; 20 | struct task_struct * proc_list; 21 | char buf[TTY_BUF_SIZE]; 22 | }; 23 | 24 | #define INC(a) ((a) = ((a)+1) & (TTY_BUF_SIZE-1)) 25 | #define DEC(a) ((a) = ((a)-1) & (TTY_BUF_SIZE-1)) 26 | #define EMPTY(a) ((a).head == (a).tail) 27 | #define LEFT(a) (((a).tail-(a).head-1)&(TTY_BUF_SIZE-1)) 28 | #define LAST(a) ((a).buf[(TTY_BUF_SIZE-1)&((a).head-1)]) 29 | #define FULL(a) (!LEFT(a)) 30 | #define CHARS(a) (((a).head-(a).tail)&(TTY_BUF_SIZE-1)) 31 | #define GETCH(queue,c) \ 32 | (void)({c=(queue).buf[(queue).tail];INC((queue).tail);}) 33 | #define PUTCH(c,queue) \ 34 | (void)({(queue).buf[(queue).head]=(c);INC((queue).head);}) 35 | 36 | #define INTR_CHAR(tty) ((tty)->termios.c_cc[VINTR]) 37 | #define QUIT_CHAR(tty) ((tty)->termios.c_cc[VQUIT]) 38 | #define ERASE_CHAR(tty) ((tty)->termios.c_cc[VERASE]) 39 | #define KILL_CHAR(tty) ((tty)->termios.c_cc[VKILL]) 40 | #define EOF_CHAR(tty) ((tty)->termios.c_cc[VEOF]) 41 | #define START_CHAR(tty) ((tty)->termios.c_cc[VSTART]) 42 | #define STOP_CHAR(tty) ((tty)->termios.c_cc[VSTOP]) 43 | #define SUSPEND_CHAR(tty) ((tty)->termios.c_cc[VSUSP]) 44 | 45 | struct tty_struct { 46 | struct termios termios; 47 | int pgrp; 48 | int stopped; 49 | void (*write)(struct tty_struct * tty); 50 | struct tty_queue read_q; 51 | struct tty_queue write_q; 52 | struct tty_queue secondary; 53 | }; 54 | 55 | extern struct tty_struct tty_table[]; 56 | 57 | /* intr=^C quit=^| erase=del kill=^U 58 | eof=^D vtime=\0 vmin=\1 sxtc=\0 59 | start=^Q stop=^S susp=^Z eol=\0 60 | reprint=^R discard=^U werase=^W lnext=^V 61 | eol2=\0 62 | */ 63 | #define INIT_C_CC "\003\034\177\025\004\0\1\0\021\023\032\0\022\017\027\026\0" 64 | 65 | void rs_init(void); 66 | void con_init(void); 67 | void tty_init(void); 68 | 69 | int tty_read(unsigned c, char * buf, int n); 70 | int tty_write(unsigned c, char * buf, int n); 71 | 72 | void rs_write(struct tty_struct * tty); 73 | void con_write(struct tty_struct * tty); 74 | 75 | void copy_to_cooked(struct tty_struct * tty); 76 | 77 | #endif 78 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UScreen.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UScreen.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | FUNCTION InsideUnitCell (row: INTEGER; 9 | col: INTEGER; 10 | j: INTEGER; 11 | k: INTEGER): BOOLEAN; EXTERNAL; 12 | 13 | PROCEDURE CvtToGridCoords (row: INTEGER; 14 | col: INTEGER; 15 | cosTheta: INTEGER; 16 | sinTheta: INTEGER; 17 | frequency: LONGINT; 18 | VAR x: INTEGER; 19 | VAR y: INTEGER; 20 | VAR xf: INTEGER; 21 | VAR yf: INTEGER); EXTERNAL; 22 | 23 | PROCEDURE NormGridCoords (m: INTEGER; 24 | n: INTEGER; 25 | hs: LONGINT; 26 | VAR x: INTEGER; 27 | VAR y: INTEGER); EXTERNAL; 28 | 29 | FUNCTION DotScreenProc (x: INTEGER; 30 | y: INTEGER): LONGINT; EXTERNAL; 31 | 32 | FUNCTION EllipseScreenProc (x: INTEGER; 33 | y: INTEGER): LONGINT; EXTERNAL; 34 | 35 | FUNCTION LineScreenProc (x: INTEGER; 36 | y: INTEGER): LONGINT; EXTERNAL; 37 | 38 | FUNCTION SquareScreenProc (x: INTEGER; 39 | y: INTEGER): LONGINT; EXTERNAL; 40 | 41 | FUNCTION CrossScreenProc (x: INTEGER; 42 | y: INTEGER): LONGINT; EXTERNAL; 43 | 44 | PROCEDURE CompareCells; EXTERNAL; 45 | 46 | FUNCTION ClusterOffset (xCell: INTEGER; 47 | yCell: INTEGER; 48 | cluster: INTEGER): INTEGER; EXTERNAL; 49 | 50 | PROCEDURE CompScreenValues (buffer: Ptr; 51 | count: INTEGER; 52 | rowBase: INTEGER; 53 | colBase: INTEGER; 54 | cluster: INTEGER; 55 | offset: INTEGER; 56 | cellData: Ptr; 57 | cellSize: INTEGER); EXTERNAL; 58 | 59 | PROCEDURE DoStepSwapBytes (dataPtr1: Ptr; 60 | dataPtr2: Ptr; 61 | count: INTEGER; 62 | step1: INTEGER; 63 | step2: INTEGER); EXTERNAL; 64 | 65 | PROCEDURE MakeWhiteNoise (data: Ptr; 66 | count: LONGINT; 67 | min: INTEGER; 68 | max: INTEGER); EXTERNAL; 69 | 70 | PROCEDURE DoScreenRow (srcPtr: Ptr; 71 | dstPtr: Ptr; 72 | count: INTEGER; 73 | cellData: Ptr; 74 | cellSize: INTEGER); EXTERNAL; 75 | 76 | PROCEDURE DoDiffuseRow (srcPtr: Ptr; 77 | dstPtr: Ptr; 78 | thisError: Ptr; 79 | nextError: Ptr; 80 | noisePtr: Ptr; 81 | count: INTEGER); EXTERNAL; 82 | -------------------------------------------------------------------------------- /linux-0.11/fs/char_dev.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/fs/char_dev.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #include 8 | #include 9 | 10 | #include 11 | #include 12 | 13 | #include 14 | #include 15 | 16 | extern int tty_read(unsigned minor,char * buf,int count); 17 | extern int tty_write(unsigned minor,char * buf,int count); 18 | 19 | typedef (*crw_ptr)(int rw,unsigned minor,char * buf,int count,off_t * pos); 20 | 21 | static int rw_ttyx(int rw,unsigned minor,char * buf,int count,off_t * pos) 22 | { 23 | return ((rw==READ)?tty_read(minor,buf,count): 24 | tty_write(minor,buf,count)); 25 | } 26 | 27 | static int rw_tty(int rw,unsigned minor,char * buf,int count, off_t * pos) 28 | { 29 | if (current->tty<0) 30 | return -EPERM; 31 | return rw_ttyx(rw,current->tty,buf,count,pos); 32 | } 33 | 34 | static int rw_ram(int rw,char * buf, int count, off_t *pos) 35 | { 36 | return -EIO; 37 | } 38 | 39 | static int rw_mem(int rw,char * buf, int count, off_t * pos) 40 | { 41 | return -EIO; 42 | } 43 | 44 | static int rw_kmem(int rw,char * buf, int count, off_t * pos) 45 | { 46 | return -EIO; 47 | } 48 | 49 | static int rw_port(int rw,char * buf, int count, off_t * pos) 50 | { 51 | int i=*pos; 52 | 53 | while (count-->0 && i<65536) { 54 | if (rw==READ) 55 | put_fs_byte(inb(i),buf++); 56 | else 57 | outb(get_fs_byte(buf++),i); 58 | i++; 59 | } 60 | i -= *pos; 61 | *pos += i; 62 | return i; 63 | } 64 | 65 | static int rw_memory(int rw, unsigned minor, char * buf, int count, off_t * pos) 66 | { 67 | switch(minor) { 68 | case 0: 69 | return rw_ram(rw,buf,count,pos); 70 | case 1: 71 | return rw_mem(rw,buf,count,pos); 72 | case 2: 73 | return rw_kmem(rw,buf,count,pos); 74 | case 3: 75 | return (rw==READ)?0:count; /* rw_null */ 76 | case 4: 77 | return rw_port(rw,buf,count,pos); 78 | default: 79 | return -EIO; 80 | } 81 | } 82 | 83 | #define NRDEVS ((sizeof (crw_table))/(sizeof (crw_ptr))) 84 | 85 | static crw_ptr crw_table[]={ 86 | NULL, /* nodev */ 87 | rw_memory, /* /dev/mem etc */ 88 | NULL, /* /dev/fd */ 89 | NULL, /* /dev/hd */ 90 | rw_ttyx, /* /dev/ttyx */ 91 | rw_tty, /* /dev/tty */ 92 | NULL, /* /dev/lp */ 93 | NULL}; /* unnamed pipes */ 94 | 95 | int rw_char(int rw,int dev, char * buf, int count, off_t * pos) 96 | { 97 | crw_ptr call_addr; 98 | 99 | if (MAJOR(dev)>=NRDEVS) 100 | return -ENODEV; 101 | if (!(call_addr=crw_table[MAJOR(dev)])) 102 | return -ENODEV; 103 | return call_addr(rw,MINOR(dev),buf,count,pos); 104 | } 105 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UPICTFile.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UPICTFile.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UPICTFile; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | QuickDraw32Bit, UDialog, URootFormat, UProgress; 21 | 22 | TYPE 23 | 24 | TPICTFileFormat = OBJECT (TRootFormat) 25 | 26 | fDepth: INTEGER; 27 | 28 | fTransferMode: INTEGER; 29 | 30 | fSystemPalette: BOOLEAN; 31 | 32 | fVersion1: BOOLEAN; 33 | 34 | PROCEDURE TPICTFileFormat.IImageFormat; OVERRIDE; 35 | 36 | FUNCTION TPICTFileFormat.CanWrite 37 | (doc: TImageDocument): BOOLEAN; OVERRIDE; 38 | 39 | PROCEDURE TPICTFileFormat.SetFormatOptions 40 | (doc: TImageDocument); OVERRIDE; 41 | 42 | PROCEDURE TPICTFileFormat.AdjustRects (doc: TImageDocument; 43 | hRes: Fixed; 44 | vRes: Fixed; 45 | pictBounds: Rect; 46 | bounds: Rect; 47 | VAR srcRect: Rect; 48 | VAR dstRect: Rect); 49 | 50 | PROCEDURE TPICTFileFormat.ParseCopyBits (doc: TImageDocument; 51 | opcode: INTEGER; 52 | pictBounds: Rect; 53 | canAbort: BOOLEAN); 54 | 55 | PROCEDURE TPICTFileFormat.ParseDirectBits (doc: TImageDocument; 56 | opcode: INTEGER; 57 | pictBounds: Rect; 58 | canAbort: BOOLEAN); 59 | 60 | PROCEDURE TPICTFileFormat.ParsePICT (doc: TImageDocument; 61 | canAbort: BOOLEAN); 62 | 63 | PROCEDURE TPICTFileFormat.ParseOldPICT (doc: TImageDocument); 64 | 65 | PROCEDURE TPICTFileFormat.ParseNewPICT (doc: TImageDocument); 66 | 67 | PROCEDURE TPICTFileFormat.DoReadPICT (doc: TImageDocument; 68 | canAbort: BOOLEAN); 69 | 70 | PROCEDURE TPICTFileFormat.DoRead (doc: TImageDocument; 71 | refNum: INTEGER; 72 | rsrcExists: BOOLEAN); OVERRIDE; 73 | 74 | PROCEDURE TPICTFileFormat.PutOpcode (opcode: INTEGER); 75 | 76 | PROCEDURE TPICTFileFormat.DoWritePICT (doc: TImageDocument); 77 | 78 | PROCEDURE TPICTFileFormat.AddPixelPaintStuff; 79 | 80 | PROCEDURE TPICTFileFormat.DoWrite (doc: TImageDocument; 81 | refNum: INTEGER); OVERRIDE; 82 | 83 | END; 84 | 85 | IMPLEMENTATION 86 | 87 | {$I UPICTFile.inc1.p} 88 | 89 | END. 90 | -------------------------------------------------------------------------------- /linux-0.11/kernel/chr_drv/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile for the FREAX-kernel character device drivers. 3 | # 4 | # Note! Dependencies are done automagically by 'make dep', which also 5 | # removes any old dependencies. DON'T put your own dependencies here 6 | # unless it's something special (ie not a .c file). 7 | # 8 | 9 | AR =gar 10 | AS =gas 11 | LD =gld 12 | LDFLAGS =-s -x 13 | CC =gcc 14 | CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -fcombine-regs \ 15 | -finline-functions -mstring-insns -nostdinc -I../../include 16 | CPP =gcc -E -nostdinc -I../../include 17 | 18 | .c.s: 19 | $(CC) $(CFLAGS) \ 20 | -S -o $*.s $< 21 | .s.o: 22 | $(AS) -c -o $*.o $< 23 | .c.o: 24 | $(CC) $(CFLAGS) \ 25 | -c -o $*.o $< 26 | 27 | OBJS = tty_io.o console.o keyboard.o serial.o rs_io.o \ 28 | tty_ioctl.o 29 | 30 | chr_drv.a: $(OBJS) 31 | $(AR) rcs chr_drv.a $(OBJS) 32 | sync 33 | 34 | keyboard.s: keyboard.S ../../include/linux/config.h 35 | $(CPP) -traditional keyboard.S -o keyboard.s 36 | 37 | clean: 38 | rm -f core *.o *.a tmp_make keyboard.s 39 | for i in *.c;do rm -f `basename $$i .c`.s;done 40 | 41 | dep: 42 | sed '/\#\#\# Dependencies/q' < Makefile > tmp_make 43 | (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \ 44 | $(CPP) -M $$i;done) >> tmp_make 45 | cp tmp_make Makefile 46 | 47 | ### Dependencies: 48 | console.s console.o : console.c ../../include/linux/sched.h \ 49 | ../../include/linux/head.h ../../include/linux/fs.h \ 50 | ../../include/sys/types.h ../../include/linux/mm.h ../../include/signal.h \ 51 | ../../include/linux/tty.h ../../include/termios.h ../../include/asm/io.h \ 52 | ../../include/asm/system.h 53 | serial.s serial.o : serial.c ../../include/linux/tty.h ../../include/termios.h \ 54 | ../../include/linux/sched.h ../../include/linux/head.h \ 55 | ../../include/linux/fs.h ../../include/sys/types.h ../../include/linux/mm.h \ 56 | ../../include/signal.h ../../include/asm/system.h ../../include/asm/io.h 57 | tty_io.s tty_io.o : tty_io.c ../../include/ctype.h ../../include/errno.h \ 58 | ../../include/signal.h ../../include/sys/types.h \ 59 | ../../include/linux/sched.h ../../include/linux/head.h \ 60 | ../../include/linux/fs.h ../../include/linux/mm.h ../../include/linux/tty.h \ 61 | ../../include/termios.h ../../include/asm/segment.h \ 62 | ../../include/asm/system.h 63 | tty_ioctl.s tty_ioctl.o : tty_ioctl.c ../../include/errno.h ../../include/termios.h \ 64 | ../../include/linux/sched.h ../../include/linux/head.h \ 65 | ../../include/linux/fs.h ../../include/sys/types.h ../../include/linux/mm.h \ 66 | ../../include/signal.h ../../include/linux/kernel.h \ 67 | ../../include/linux/tty.h ../../include/asm/io.h \ 68 | ../../include/asm/segment.h ../../include/asm/system.h 69 | -------------------------------------------------------------------------------- /msdos/v20object/DOSPATCH.TXT: -------------------------------------------------------------------------------- 1 | There are three locations in the DOS where OEMs may want to 2 | patch in information specific to their installation. 3 | 4 | 5 | The first is the location of the default switch character. 6 | This character is one byte at DEBUG location 1E5, and is 7 | set to '/'. To change it to '-' (XENIX compatible) 8 | do: 9 | 10 | DEBUG MSDOS.SYS 11 | 12 | >e1e5 13 | XXXX:01E5 2F. 16 | >w 17 | Writing YYYY Bytes 18 | >q 19 | 20 | If the byte at 1E5 is not 2F, look around in the immediate 21 | vacinity (do d1e0) for it. It is the only 2F in that area. 22 | 23 | 24 | The second is the location of the 24 bit user number and the 25 | 8 bit OEM number. These values are returned by the GET_VERSION 26 | system call. 27 | The user number is 3 bytes starting at 28 | debug location 683, The OEM number is one byte at debug location 29 | 686. The user number is initialized to 0, the OEM number to -1 30 | and they immediatly follow the Microsoft Copyright message. If these 31 | bytes are not zero, look for the four bytes following the 32 | Copyright message which should be in the vacinity of 683. 33 | OEMs should request an OEM number from Microsoft if they 34 | want one of their very own, this prevents selecting one someone 35 | else already has. 36 | 37 | 38 | The third is the location of the editing template definitions. 39 | This is a table which defines the two byte edit function keys 40 | for system call 10 and for EDLIN. This table is at debug location 41 | 33EA, and should start with a 1B. If the byte at 33EA is not 42 | 1B, look around in the immediate vacinity. Here is what the 43 | default table looks like. It is a definition for the Zenith 44 | Z-19 terminal: 45 | 46 | ESCCHAR DB 1BH ;The Escape character, Nul (0) on IBM 47 | ESCTAB: 48 | DB "Z" ;5AH Put a ^Z in the template, F6 on IBM 49 | DB "S" ;53H Copy one char, --> on IBM 50 | DB "V" ;56H Skip one char, DEL on IBM 51 | DB "T" ;54H Copy to char, F2 on IBM 52 | DB "W" ;57H Skip to char, F4 on IBM 53 | DB "U" ;55H Copy line, F3 on IBM 54 | DB "E" ;45H Kill line, Not used on IBM 55 | DB "J" ;4AH Reedit line, F5 on IBM 56 | DB "D" ;44H Backspace, <-- on IBM 57 | DB "P" ;50H Toggle insert mode, INS on IBM 58 | DB "Q" ;51H Toggle insert mode, INS on IBM 59 | DB "R" ;52H Escape char, F7 on IBM 60 | DB "R" ;52H End of table, must be same as previos character 61 | 62 |  -------------------------------------------------------------------------------- /linux-0.11/include/linux/fdreg.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file contains some defines for the floppy disk controller. 3 | * Various sources. Mostly "IBM Microcomputers: A Programmers 4 | * Handbook", Sanches and Canton. 5 | */ 6 | #ifndef _FDREG_H 7 | #define _FDREG_H 8 | 9 | extern int ticks_to_floppy_on(unsigned int nr); 10 | extern void floppy_on(unsigned int nr); 11 | extern void floppy_off(unsigned int nr); 12 | extern void floppy_select(unsigned int nr); 13 | extern void floppy_deselect(unsigned int nr); 14 | 15 | /* Fd controller regs. S&C, about page 340 */ 16 | #define FD_STATUS 0x3f4 17 | #define FD_DATA 0x3f5 18 | #define FD_DOR 0x3f2 /* Digital Output Register */ 19 | #define FD_DIR 0x3f7 /* Digital Input Register (read) */ 20 | #define FD_DCR 0x3f7 /* Diskette Control Register (write)*/ 21 | 22 | /* Bits of main status register */ 23 | #define STATUS_BUSYMASK 0x0F /* drive busy mask */ 24 | #define STATUS_BUSY 0x10 /* FDC busy */ 25 | #define STATUS_DMA 0x20 /* 0- DMA mode */ 26 | #define STATUS_DIR 0x40 /* 0- cpu->fdc */ 27 | #define STATUS_READY 0x80 /* Data reg ready */ 28 | 29 | /* Bits of FD_ST0 */ 30 | #define ST0_DS 0x03 /* drive select mask */ 31 | #define ST0_HA 0x04 /* Head (Address) */ 32 | #define ST0_NR 0x08 /* Not Ready */ 33 | #define ST0_ECE 0x10 /* Equipment chech error */ 34 | #define ST0_SE 0x20 /* Seek end */ 35 | #define ST0_INTR 0xC0 /* Interrupt code mask */ 36 | 37 | /* Bits of FD_ST1 */ 38 | #define ST1_MAM 0x01 /* Missing Address Mark */ 39 | #define ST1_WP 0x02 /* Write Protect */ 40 | #define ST1_ND 0x04 /* No Data - unreadable */ 41 | #define ST1_OR 0x10 /* OverRun */ 42 | #define ST1_CRC 0x20 /* CRC error in data or addr */ 43 | #define ST1_EOC 0x80 /* End Of Cylinder */ 44 | 45 | /* Bits of FD_ST2 */ 46 | #define ST2_MAM 0x01 /* Missing Addess Mark (again) */ 47 | #define ST2_BC 0x02 /* Bad Cylinder */ 48 | #define ST2_SNS 0x04 /* Scan Not Satisfied */ 49 | #define ST2_SEH 0x08 /* Scan Equal Hit */ 50 | #define ST2_WC 0x10 /* Wrong Cylinder */ 51 | #define ST2_CRC 0x20 /* CRC error in data field */ 52 | #define ST2_CM 0x40 /* Control Mark = deleted */ 53 | 54 | /* Bits of FD_ST3 */ 55 | #define ST3_HA 0x04 /* Head (Address) */ 56 | #define ST3_TZ 0x10 /* Track Zero signal (1=track 0) */ 57 | #define ST3_WP 0x40 /* Write Protect */ 58 | 59 | /* Values for FD_COMMAND */ 60 | #define FD_RECALIBRATE 0x07 /* move to track 0 */ 61 | #define FD_SEEK 0x0F /* seek track */ 62 | #define FD_READ 0xE6 /* read with MT, MFM, SKip deleted */ 63 | #define FD_WRITE 0xC5 /* write with MT, MFM */ 64 | #define FD_SENSEI 0x08 /* Sense Interrupt Status */ 65 | #define FD_SPECIFY 0x03 /* specify HUT etc */ 66 | 67 | /* DMA commands */ 68 | #define DMA_READ 0x46 69 | #define DMA_WRITE 0x4A 70 | 71 | #endif 72 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UConvert.a.inc: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UConvert.a.inc 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | PROCEDURE DeHalftoneRow (srcPtr: Ptr; 9 | dstPtr: Ptr; 10 | rowBytes: INTEGER; 11 | cols: INTEGER; 12 | scale: INTEGER; 13 | thresTable: TThresTable); EXTERNAL; 14 | 15 | FUNCTION DoCountColors (rDataPtr: Ptr; 16 | gDataPtr: Ptr; 17 | bDataPtr: Ptr; 18 | size: INTEGER; 19 | colorTable: Ptr): BOOLEAN; EXTERNAL; 20 | 21 | PROCEDURE DoMapColors (rDataPtr: Ptr; 22 | gDataPtr: Ptr; 23 | bDataPtr: Ptr; 24 | size: INTEGER; 25 | colorTable: Ptr; 26 | outDataPtr: Ptr); EXTERNAL; 27 | 28 | PROCEDURE DoBuildInverse (table: Ptr; 29 | buffer: Ptr; 30 | step: INTEGER); EXTERNAL; 31 | 32 | PROCEDURE NoDitherRow (rDataPtr: Ptr; 33 | gDataPtr: Ptr; 34 | bDataPtr: Ptr; 35 | outDataPtr: Ptr; 36 | table: Ptr; 37 | count: INTEGER); EXTERNAL; 38 | 39 | PROCEDURE DiffuseRGB (rDataPtr: Ptr; 40 | gDataPtr: Ptr; 41 | bDataPtr: Ptr; 42 | outDataPtr: Ptr; 43 | thisError: Ptr; 44 | nextError: Ptr; 45 | table: Ptr; 46 | LUT: TRGBLookUpTable; 47 | count: INTEGER); EXTERNAL; 48 | 49 | PROCEDURE Do5BitHistogram (rDataPtr: Ptr; 50 | gDataPtr: Ptr; 51 | bDataPtr: Ptr; 52 | hist: Ptr; 53 | weight: INTEGER; 54 | count: INTEGER); EXTERNAL; 55 | 56 | PROCEDURE DoProjectHist (minR: INTEGER; 57 | maxR: INTEGER; 58 | minG: INTEGER; 59 | maxG: INTEGER; 60 | minB: INTEGER; 61 | maxB: INTEGER; 62 | projectR: Ptr; 63 | projectG: Ptr; 64 | projectB: Ptr; 65 | hist: Ptr); EXTERNAL; 66 | 67 | PROCEDURE DitherRGB (rDataPtr: Ptr; 68 | gDataPtr: Ptr; 69 | bDataPtr: Ptr; 70 | row: INTEGER; 71 | numCols: INTEGER; 72 | outDataPtr: Ptr; 73 | ditherSize: INTEGER; 74 | noiseTable: TNoiseTable; 75 | thresTable: TThresTable; 76 | colorTable: Ptr; 77 | VAR colors: INTEGER); EXTERNAL; 78 | 79 | PROCEDURE DoRGB2HSLorB (rPtr: Ptr; 80 | gPtr: Ptr; 81 | bPtr: Ptr; 82 | hPtr: Ptr; 83 | sPtr: Ptr; 84 | lPtr: Ptr; 85 | count: INTEGER; 86 | bright: BOOLEAN); EXTERNAL; 87 | 88 | PROCEDURE DoHSLorB2RGB (hPtr: Ptr; 89 | sPtr: Ptr; 90 | lPtr: Ptr; 91 | rPtr: Ptr; 92 | gPtr: Ptr; 93 | bPtr: Ptr; 94 | count: LONGINT; 95 | bright: BOOLEAN); EXTERNAL; 96 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UGIFFormat.a: -------------------------------------------------------------------------------- 1 | ;Photoshop version 1.0.1, file: UGIFFormat.a 2 | ; Computer History Museum, www.computerhistory.org 3 | ; This material is (C)Copyright 1990 Adobe Systems Inc. 4 | ; It may not be distributed to third parties. 5 | ; It is licensed for non-commercial use according to 6 | ; www.computerhistory.org/softwarelicense/photoshop/ 7 | 8 | INCLUDE 'Traps.a' 9 | 10 | ; ********************************************************************** 11 | 12 | SEG 'AGIFFormat' 13 | 14 | ExtractGIF PROC EXPORT 15 | 16 | ; Calling sequence (Pascal conventions): 17 | ; 18 | ; FUNCTION ExtractGIF (buffer: Ptr; 19 | ; offset: LONGINT; 20 | ; count: INTEGER): INTEGER; 21 | ; 22 | ; Parameter Offsets 23 | 24 | @result EQU 18 25 | @buffer EQU 14 26 | @offset EQU 10 27 | @count EQU 8 28 | 29 | ; Size of parameters 30 | 31 | @params EQU 10 32 | 33 | ; Save registers 34 | 35 | LINK A6,#0 36 | 37 | ; Extract the bits 38 | 39 | MOVE.L @buffer(A6),A0 40 | MOVE.L @offset(A6),D0 41 | LSR.L #3,D0 42 | MOVE.B 2(A0,D0.L),D1 43 | SWAP D1 44 | MOVE.B 1(A0,D0.L),D1 45 | LSL.W #8,D1 46 | MOVE.B (A0,D0.L),D1 47 | MOVE.W @offset+2(A6),D0 48 | AND.W #$7,D0 49 | LSR.L D0,D1 50 | 51 | ; Mask the bits 52 | 53 | MOVE.W @count(A6),D0 54 | MOVE.L #-1,D2 55 | LSL.W D0,D2 56 | NOT.W D2 57 | AND.W D2,D1 58 | 59 | ; Return the extracted bits 60 | 61 | MOVE.W D1,@result(A6) 62 | 63 | ; Clean up and exit 64 | 65 | UNLK A6 66 | MOVE.L (SP)+,A0 67 | ADD.W #@params,SP 68 | JMP (A0) 69 | 70 | ; ********************************************************************** 71 | 72 | SEG 'AGIFFormat' 73 | 74 | StuffGIF PROC EXPORT 75 | 76 | ; Calling sequence (Pascal conventions): 77 | ; 78 | ; PROCEDURE StuffGIF (buffer: Ptr; 79 | ; offset: LONGINT; 80 | ; code: INTEGER); 81 | ; 82 | ; Parameter Offsets 83 | 84 | @buffer EQU 14 85 | @offset EQU 10 86 | @code EQU 8 87 | 88 | ; Size of parameters 89 | 90 | @params EQU 10 91 | 92 | ; Save registers 93 | 94 | LINK A6,#0 95 | 96 | ; Stuff the bits 97 | 98 | MOVE.L @buffer(A6),A0 99 | CLR.L D0 100 | MOVE.W @code(A6),D0 101 | MOVE.W @offset+2(A6),D1 102 | AND.W #7,D1 103 | LSL.L D1,D0 104 | MOVE.L @offset(A6),D1 105 | LSR.L #3,D1 106 | OR.B D0,(A0,D1.L) 107 | LSR.W #8,D0 108 | OR.B D0,1(A0,D1.L) 109 | SWAP D0 110 | OR.B D0,2(A0,D1.L) 111 | 112 | ; Clean up and exit 113 | 114 | UNLK A6 115 | MOVE.L (SP)+,A0 116 | ADD.W #@params,SP 117 | JMP (A0) 118 | 119 | ; ********************************************************************** 120 | 121 | END 122 | -------------------------------------------------------------------------------- /linux-0.11/lib/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Makefile for some libs needed in the kernel. 3 | # 4 | # Note! Dependencies are done automagically by 'make dep', which also 5 | # removes any old dependencies. DON'T put your own dependencies here 6 | # unless it's something special (ie not a .c file). 7 | # 8 | 9 | AR =gar 10 | AS =gas 11 | LD =gld 12 | LDFLAGS =-s -x 13 | CC =gcc 14 | CFLAGS =-Wall -O -fstrength-reduce -fomit-frame-pointer -fcombine-regs \ 15 | -finline-functions -mstring-insns -nostdinc -I../include 16 | CPP =gcc -E -nostdinc -I../include 17 | 18 | .c.s: 19 | $(CC) $(CFLAGS) \ 20 | -S -o $*.s $< 21 | .s.o: 22 | $(AS) -c -o $*.o $< 23 | .c.o: 24 | $(CC) $(CFLAGS) \ 25 | -c -o $*.o $< 26 | 27 | OBJS = ctype.o _exit.o open.o close.o errno.o write.o dup.o setsid.o \ 28 | execve.o wait.o string.o malloc.o 29 | 30 | lib.a: $(OBJS) 31 | $(AR) rcs lib.a $(OBJS) 32 | sync 33 | 34 | clean: 35 | rm -f core *.o *.a tmp_make 36 | for i in *.c;do rm -f `basename $$i .c`.s;done 37 | 38 | dep: 39 | sed '/\#\#\# Dependencies/q' < Makefile > tmp_make 40 | (for i in *.c;do echo -n `echo $$i | sed 's,\.c,\.s,'`" "; \ 41 | $(CPP) -M $$i;done) >> tmp_make 42 | cp tmp_make Makefile 43 | 44 | ### Dependencies: 45 | _exit.s _exit.o : _exit.c ../include/unistd.h ../include/sys/stat.h \ 46 | ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \ 47 | ../include/utime.h 48 | close.s close.o : close.c ../include/unistd.h ../include/sys/stat.h \ 49 | ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \ 50 | ../include/utime.h 51 | ctype.s ctype.o : ctype.c ../include/ctype.h 52 | dup.s dup.o : dup.c ../include/unistd.h ../include/sys/stat.h \ 53 | ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \ 54 | ../include/utime.h 55 | errno.s errno.o : errno.c 56 | execve.s execve.o : execve.c ../include/unistd.h ../include/sys/stat.h \ 57 | ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \ 58 | ../include/utime.h 59 | malloc.s malloc.o : malloc.c ../include/linux/kernel.h ../include/linux/mm.h \ 60 | ../include/asm/system.h 61 | open.s open.o : open.c ../include/unistd.h ../include/sys/stat.h \ 62 | ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \ 63 | ../include/utime.h ../include/stdarg.h 64 | setsid.s setsid.o : setsid.c ../include/unistd.h ../include/sys/stat.h \ 65 | ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \ 66 | ../include/utime.h 67 | string.s string.o : string.c ../include/string.h 68 | wait.s wait.o : wait.c ../include/unistd.h ../include/sys/stat.h \ 69 | ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \ 70 | ../include/utime.h ../include/sys/wait.h 71 | write.s write.o : write.c ../include/unistd.h ../include/sys/stat.h \ 72 | ../include/sys/types.h ../include/sys/times.h ../include/sys/utsname.h \ 73 | ../include/utime.h 74 | -------------------------------------------------------------------------------- /msdos/v20source/DEVSYM.ASM: -------------------------------------------------------------------------------- 1 | SUBTTL DEVICE TABLE AND SRH DEFINITION 2 | PAGE 3 | ; The device table list has the form: 4 | SYSDEV STRUC 5 | SDEVNEXT DD ? ;Pointer to next device header 6 | SDEVATT DW ? ;Attributes of the device 7 | SDEVSTRAT DW ? ;Strategy entry point 8 | SDEVINT DW ? ;Interrupt entry point 9 | SDEVNAME DB 8 DUP (?) ;Name of device (only first byte used for block) 10 | SYSDEV ENDS 11 | 12 | ;Attribute bit masks 13 | DEVTYP EQU 8000H ;Bit 15 - 1 if Char, 0 if block 14 | DEVIOCTL EQU 4000H ;Bit 14 - CONTROL mode bit 15 | ISFATBYDEV EQU 2000H ;Bit 13 - Device uses FAT ID bytes, comp media. 16 | ISCIN EQU 0001H ;Bit 0 - This device is the console input. 17 | ISCOUT EQU 0002H ;Bit 1 - This device is the console output. 18 | ISNULL EQU 0004H ;Bit 2 - This device is the null device. 19 | ISCLOCK EQU 0008H ;Bit 3 - This device is the clock device. 20 | ISIBM EQU 0010H ;Bit 4 - This device is special 21 | 22 | ;Static Reguest Header 23 | SRHEAD STRUC 24 | REQLEN DB ? ;Length in bytes of request block 25 | REQUNIT DB ? ;Device unit number 26 | REQFUNC DB ? ;Type of request 27 | REQSTAT DW ? ;Status Word 28 | DB 8 DUP(?) ;Reserved for queue links 29 | SRHEAD ENDS 30 | 31 | ;Status word masks 32 | STERR EQU 8000H ;Bit 15 - Error 33 | STBUI EQU 0200H ;Bit 9 - Buisy 34 | STDON EQU 0100H ;Bit 8 - Done 35 | STECODE EQU 00FFH ;Error code 36 | WRECODE EQU 0 37 | 38 | ;Function codes 39 | DEVINIT EQU 0 ;Initialization 40 | DINITHL EQU 26 ;Size of init header 41 | DEVMDCH EQU 1 ;Media check 42 | DMEDHL EQU 15 ;Size of media check header 43 | DEVBPB EQU 2 ;Get BPB 44 | DEVRDIOCTL EQU 3 ;IOCTL read 45 | DBPBHL EQU 22 ;Size of Get BPB header 46 | DEVRD EQU 4 ;Read 47 | DRDWRHL EQU 22 ;Size of RD/WR header 48 | DEVRDND EQU 5 ;Non destructive read no wait (character devs) 49 | DRDNDHL EQU 14 ;Size of non destructive read header 50 | DEVIST EQU 6 ;Input status 51 | DSTATHL EQU 13 ;Size of status header 52 | DEVIFL EQU 7 ;Input flush 53 | DFLSHL EQU 15 ;Size of flush header 54 | DEVWRT EQU 8 ;Write 55 | DEVWRTV EQU 9 ;Write with verify 56 | DEVOST EQU 10 ;Output status 57 | DEVOFL EQU 11 ;Output flush 58 | DEVWRIOCTL EQU 12 ;IOCTL write 59 | -------------------------------------------------------------------------------- /msdos/v20object/INCOMP.DOC: -------------------------------------------------------------------------------- 1 | 2 | Areas where 2.0 is not compatible with previous versions of 3 | the DOS. 4 | 5 | + Direct calls to the BIOS 6 | Any program which jumped directly to the BIOS by way 7 | of the jump table at 40:0 will no longer work. 8 | 9 | + FAT pointer calls 10 | Programs which used system calls 27 and 28 to get a 11 | pointer to the FAT will no longer work. Because the 12 | FAT is now cached with other disk resources, there is 13 | no fixed location in memory to pass the address of. 14 | The calls still exist, however, and have the same 15 | format. THEY CAN ONLY BE USED TO GET THE FAT ID BYTE. 16 | On return ES:BX points to a FAT ID BYTE for the Drive. 17 | Doing anything except READing this ONE byte will 18 | probably crash the system. In order to get at the 19 | FAT, programs will first call DSKRESET (call 13) to 20 | flush out any dirty buffers, and then make a GETDPB 21 | call (call 31 or 50) to find out which sector on the 22 | disk the FAT starts at, how big it is, and how many 23 | copies of it there are. Then INT 25H and INT 26H can 24 | be used to transfer the FAT in and out of the programs 25 | memory space. 26 | 27 | + INT 25H and INT 26H 28 | In order for the above to work, and in order to 29 | maintain some order in the world of multi-surface 30 | disks, it is required that INT 25H and 26H use the 31 | MSDOS sector mapping rather than some rather arbitrary 32 | head-cylinder-sector mapping. 33 | 34 | The following subroutine will read the fat into the area of 35 | memory specified by DS:BX. DL contains the drive number, DL=0 36 | means read the fat from the default drive, DL=1 indicates read 37 | from drive A:, and so on. 38 | 39 | getfat: 40 | push bx ; save pointer to fat area 41 | push ds 42 | mov ah,50 ; request the dpb 43 | int 21h 44 | mov cx,[bx+15] ; get fat sector count 45 | mov dx,[bx+6] ; first sector of fat 46 | pop ds ; restore fat area pointer 47 | pop bx 48 | mov al,dl ; is it the default drive? 49 | or al,al 50 | jnz driveok ; if not, load fat 51 | 52 | mov ah,19h ; ask for default drive 53 | int 21h ; get the default drive 54 | inc al ; map a=0 to a=1 55 | driveok: 56 | dec al ; map a=1 to a=0 57 | int 25h ; read the fat into DS:BX 58 | pop ax ; clean up the stack 59 | ret 60 | -------------------------------------------------------------------------------- /msdos/v20source/INCOMP.txt: -------------------------------------------------------------------------------- 1 | 2 | Areas where 2.0 is not compatible with previous versions of 3 | the DOS. 4 | 5 | + Direct calls to the BIOS 6 | Any program which jumped directly to the BIOS by way 7 | of the jump table at 40:0 will no longer work. 8 | 9 | + FAT pointer calls 10 | Programs which used system calls 27 and 28 to get a 11 | pointer to the FAT will no longer work. Because the 12 | FAT is now cached with other disk resources, there is 13 | no fixed location in memory to pass the address of. 14 | The calls still exist, however, and have the same 15 | format. THEY CAN ONLY BE USED TO GET THE FAT ID BYTE. 16 | On return ES:BX points to a FAT ID BYTE for the Drive. 17 | Doing anything except READing this ONE byte will 18 | probably crash the system. In order to get at the 19 | FAT, programs will first call DSKRESET (call 13) to 20 | flush out any dirty buffers, and then make a GETDPB 21 | call (call 31 or 50) to find out which sector on the 22 | disk the FAT starts at, how big it is, and how many 23 | copies of it there are. Then INT 25H and INT 26H can 24 | be used to transfer the FAT in and out of the programs 25 | memory space. 26 | 27 | + INT 25H and INT 26H 28 | In order for the above to work, and in order to 29 | maintain some order in the world of multi-surface 30 | disks, it is required that INT 25H and 26H use the 31 | MSDOS sector mapping rather than some rather arbitrary 32 | head-cylinder-sector mapping. 33 | 34 | The following subroutine will read the fat into the area of 35 | memory specified by DS:BX. DL contains the drive number, DL=0 36 | means read the fat from the default drive, DL=1 indicates read 37 | from drive A:, and so on. 38 | 39 | getfat: 40 | push bx ; save pointer to fat area 41 | push ds 42 | mov ah,50 ; request the dpb 43 | int 21h 44 | mov cx,[bx+15] ; get fat sector count 45 | mov dx,[bx+6] ; first sector of fat 46 | pop ds ; restore fat area pointer 47 | pop bx 48 | mov al,dl ; is it the default drive? 49 | or al,al 50 | jnz driveok ; if not, load fat 51 | 52 | mov ah,19h ; ask for default drive 53 | int 21h ; get the default drive 54 | inc al ; map a=0 to a=1 55 | driveok: 56 | dec al ; map a=1 to a=0 57 | int 25h ; read the fat into DS:BX 58 | pop ax ; clean up the stack 59 | ret 60 | -------------------------------------------------------------------------------- /linux-0.11/include/linux/sys.h: -------------------------------------------------------------------------------- 1 | extern int sys_setup(); 2 | extern int sys_exit(); 3 | extern int sys_fork(); 4 | extern int sys_read(); 5 | extern int sys_write(); 6 | extern int sys_open(); 7 | extern int sys_close(); 8 | extern int sys_waitpid(); 9 | extern int sys_creat(); 10 | extern int sys_link(); 11 | extern int sys_unlink(); 12 | extern int sys_execve(); 13 | extern int sys_chdir(); 14 | extern int sys_time(); 15 | extern int sys_mknod(); 16 | extern int sys_chmod(); 17 | extern int sys_chown(); 18 | extern int sys_break(); 19 | extern int sys_stat(); 20 | extern int sys_lseek(); 21 | extern int sys_getpid(); 22 | extern int sys_mount(); 23 | extern int sys_umount(); 24 | extern int sys_setuid(); 25 | extern int sys_getuid(); 26 | extern int sys_stime(); 27 | extern int sys_ptrace(); 28 | extern int sys_alarm(); 29 | extern int sys_fstat(); 30 | extern int sys_pause(); 31 | extern int sys_utime(); 32 | extern int sys_stty(); 33 | extern int sys_gtty(); 34 | extern int sys_access(); 35 | extern int sys_nice(); 36 | extern int sys_ftime(); 37 | extern int sys_sync(); 38 | extern int sys_kill(); 39 | extern int sys_rename(); 40 | extern int sys_mkdir(); 41 | extern int sys_rmdir(); 42 | extern int sys_dup(); 43 | extern int sys_pipe(); 44 | extern int sys_times(); 45 | extern int sys_prof(); 46 | extern int sys_brk(); 47 | extern int sys_setgid(); 48 | extern int sys_getgid(); 49 | extern int sys_signal(); 50 | extern int sys_geteuid(); 51 | extern int sys_getegid(); 52 | extern int sys_acct(); 53 | extern int sys_phys(); 54 | extern int sys_lock(); 55 | extern int sys_ioctl(); 56 | extern int sys_fcntl(); 57 | extern int sys_mpx(); 58 | extern int sys_setpgid(); 59 | extern int sys_ulimit(); 60 | extern int sys_uname(); 61 | extern int sys_umask(); 62 | extern int sys_chroot(); 63 | extern int sys_ustat(); 64 | extern int sys_dup2(); 65 | extern int sys_getppid(); 66 | extern int sys_getpgrp(); 67 | extern int sys_setsid(); 68 | extern int sys_sigaction(); 69 | extern int sys_sgetmask(); 70 | extern int sys_ssetmask(); 71 | extern int sys_setreuid(); 72 | extern int sys_setregid(); 73 | 74 | fn_ptr sys_call_table[] = { sys_setup, sys_exit, sys_fork, sys_read, 75 | sys_write, sys_open, sys_close, sys_waitpid, sys_creat, sys_link, 76 | sys_unlink, sys_execve, sys_chdir, sys_time, sys_mknod, sys_chmod, 77 | sys_chown, sys_break, sys_stat, sys_lseek, sys_getpid, sys_mount, 78 | sys_umount, sys_setuid, sys_getuid, sys_stime, sys_ptrace, sys_alarm, 79 | sys_fstat, sys_pause, sys_utime, sys_stty, sys_gtty, sys_access, 80 | sys_nice, sys_ftime, sys_sync, sys_kill, sys_rename, sys_mkdir, 81 | sys_rmdir, sys_dup, sys_pipe, sys_times, sys_prof, sys_brk, sys_setgid, 82 | sys_getgid, sys_signal, sys_geteuid, sys_getegid, sys_acct, sys_phys, 83 | sys_lock, sys_ioctl, sys_fcntl, sys_mpx, sys_setpgid, sys_ulimit, 84 | sys_uname, sys_umask, sys_chroot, sys_ustat, sys_dup2, sys_getppid, 85 | sys_getpgrp, sys_setsid, sys_sigaction, sys_sgetmask, sys_ssetmask, 86 | sys_setreuid,sys_setregid }; 87 | -------------------------------------------------------------------------------- /linux-0.11/fs/pipe.c: -------------------------------------------------------------------------------- 1 | /* 2 | * linux/fs/pipe.c 3 | * 4 | * (C) 1991 Linus Torvalds 5 | */ 6 | 7 | #include 8 | 9 | #include 10 | #include /* for get_free_page */ 11 | #include 12 | 13 | int read_pipe(struct m_inode * inode, char * buf, int count) 14 | { 15 | int chars, size, read = 0; 16 | 17 | while (count>0) { 18 | while (!(size=PIPE_SIZE(*inode))) { 19 | wake_up(&inode->i_wait); 20 | if (inode->i_count != 2) /* are there any writers? */ 21 | return read; 22 | sleep_on(&inode->i_wait); 23 | } 24 | chars = PAGE_SIZE-PIPE_TAIL(*inode); 25 | if (chars > count) 26 | chars = count; 27 | if (chars > size) 28 | chars = size; 29 | count -= chars; 30 | read += chars; 31 | size = PIPE_TAIL(*inode); 32 | PIPE_TAIL(*inode) += chars; 33 | PIPE_TAIL(*inode) &= (PAGE_SIZE-1); 34 | while (chars-->0) 35 | put_fs_byte(((char *)inode->i_size)[size++],buf++); 36 | } 37 | wake_up(&inode->i_wait); 38 | return read; 39 | } 40 | 41 | int write_pipe(struct m_inode * inode, char * buf, int count) 42 | { 43 | int chars, size, written = 0; 44 | 45 | while (count>0) { 46 | while (!(size=(PAGE_SIZE-1)-PIPE_SIZE(*inode))) { 47 | wake_up(&inode->i_wait); 48 | if (inode->i_count != 2) { /* no readers */ 49 | current->signal |= (1<<(SIGPIPE-1)); 50 | return written?written:-1; 51 | } 52 | sleep_on(&inode->i_wait); 53 | } 54 | chars = PAGE_SIZE-PIPE_HEAD(*inode); 55 | if (chars > count) 56 | chars = count; 57 | if (chars > size) 58 | chars = size; 59 | count -= chars; 60 | written += chars; 61 | size = PIPE_HEAD(*inode); 62 | PIPE_HEAD(*inode) += chars; 63 | PIPE_HEAD(*inode) &= (PAGE_SIZE-1); 64 | while (chars-->0) 65 | ((char *)inode->i_size)[size++]=get_fs_byte(buf++); 66 | } 67 | wake_up(&inode->i_wait); 68 | return written; 69 | } 70 | 71 | int sys_pipe(unsigned long * fildes) 72 | { 73 | struct m_inode * inode; 74 | struct file * f[2]; 75 | int fd[2]; 76 | int i,j; 77 | 78 | j=0; 79 | for(i=0;j<2 && if_count++; 82 | if (j==1) 83 | f[0]->f_count=0; 84 | if (j<2) 85 | return -1; 86 | j=0; 87 | for(i=0;j<2 && ifilp[i]) { 89 | current->filp[ fd[j]=i ] = f[j]; 90 | j++; 91 | } 92 | if (j==1) 93 | current->filp[fd[0]]=NULL; 94 | if (j<2) { 95 | f[0]->f_count=f[1]->f_count=0; 96 | return -1; 97 | } 98 | if (!(inode=get_pipe_inode())) { 99 | current->filp[fd[0]] = 100 | current->filp[fd[1]] = NULL; 101 | f[0]->f_count = f[1]->f_count = 0; 102 | return -1; 103 | } 104 | f[0]->f_inode = f[1]->f_inode = inode; 105 | f[0]->f_pos = f[1]->f_pos = 0; 106 | f[0]->f_mode = 1; /* read */ 107 | f[1]->f_mode = 2; /* write */ 108 | put_fs_long(fd[0],0+fildes); 109 | put_fs_long(fd[1],1+fildes); 110 | return 0; 111 | } 112 | -------------------------------------------------------------------------------- /photoshop v1.0.1/UTIFFormat.p: -------------------------------------------------------------------------------- 1 | {Photoshop version 1.0.1, file: UTIFFormat.p 2 | Computer History Museum, www.computerhistory.org 3 | This material is (C)Copyright 1990 Adobe Systems Inc. 4 | It may not be distributed to third parties. 5 | It is licensed for non-commercial use according to 6 | www.computerhistory.org/softwarelicense/photoshop/ } 7 | 8 | UNIT UTIFFormat; 9 | 10 | INTERFACE 11 | 12 | USES 13 | {$LOAD MacIntf.LOAD} 14 | MemTypes, QuickDraw, OSIntf, ToolIntf, PackIntf, 15 | {$LOAD UMacApp.LOAD} 16 | UObject, UList, UMacApp, 17 | {$LOAD UPhotoshop.LOAD} 18 | PaletteMgr, UConstants, UVMemory, UPhotoshop, 19 | {$LOAD} 20 | UDialog, URootFormat, ULZWCompress, UProgress; 21 | 22 | TYPE 23 | 24 | TTIFFormat = OBJECT (TRootFormat) 25 | 26 | fDoc: TImageDocument; 27 | 28 | fMotorola: BOOLEAN; 29 | fCompressed: BOOLEAN; 30 | 31 | fMetric: BOOLEAN; 32 | fResolution: EXTENDED; 33 | 34 | fPredictor: INTEGER; 35 | fBitsPerSample: INTEGER; 36 | fCompressionCode: INTEGER; 37 | fPlanarConfiguration: INTEGER; 38 | fPhotometricInterpretation: INTEGER; 39 | 40 | fStripOffsets: LONGINT; 41 | fStripByteCounts: LONGINT; 42 | 43 | fLongStripOffsets: BOOLEAN; 44 | fLongStripByteCounts: BOOLEAN; 45 | 46 | fRowsPerStrip: INTEGER; 47 | 48 | PROCEDURE TTIFFormat.IImageFormat; OVERRIDE; 49 | 50 | FUNCTION TTIFFormat.CanWrite (doc: TImageDocument): BOOLEAN; OVERRIDE; 51 | 52 | PROCEDURE TTIFFormat.SetFormatOptions (doc: TImageDocument); OVERRIDE; 53 | 54 | PROCEDURE TTIFFormat.ParseTag (tagCode: INTEGER; 55 | tagType: INTEGER; 56 | tagCount: LONGINT); 57 | 58 | PROCEDURE TTIFFormat.DecompressCCITT (VAR srcPtr: Ptr; dstPtr: Ptr); 59 | 60 | PROCEDURE TTIFFormat.DecompressLZW (srcPtr, dstPtr: Ptr; 61 | count: LONGINT); 62 | 63 | PROCEDURE TTIFFormat.ReadPlaneStrip (plane: INTEGER; 64 | strip: INTEGER; 65 | count: LONGINT); 66 | 67 | PROCEDURE TTIFFormat.ReadRGBStrip (strip: INTEGER; count: LONGINT); 68 | 69 | PROCEDURE TTIFFormat.AdjustPlane (plane: INTEGER); 70 | 71 | PROCEDURE TTIFFormat.AddBitPlane (srcArray: TVMArray; 72 | dstArray: TVMArray); 73 | 74 | PROCEDURE TTIFFormat.DoRead (doc: TImageDocument; 75 | refNum: INTEGER; 76 | rsrcExists: BOOLEAN); OVERRIDE; 77 | 78 | FUNCTION TTIFFormat.DataForkBytes 79 | (doc: TImageDocument): LONGINT; OVERRIDE; 80 | 81 | FUNCTION TTIFFormat.CompressStrip (srcPtr: Ptr; 82 | dstPtr: Ptr; 83 | srcBytes: LONGINT; 84 | dstBytes: LONGINT): LONGINT; 85 | 86 | PROCEDURE TTIFFormat.WriteLZW (doc: TImageDocument; 87 | stripsPerImage: INTEGER; 88 | rowBytes: LONGINT); 89 | 90 | PROCEDURE TTIFFormat.DoWrite 91 | (doc: TImageDocument; refNum: INTEGER); OVERRIDE; 92 | 93 | END; 94 | 95 | IMPLEMENTATION 96 | 97 | {$I UTIFFormat.inc1.p} 98 | 99 | END. 100 | -------------------------------------------------------------------------------- /msdos/v20source/SORTMES.ASM: -------------------------------------------------------------------------------- 1 | TITLE SORT Messages 2 | 3 | false equ 0 4 | true equ not false 5 | msver equ false 6 | ibm equ true 7 | internat equ true 8 | 9 | CONST SEGMENT PUBLIC BYTE 10 | 11 | PUBLIC BADVER,ERRMSG,ERRMSG2 12 | 13 | BADVER DB "SORT: Incorrect DOS version",13,10,"$" 14 | 15 | ERRMSG DW ERRMSG2 - MSG1TXT 16 | MSG1TXT DB "SORT: Insufficient memory",13,10 17 | 18 | ERRMSG2 DW ENDTEXT - MSG2TXT 19 | MSG2TXT DB "SORT: Insufficient disk space",13,10 20 | 21 | if internat 22 | public table 23 | ;This table defibes the coalating sequence to be used for 24 | ;international characters. This table also equates 25 | ;lower case character to upper case unlike a straight ASCII sort. 26 | ;If your character set is like the IBM PC simply turn 27 | ;on the IBM conditional. If it is different simply modify the 28 | ;table appropriately. Note: to insert a foreign language character 29 | ;between two ASCII characters it will be necessary to 30 | ;"shift" all the ASCII characters to make room for a new character. 31 | ;If this is done be sure to equate the foreign characters to the new 32 | ;values instead of the old values which have been set here to the 33 | ;upper case ASCII values. 34 | 35 | table db 0,1,2,3,4,5,6,7 36 | db 8,9,10,11,12,13,14,15 37 | db 16,17,18,19,20,21,22,23 38 | db 24,25,26,27,28,29,30,31 39 | db " ","!",'"',"#","$","%","&","'" 40 | db "(",")","*","+",",","-",".","/" 41 | db "0","1","2","3","4","5","6","7" 42 | db "8","9",":",";","<","=",">","?" 43 | db "@","A","B","C","D","E","F","G" 44 | db "H","I","J","K","L","M","N","O" 45 | db "P","Q","R","S","T","U","V","W" 46 | db "X","Y","Z","[","\","]","^","_" 47 | db "`","A","B","C","D","E","F","G" 48 | db "H","I","J","K","L","M","N","O" 49 | db "P","Q","R","S","T","U","V","W" 50 | db "X","Y","Z","{","|","}","~",127 51 | if msver 52 | db 128,129,130,131,132,133,134,135 53 | db 136,137,138,139,140,141,142,143 54 | db 144,145,146,147,148,149,150,151 55 | db 152,153,154,155,156,157,158,159 56 | db 160,161,162,163,164,165,166,167 57 | db 168,169,170,171,172,173,174,175 58 | endif 59 | if ibm 60 | db "C","U","E","A","A","A","A","C" 61 | db "E","E","E","I","I","I","A","A" 62 | db "E","A","A","O","O","O","U","U" 63 | db "Y","O","U","$","$","$","$","$" 64 | db "A","I","O","U","N","N",166,167 65 | db "?",169,170,171,172,"!",'"','"' 66 | endif 67 | db 176,177,178,179,180,181,182,183 68 | db 184,185,186,187,188,189,190,191 69 | db 192,193,194,195,196,197,198,199 70 | db 200,201,202,203,204,205,206,207 71 | db 208,209,210,211,212,213,214,215 72 | db 216,217,218,219,220,221,222,223 73 | if ibm 74 | db 224,"S" 75 | endif 76 | if msver 77 | db 224,225 78 | endif 79 | db 226,227,228,229,230,231 80 | db 232,233,234,235,236,237,238,239 81 | db 240,241,242,243,244,245,246,247 82 | db 248,249,250,251,252,253,254,255 83 | endif 84 | ENDTEXT EQU $ 85 | 86 | CONST ENDS 87 | END 88 | --------------------------------------------------------------------------------