sysproto.h
sys/signal.h
sys/thread.h
src/sys/include/sys/gen_calls.h
src/sys/include/sys/kern_descrip.h
src/sys/include/sys/kern_sig.h
src/sys/include/sys/kern_sysctl.h
src/sys/include/sys/pipe.h
src/sys/include/ubixos/syscalls_new.h
src/sys/include/vfs/vfs.h
src/sys/include/vmm/paging.h
src/sys/kernel/kern_descrip.c
src/sys/kernel/kern_sig.c
src/sys/kernel/kern_sysctl.c
src/sys/kernel/pipe.c
sys/thread.h
ubixos/types.h
sys/_types.h
src/sys/include/sys/sysproto.h
sys/signal.h
src/sys/ufs/ffs.c
src/sys/include/ufs/ufs.h
src/sys/pci/hd.c
src/sys/include/ufs/ffs.h
src/sys/kernel/vitals.c
src/sys/kernel/elf.c
src/sys/kmods/kmod.c
src/sys/kernel/kern_sysctl.c
src/sys/include/ubixos/vitals.h
src/sys/kernel/pipe.c
src/sys/lib/kmalloc.c
src/sys/vmm/paging.c
src/sys/ubixfs/directory.c
src/sys/ufs/ufs.c
src/sys/kernel/kern_sig.c
src/sys/kernel/ubthread.c
src/sys/kernel/systemtask.c
src/sys/lib/ogprintf.cc
src/sys/include/vmm/paging.h
src/sys/kernel/ld.c
src/sys/include/sys/pipe.h
src/sys/kernel/fork.c
src/sys/vmm/createvirtualspace.c
src/sys/vmm/vmm_init.c
src/sys/ubixfs/block.c
src/sys/include/sys/kern_sysctl.h
src/sys/include/vmm/vmm.h
src/sys/kernel/sched.c
src/sys/vmm/setpageattributes.c
src/sys/include/sys/gen_calls.h
src/sys/vmm/getphysicaladdr.c
src/sys/ubixfs/dirCache.c
src/sys/ubixfs/ubixfs.c
src/sys/include/vfs/vfs.h
src/sys/init/main.c
src/sys/include/ubixfs/ubixfs.h
src/sys/kernel/bioscall.c
src/sys/include/sys/kern_descrip.h
src/sys/kernel/syscall.c
src/sys/include/sys/kern_sig.h
src/sys/isa/ne2k.c
src/sys/include/pci/hd.h
src/sys/isa/atkbd.c
src/sys/vmm/pagefault.c
src/sys/ubixfs/thread.c
src/sys/include/ubixos/init.h
src/sys/vfs/mount.c
src/sys/devfs/devfs.c
src/sys/include/sys/sysproto.h
src/sys/vmm/unmappage.c
src/sys/kernel/time.c
src/sys/vmm/vmm_memory.c
src/sys/kernel/kern_descrip.c
src/sys/kernel/endtask.c
src/sys/vfs/file.c
src/sys/vmm/getfreepage.c
src/sys/sys/idt.c
src/sys/kernel/gen_calls.c
src/sys/kernel/syscall_new.c
src/sys/kernel/exec.c
src/sys/include/ubixos/syscalls_new.h
src/sys/include/sys/buf.h
src/sys/vmm/getfreevirtualpage.c
src/sys/vmm/copyvirtualspace.c
src/sys/vfs/vfs.c
close_args
fcntl_args
fstat_args
getdtablesize_args
getgid_args
getpid_args
gettimeofday_args
getuid_args
ioctl_args
issetugid_args
mmap_args
munmap_args
obreak_args
open_args
pipe_args
read_args
readlink_args
setitimer_args
sigaction_args
sigprocmask_args
sysctl_args
write_args
PAD_
t
(sizeof(register_t) <= sizeof(t) ? \ 0 : sizeof(register_t) - sizeof(t))
PADL_
t
0
PADR_
t
PAD_(t)
int typedef int register_t register_t
int int setitimer (struct thread *td, struct setitimer_args *uap) setitimer struct thread * td struct setitimer_args * uap

place holder for now functionality to be added later

int int sys_open (struct thread *td, struct open_args *uap) sys_open struct thread * td struct open_args * uap

entry point for open syscall

*td

pointer to callers thread

*uap

pointer to user space arguements for call

index to file descriptor

