Index: 09_appendix/action_reference.html =================================================================== --- 09_appendix/action_reference.html (revision 37492) +++ 09_appendix/action_reference.html (revision 37493) @@ -13,7 +13,7 @@
Action | Description | Syntax | Plugin |
---|---|---|---|
About | Present the about box | About() | dialogs plugin | @@ -394,13 +394,19 @@
RouteStylesChanged | Tells the GUI that the routing styles have changed. | RouteStylesChanged() | oldactions plugin |
ruby | Execute a script one-liner using a specific language | Oneliner(lang, script) | script plugin |
s | Saves layout data. | s [name] w [name] | shand_cmd plugin | +
SafeFsclearerr | Same as clearerr(3) | SafeFsclearerr(f) | |
SafeFsFclose | Closes a file previously open using SafeFsFopen() | SafeFsFclose(f) | |
SafeFsFeof | Returns 1 if file has reached EOF, 0 otherwise | SafeFsFeof(f) | + |
SafeFsFerror | Returns 1 if file had errors, 0 otherwise | SafeFsFerror(f) | |
SafeFsFgets | Reads and returns a line from f (open with SafeFsFopen()). Stops reading after maxlen (subsequent call will continue reading the same line). Returns nil on error or eof or empty line. Maxlen is 64k by default. Note: string heap allocation is made for maxlen. | SafeFsFgets(f, [maxlen]) | |
SafeFsFileMtime | Return the last modification time of a file, from Epoch, or -1 on error. | SafeFsFileMtime(path) | |
SafeFsFileSize | Return the size of a file in bytes, or -1 on error. | SafeFsFileSize(path) | |
SafeFsFopen | Opens a file using fopen, returns FILE *. If mode is not specified, r is assumed. Returns nil on error. | SafeFsFopen(path, [mode]) | + |
SafeFsFputs | Writes str to file f (previously opne with SafeFsFopen)) | SafeFsFputs(f, str) | |
SafeFsFread | Reads and returns at most len bytes from a file (open with SafeFsFopen()). Returns nil on error or eof or empty line. | SafeFsFread(f, len) | + |
SafeFsFreadSep | Reads characters that are either all non-seps or all seps. Reads at most maxlen bytes. Returns the string read or nil on eof or error. Seps is a string that contains every separator character. Maxlen is 64k by default. | SafeFsFreadSep(f, seps, [maxlen]) | + |
SafeFsFseek | Same as fseek(3); whence is a string, one of set, cur or end not specified (set is used when not specified) | SafeFsFseek(f, offs, [whence]) | + |
SafeFsFtell | Same as ftell(3). | SafeFsFtell(f) | |
SafeFsIsDir | Return 1 if path exists and is a directory, else return 0. | SafeFsIsDir(path) | |
SafeFsMkdir | Mkdir a file from the file system. If mode is a string, it is converted from octal. Return value is the same as mkdir(2)'s | SafeFsMkdir(path, mode) | |
SafeFsPathSep | Return the system dependet path separator character (normally slash). | SafeFsPathSep(path) | @@ -408,6 +414,7 @@ |
SafeFsRealPath | Returns the realpath(3) of path, or NULL on error. | SafeFsRealPath(path) | |
SafeFsRemove | Remove an object from the file system. Return value is the same as remove(3)'s | SafeFsRemove(path) | |
SafeFsRename | Rename an object on the file system. Return value is the same as rename(2)'s | SafeFsRename(old_path, new_path) | + |
SafeFsRewind | Same as rewind(3) | SafeFsRewind(f) | |
SafeFsSystem | Runs cmdline with a shell using librnd safe_fs. Return value is the same integer as system()'s | SafeFsSystem(cmdline) | |
SafeFsUnlink | Unlink a file from the file system. Return value is the same as unlink(2)'s | SafeFsUnlink(path) | |
Save | Save layout data to a user-selected file. | Save() Save(Layout) Save(LayoutAs, [path]) Save(AllConnections|AllUnusedPins|ElementConnections, [path]) Save(PasteBuffer, [path]) Save(DialogByPattern, pcb|footprint|font|buffer, none|board|fp, prompt, [default_pattern]) | dialogs plugin |