Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
list_namespaces(3)		 Arcan Lua API		    list_namespaces(3)

NAME
       list_namespaces - Get the current list of user defined namespaces

SYNOPSIS
       nstbl
       list_namespaces()

DESCRIPTION
       The  user  can dynamically add and remove namespaces for	the purpose of
       file i/o	and local IPC .	These are controlled externally	and defined in
       the database that the arcan application was launched with.  An  example
       of  this	would be "arcan_db add_appl_kv arcan ns_home Home:rw:/home/me"
       This function returns a list of the currently known ones	 in  an	 n-in-
       dexed table of tables, where each table specifies its reference name, a
       user presentable	label and the set or permissions (e.g. read, write and
       ipc).  The name can then	be used	as a reference prefix for other	opera-
       tions, e.g. load_image("myname:/test.img").

EXAMPLE
       function	list_namespaces0()
	     for _, space in ipairs(list_namespaces()) do
		   print(space.name, " => ", space.label, space.read, space.write, space.ipc)
	     end
       end

SEE ALSO:
       glob_resource(3)	load_image(3) load_image_asynch(3)

resource			  April	2025		    list_namespaces(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=list_namespaces&sektion=3&manpath=FreeBSD+Ports+14.3.quarterly>

home | help