falloc
file::fd
fopen
file::path
open_args::path
strcpy
thread::td_retval
int int sys_write (struct thread *td, struct write_args *uap) sys_write struct thread * td struct write_args * uap write_args::buf write_args::fd kfree kmalloc kprintf memcpy write_args::nbyte taskStruct::td thread::td_retval

    /*****************************************************************************************
    Copyright(c)2002-2004TheUbixOSProject
    Allrightsreserved.

    Redistributionanduseinsourceandbinaryforms,withorwithoutmodification,are
    permittedprovidedthatthefollowingconditionsaremet:

    Redistributionsofsourcecodemustretaintheabovecopyrightnotice,thislistof
    conditions,thefollowingdisclaimerandthelistofauthors.Redistributionsinbinary
    formmustreproducetheabovecopyrightnotice,thislistofconditions,thefollowing
    disclaimerandthelistofauthorsinthedocumentationand/orothermaterialsprovided
    withthedistribution.NeitherthenameoftheUbixOSProjectnorthenamesofits
    contributorsmaybeusedtoendorseorpromoteproductsderivedfromthissoftware
    withoutspecificpriorwrittenpermission.

    THISSOFTWAREISPROVIDEDBYTHECOPYRIGHTHOLDERSANDCONTRIBUTORS"ASIS"ANDANY
    EXPRESSORIMPLIEDWARRANTIES,INCLUDING,BUTNOTLIMITEDTO,THEIMPLIEDWARRANTIESOF
    MERCHANTABILITYANDFITNESSFORAPARTICULARPURPOSEAREDISCLAIMED.INNOEVENTSHALL
    THECOPYRIGHTOWNERORCONTRIBUTORSBELIABLEFORANYDIRECT,INDIRECT,INCIDENTAL,
    SPECIAL,EXEMPLARY,ORCONSEQUENTIALDAMAGES(INCLUDING,BUTNOTLIMITEDTO,PROCUREMENT
    OFSUBSTITUTEGOODSORSERVICES;LOSSOFUSE,DATA,ORPROFITS;ORBUSINESSINTERRUPTION)
    HOWEVERCAUSEDANDONANYTHEORYOFLIABILITY,WHETHERINCONTRACT,STRICTLIABILITY,OR
    TORT(INCLUDINGNEGLIGENCEOROTHERWISE)ARISINGINANYWAYOUTOFTHEUSEOFTHIS
    SOFTWARE,EVENIFADVISEDOFTHEPOSSIBILITYOFSUCHDAMAGE.

    $Id: sysproto_8h.xml 88 2016-01-12 00:11:29Z reddawg $

    *****************************************************************************************/

    #ifndef_SYSPROTO_H
    #define_SYSPROTO_H

    #include<sys/signal.h>
    #include<sys/thread.h>

    typedefintregister_t;

    #definePAD_(t)(sizeof(register_t)<=sizeof(t)?\
    0:sizeof(register_t)-sizeof(t))

    #ifBYTE_ORDER==LITTLE_ENDIAN
    #definePADL_(t)0
    #definePADR_(t)PAD_(t)
    #else
    #definePADL_(t)PAD_(t)
    #definePADR_(t)0
    #endif

    //Protos
    structwrite_args{
    charfd_l_[PADL_(int)];intfd;charfd_r_[PADR_(int)];
    charbuf_l_[PADL_(constvoid*)];constvoid*buf;charbuf_r_[PADR_(constvoid*)];
    charnbyte_l_[PADL_(size_t)];size_tnbyte;charnbyte_r_[PADR_(size_t)];
    };

    structopen_args{
    charpath_l_[PADL_(char*)];char*path;charpath_r_[PADR_(char*)];
    charflags_l_[PADL_(int)];intflags;charflags_r_[PADR_(int)];
    charmode_l_[PADL_(int)];intmode;charmode_r_[PADR_(int)];
    };

    structsetitimer_args{
    charwhich_l_[PADL_(u_int)];u_intwhich;charwhich_r_[PADR_(u_int)];
    charitv_l_[PADL_(structitimerval*)];structitimerval*itv;charitv_r_[PADR_(structitimerval*)];
    charoitv_l_[PADL_(structitimerval*)];structitimerval*oitv;charoitv_r_[PADR_(structitimerval*)];
    };

    //Old

    structsysctl_args{
    charname_l_[PADL_(int*)];int*name;charname_r_[PADR_(int*)];
    charnamelen_l_[PADL_(u_int)];u_intnamelen;charnamelen_r_[PADR_(u_int)];
    charold_l_[PADL_(void*)];void*old;charold_r_[PADR_(void*)];
    charoldlenp_l_[PADL_(size_t*)];size_t*oldlenp;charoldlenp_r_[PADR_(size_t*)];
    charnew_l_[PADL_(void*)];void*new;charnew_r_[PADR_(void*)];
    charnewlen_l_[PADL_(size_t)];size_tnewlen;charnewlen_r_[PADR_(size_t)];
    };

    structgetpid_args{
    register_tdummy;
    };
    structissetugid_args{
    register_tdummy;
    };
    structfcntl_args{
    charfd_l_[PADL_(int)];intfd;charfd_r_[PADR_(int)];
    charcmd_l_[PADL_(int)];intcmd;charcmd_r_[PADR_(int)];
    chararg_l_[PADL_(long)];longarg;chararg_r_[PADR_(long)];
    };

    structpipe_args{
    register_tdummy;
    };

    structreadlink_args{
    charpath_l_[PADL_(char*)];char*path;charpath_r_[PADR_(char*)];
    charbuf_l_[PADL_(char*)];char*buf;charbuf_r_[PADR_(char*)];
    charcount_l_[PADL_(int)];intcount;charcount_r_[PADR_(int)];
    };

    structgetuid_args{
    register_tdummy;
    };

    structgetgid_args{
    register_tdummy;
    };
    structclose_args{
    charfd_l_[PADL_(int)];intfd;charfd_r_[PADR_(int)];
    };

    structmmap_args{
    charaddr_l_[PADL_(caddr_t)];caddr_taddr;charaddr_r_[PADR_(caddr_t)];
    charlen_l_[PADL_(size_t)];size_tlen;charlen_r_[PADR_(size_t)];
    charprot_l_[PADL_(int)];intprot;charprot_r_[PADR_(int)];
    charflags_l_[PADL_(int)];intflags;charflags_r_[PADR_(int)];
    charfd_l_[PADL_(int)];intfd;charfd_r_[PADR_(int)];
    charpad_l_[PADL_(int)];intpad;charpad_r_[PADR_(int)];
    charpos_l_[PADL_(off_t)];off_tpos;charpos_r_[PADR_(off_t)];
    };

    structobreak_args{
    charnsize_l_[PADL_(char*)];char*nsize;charnsize_r_[PADR_(char*)];
    };

    structsigaction_args{
    charsig_l_[PADL_(int)];intsig;charsig_r_[PADR_(int)];
    charact_l_[PADL_(conststructsigaction*)];conststructsigaction*act;charact_r_[PADR_(conststructsigaction*)];
    charoact_l_[PADL_(structsigaction*)];structsigaction*oact;charoact_r_[PADR_(structsigaction*)];
    };

    structgetdtablesize_args{
    register_tdummy;
    };

    structmunmap_args{
    charaddr_l_[PADL_(void*)];void*addr;charaddr_r_[PADR_(void*)];
    charlen_l_[PADL_(size_t)];size_tlen;charlen_r_[PADR_(size_t)];
    };

    structsigprocmask_args{
    charhow_l_[PADL_(int)];inthow;charhow_r_[PADR_(int)];
    charset_l_[PADL_(constsigset_t*)];constsigset_t*set;charset_r_[PADR_(constsigset_t*)];
    charoset_l_[PADL_(sigset_t*)];sigset_t*oset;charoset_r_[PADR_(sigset_t*)];
    };
    structgettimeofday_args{
    chartp_l_[PADL_(structtimeval*)];structtimeval*tp;chartp_r_[PADR_(structtimeval*)];
    chartzp_l_[PADL_(structtimezone*)];structtimezone*tzp;chartzp_r_[PADR_(structtimezone*)];
    };
    structfstat_args{
    charfd_l_[PADL_(int)];intfd;charfd_r_[PADR_(int)];
    charsb_l_[PADL_(structstat*)];structstat*sb;charsb_r_[PADR_(structstat*)];
    };
    structioctl_args{
    charfd_l_[PADL_(int)];intfd;charfd_r_[PADR_(int)];
    charcom_l_[PADL_(u_long)];u_longcom;charcom_r_[PADR_(u_long)];
    chardata_l_[PADL_(caddr_t)];caddr_tdata;chardata_r_[PADR_(caddr_t)];
    };

    structread_args{
    charfd_l_[PADL_(int)];intfd;charfd_r_[PADR_(int)];
    charbuf_l_[PADL_(void*)];void*buf;charbuf_r_[PADR_(void*)];
    charnbyte_l_[PADL_(size_t)];size_tnbyte;charnbyte_r_[PADR_(size_t)];
    };

    //FuncDefs
    intsys_write(structthread*td,structwrite_args*uap);
    intsys_open(structthread*td,structopen_args*uap);
    intsetitimer(structthread*td,structsetitimer_args*uap);

    #endif

    /***
    END
    ***/