[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2395.0. "Help on 3 unknown C language funtions" by HPSTEK::SENNA () Fri Mar 24 1989 15:00

    Fellow Amigan's,
    
    	I need someone who may know what the following functions do,
    	and how they are used. I suspect they are from the unix domain
    	but I am not sure. This is for our favorite company "DEC". Some
    	code was sent to us to help us do our job better and these are
    	undefined at link time!
                                                          
                                ASM
    				UTIME
    				UNLINK
    				      
    
    				Please come to our rescue!
T.RTitleUserPersonal
Name
DateLines
2395.11-Yup, 2-partialy, 3-a guessLEDDEV::WALLACEFri Mar 24 1989 18:0716
    unlink(path) - "The unlink system call removes the entry for the file
    'path' from its directory. Use delete(path) which "causes a file
    to be deleted". The return values of the two functions are equivlent
    (that is 0 for success, other than 0 otherwise).
    
    utime(path,times) - "The 'path' points to a path name naming a file.
    The utime system call sets the access and modification times of the
    named file." I don't know of a VMS equivelent.
    
    asm(...) - Probably allows inline assembly code but I couldn't find
    it in the unix docs. There is no equivelent to this in VMS asside
    from writting a seperate assembly routine and linking it with the
    C code. This does not give you 'inline' assembly code but it does
    give you access via a function call to assembly code.
    
    	Ray