• Coding question

    From Plt@VERT/MB to All on Sat Nov 10 23:06:57 2018
    I was looking at some code and I am trying to figure out what does the 770 meanãon the following open statement?ããfopen var_001 770 "%/ntelval.tmpããWhat does 770 do?ããThanksãã---ã þ Synchronet þ sbbs.dynu.net 2025ã
  • From Plt@VERT/MB to All on Sat Nov 10 23:33:51 2018
    Re: Coding questionã By: Plt to All on Sat Nov 10 2018 23:06:57ãã > I was looking at some code and I am trying to figure out what does the 770ããI found the answer to my question.ãã---ã þ Synchronet þ sbbs.dynu.net 2025ã
  • From MRO@VERT/BBSESINF to Plt on Sat Nov 10 23:42:49 2018
    Re: Coding questionã By: Plt to All on Sat Nov 10 2018 11:33 pmãã > Re: Coding questionã > By: Plt to All on Sat Nov 10 2018 23:06:57ãã > > I was looking at some code and I am trying to figure out what does theã > > 770ãã > I found the answer to my question.ããããunbaja creates random designations for stuff that is lost when it decompiles.ãatleast i think that's why.ããso if i had a variable that was named BUTT, when decompiled it would giveãit another designationã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From Nelgin@VERT/EOTLBBS to MRO on Sun Nov 11 18:15:44 2018
    MRO wrote:
    Re: Coding question
    By: Plt to All on Sat Nov 10 2018 11:33 pm

    Re: Coding question
    By: Plt to All on Sat Nov 10 2018 23:06:57

    I was looking at some code and I am trying to figure out what does the
    770

    I found the answer to my question.



    unbaja creates random designations for stuff that is lost when it decompiles.
    atleast i think that's why.

    so if i had a variable that was named BUTT, when decompiled it would give
    it another designation
    ---
    â–  Synchronet â–  ::: BBSES.info - free BBS services :::

    Probably more to do with the mode the file is created with. 770 = rwx to
    both owner and group and no permissions to other.

    ---
    þ Synchronet þ End Of The Line BBS - endofthelinebbs.com
  • From MRO@VERT/BBSESINF to Nelgin on Sun Nov 11 22:31:47 2018
    Re: Re: Coding questionã By: Nelgin to MRO on Sun Nov 11 2018 06:15 pmãã > MRO wrote:ã > M> Re: Coding questionã > M> By: Plt to All on Sat Nov 10 2018 11:33 pmãã > >> Re: Coding questionã > >> By: Plt to All on Sat Nov 10 2018 23:06:57ãã > >> > I was looking at some code and I am trying to figure out what doesã > theã > >> > 770ãã > >> I found the answer to my question.ãããã > M> unbaja creates random designations for stuff that is lost when itã > M> decompiles.ã > M> atleast i think that's why.ãã > M> so if i had a variable that was named BUTT, when decompiled it would giveã > M> it another designationã > M> ---ã > M> â–  Synchronet â–  ::: BBSES.info - free BBS services :::ãã > Probably more to do with the mode the file is created with. 770 = rwx toã > both owner and group and no permissions to other.ãããwell it's an undocumented feature then.ãã*FOPEN <int_var> <#> <"str" or str_var> FILE_IO.INCã args: handle access path_and_filenameã*------------------------------------------ãThis function opens or creates a disk file (path_and_filename) for read and/orãwrite access. This function is the Baja equivalent of the standard C fopen()ãfunction. No file I/O operations can be performed on a file until it has beenãopened with this function. The 'handle' argument must be a defined integerãvariable name. The 'access' argument is the requested open access. The accessãflags (defined in FILE_IO.INC) are:ããAccess Flag Descriptionã~~~~~~~~~~~ ~~~~~~~~~~~ãO_RDONLY Read OnlyãO_WRONLY Write OnlyãO_RDWR Read and writeãO_CREAT Create (create if doesn't exist)ãO_APPEND Append (writes to end of file)ãO_TRUNC Truncate (truncates file to 0 bytes automatically)ãO_EXCL Exclusive (only open/create if file doesn't exist)ãO_DENYNONE Deny None (shareable, for use with record locking)ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From Digital Man@VERT to MRO on Sun Nov 11 21:04:05 2018
    Re: Re: Coding questionã By: MRO to Nelgin on Sun Nov 11 2018 10:31 pmãã > Re: Re: Coding questionã > By: Nelgin to MRO on Sun Nov 11 2018 06:15 pmã >ã > > MRO wrote:ã > > M> Re: Coding questionã > > M> By: Plt to All on Sat Nov 10 2018 11:33 pmã >ã > > >> Re: Coding questionã > > >> By: Plt to All on Sat Nov 10 2018 23:06:57ã >ã > > >> > I was looking at some code and I am trying to figure out what doesã > > theã > > >> > 770ã >ã > > >> I found the answer to my question.ã >ã >ã >ã > > M> unbaja creates random designations for stuff that is lost when itã > > M> decompiles.ã > > M> atleast i think that's why.ã >ã > > M> so if i had a variable that was named BUTT, when decompiled it wouldã > > M> give it another designationã > > M> ---ã > > M> â–  Synchronet â–  ::: BBSES.info - free BBS services :::ã >ã > > Probably more to do with the mode the file is created with. 770 = rwx toã > > both owner and group and no permissions to other.ã >ã >ã > well it's an undocumented feature then.ã >ã > *FOPEN <int_var> <#> <"str" or str_var> FILE_IO.INCã > args: handle access path_and_filenameã > *------------------------------------------ã > This function opens or creates a disk file (path_and_filename) for readã > and/or write access. This function is the Baja equivalent of the standard Cã > fopen() function. No file I/O operations can be performed on a file until itã > has been opened with this function. The 'handle' argument must be a definedã > integer variable name. The 'access' argument is the requested open access.ã > The access flags (defined in FILE_IO.INC) are:ã >ã > Access Flag Descriptionã > ~~~~~~~~~~~ ~~~~~~~~~~~ã > O_RDONLY Read Onlyã > O_WRONLY Write Onlyã > O_RDWR Read and writeã > O_CREAT Create (create if doesn't exist)ã > O_APPEND Append (writes to end of file)ã > O_TRUNC Truncate (truncates file to 0 bytes automatically)ã > O_EXCL Exclusive (only open/create if file doesn't exist)ã > O_DENYNONE Deny None (shareable, for use with record locking)ããIt's the integer value of the programmer's specified file access. i.e. 770 isãthe combintaino of some of the O_* flags. It's documented.ãã digital manããThis Is Spinal Tap quote #29:ãI find lost luggage. I locate mandolin strings in the middle of Austin!ãNorco, CA WX: 61.1øF, 10.0% humidity, 2 mph SW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Nelgin@VERT/EOTLBBS to MRO on Mon Nov 12 00:27:59 2018
    MRO wrote:ãM> well it's an undocumented feature then.ã ãI was guessing, it looked like a file mode. I never claimed to be an expert.ãã---ã þ Synchronet þ End Of The Line BBS - endofthelinebbs.comã
  • From MRO@VERT/BBSESINF to Digital Man on Tue Nov 13 21:35:21 2018
    Re: Re: Coding questionã By: Digital Man to MRO on Sun Nov 11 2018 09:04 pmãã > It's the integer value of the programmer's specified file access. i.e. 770ã > is the combintaino of some of the O_* flags. It's documented.ãããis it in the baja docs?ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From Digital Man@VERT to MRO on Tue Nov 13 19:58:08 2018
    Re: Re: Coding questionã By: MRO to Digital Man on Tue Nov 13 2018 09:35 pmãã > Re: Re: Coding questionã > By: Digital Man to MRO on Sun Nov 11 2018 09:04 pmã >ã > > It's the integer value of the programmer's specified file access. i.e.ã > > 770 is the combintaino of some of the O_* flags. It's documented.ã >ã >ã > is it in the baja docs?ããYes: http://synchro.net/docs/baja.html#FileI/OFunctionsããThe actual O_* flag integer values are defined in exec/file_io.incãã digital manããSynchronet/BBS Terminology Definition #5:ãBBS = Bulletin Board SystemãNorco, CA WX: 62.3øF, 14.0% humidity, 0 mph WSW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From MRO@VERT/BBSESINF to Digital Man on Wed Nov 14 16:09:30 2018
    Re: Re: Coding questionã By: Digital Man to MRO on Tue Nov 13 2018 07:58 pmãã > Re: Re: Coding questionã > By: MRO to Digital Man on Tue Nov 13 2018 09:35 pmãã > > Re: Re: Coding questionã > > By: Digital Man to MRO on Sun Nov 11 2018 09:04 pmãã > > > It's the integer value of the programmer's specified file access. i.e.ã > > > 770 is the combintaino of some of the O_* flags. It's documented.ããã > > is it in the baja docs?ãã > Yes: http://synchro.net/docs/baja.html#FileI/OFunctionsãã > The actual O_* flag integer values are defined in exec/file_io.incãããi'm not seeing any 770 ãso you are saying exclusive+truncation+create = 700 ?ãi didnt know it could be used that wayã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã
  • From Digital Man@VERT to MRO on Wed Nov 14 20:41:06 2018
    Re: Re: Coding questionã By: MRO to Digital Man on Wed Nov 14 2018 04:09 pmãã > > > is it in the baja docs?ã >ã > > Yes: http://synchro.net/docs/baja.html#FileI/OFunctionsã >ã > > The actual O_* flag integer values are defined in exec/file_io.incãã > i'm not seeing any 770ããYou just add or bit-wise-or the value together.ãã > so you are saying exclusive+truncation+create = 700 ?ããRight.ãã > i didnt know it could be used that wayããSame as *nix permissions/mask values.ãã digital manããSynchronet/BBS Terminology Definition #23:ãDSZ = DOS Send ZMODEM (by Chuck Forsberg)ãNorco, CA WX: 63.3øF, 17.0% humidity, 1 mph SW wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From John Guillory@VERT/MAINLINE to Digital Man on Fri Nov 16 00:04:37 2018
    Re: Re: Coding questionã By: Digital Man to MRO on Wed Nov 14 2018 08:41 pmãã > > i'm not seeing any 770ã > You just add or bit-wise-or the value together.ã > > so you are saying exclusive+truncation+create = 700 ?ã > Right.ã > > i didnt know it could be used that wayã > Same as *nix permissions/mask values.ã > digital manã If I'm not mistakened, the 770 is base 8, or Octognal representation.ãJust a FYI to the other poster....ãã---ã þ Synchronet þ KF5QEO's Shack -- kingcoder.netã
  • From MRO@VERT/BBSESINF to John Guillory on Thu Nov 15 20:08:15 2018
    Re: Re: Coding questionã By: John Guillory to Digital Man on Fri Nov 16 2018 12:04 amãã > Re: Re: Coding questionã > By: Digital Man to MRO on Wed Nov 14 2018 08:41 pmãã > > > i'm not seeing any 770ã > > You just add or bit-wise-or the value together.ã > > > so you are saying exclusive+truncation+create = 700 ?ã > > Right.ã > > > i didnt know it could be used that wayã > > Same as *nix permissions/mask values.ã > > digital manã > If I'm not mistakened, the 770 is base 8, or Octognal representation.ã > Just a FYI to the other poster....ããããi get all that. i just didnt know you could use it with baja.ã---ã þ Synchronet þ ::: BBSES.info - free BBS services :::ã