
LOCKING                                                         12-OCT-1988 17:59:06    VAX C      V2.3-024                 Page 1
V1.0                                                             1-OCT-1987 14:49:39    [VMSNET.DEVEL.GNUUCP.SRC]LOCKING.C;1 (1)



    1        	/*
    2        	 * @(#)locking.c 1.2 87/09/29	Copyright 1987 Free Software Foundation, Inc.
    3        	 *
    4        	 * Copying and use of this program are controlled by the terms of the
    5        	 * GNU Emacs General Public License.
    6        	 */
    7        	
    8        	#ifndef lint
    9        	char locking_version[] = "@(#)locking.c gnuucp Version hoptoad-1.2";
   10        	#endif
   11        	
   12        	#include "includes.h"
 2941        	#include "uucp.h"
 3027        	#include "sysdep.h"
 3126        	
 3127        	extern int errno;
 3128        	
 3129        	/*
 3130        	 * Lock the serial line, if on a multitasking system.
 3131        	 */
 3132        	static char	lockname[NAMESIZE];	/* Name of lock file */
 3133        	static int	lockfile;		/* File descriptor of lock file */
 3134        	
 3135        	int
 3136        	ttylock(ttynam)
 3137        		char	*ttynam;
 3138        	{
 3139    1   	
 3140    1   	#ifdef MULTITASK
 3141   X    		sprintf(lockname, "LCK.%s", ttynam);
 3142   X    		strcpy(lockname, munge_filename(lockname));
 3143   X    		/* FIXME, next line is nonportable */
 3144   X    		lockfile = open(lockname, O_RDWR|O_BINARY|O_CREAT|O_EXCL, 0444);
 3145   X    		if (lockfile == -1) {
 3146   X    			DEBUG(9, "Can't create tty lock %s", lockname);
 3147   X    			/* FIXME, check for expired lock (pid not running) here. */
 3148   X    			lockname[0] = '\0';	/* We don't hold a lock */
 3149   X    			return FAIL;
 3150   X    		}
 3151   X    	
 3152   X    		if (ourpid == 0)
 3153   X    			ourpid = getpid();
 3154   X    	
 3155   X    		if (sizeof ourpid != write(lockfile, (char *)&ourpid, sizeof ourpid)) {
 3156   X    			DEBUG(0, "Write of pid to %s failed\n", lockname);
 3157   X    			(void) close(lockfile);
 3158   X    			ttyunlock(ttynam);
 3159   X    			return FAIL;
 3160   X    		}
 3161    1   	#endif
 3162    1   	
 3163    1   		return SUCCESS;
 3164    1   	}
 3165        	
 3166        	int

LOCKING                                                         12-OCT-1988 17:59:06    VAX C      V2.3-024                 Page 2
V1.0                                                             1-OCT-1987 14:49:39    [VMSNET.DEVEL.GNUUCP.SRC]LOCKING.C;1 (1)

 3167        	ttyunlock()
 3168        	{
 3169    1   	
 3170    1   	#ifdef MULTITASK
 3171   X    		if (lockname[0] == '\0')
 3172   X    			return SUCCESS;
 3173   X    	
 3174   X    		if (lockfile != -1 && 0 != close(lockfile)) {
 3175   X    			DEBUG(0, "Lock file close failed\n", 0);
 3176   X    		}
 3177   X    		lockfile = -1;
 3178   X    	
 3179   X    		if (0 != remove(lockname)) {
 3180   X    			DEBUG(0, "Removing lock file %s failed", lockname);
 3181   X    			DEBUG(0, " with errno %d\n", errno);
 3182   X    			lockname[0] = '\0';
 3183   X    			return FAIL;
 3184   X    		}
 3185   X    		lockname[0] = '\0';
 3186    1   	#endif
 3187    1   	
 3188    1   		return SUCCESS;
 3189    1   	}


LOCKING                                                         12-OCT-1988 17:59:06    VAX C      V2.3-024                 Page 3
V1.0                                                             1-OCT-1987 14:49:39    [VMSNET.DEVEL.GNUUCP.SRC]LOCKING.C;1 (1)

                                       +-------------+
                                       | Storage Map |
                                       +-------------+
 
 

External Declarations
---------------------

 Identifier Name                 Line    Size            Class        Type
 ---------------                 ----    ----            -----        ----

<generated_name_0001>            486     1 byte                       Structure tag
 /* No Name */                   487     4 bits                        Member (offset = 0), unsigned field
 dsc$v_fl_redim                  488     1 bit                         Member (offset = 4 bits), unsigned field
 dsc$v_fl_column                 489     1 bit                         Member (offset = 5 bits), unsigned field
 dsc$v_fl_coeff                  490     1 bit                         Member (offset = 6 bits), unsigned field
 dsc$v_fl_bounds                 491     1 bit                         Member (offset = 7 bits), unsigned field
<generated_name_0002>            560     1 byte                       Structure tag
 /* No Name */                   561     4 bits                        Member (offset = 0), unsigned field
 dsc$v_fl_redim                  562     1 bit                         Member (offset = 4 bits), unsigned field
 /* No Name */                   563     3 bits                        Member (offset = 5 bits), unsigned field
<generated_name_0003>            624     1 byte                       Structure tag
 /* No Name */                   625     4 bits                        Member (offset = 0), unsigned field
 dsc$v_fl_redim                  626     1 bit                         Member (offset = 4 bits), unsigned field
 /* No Name */                   627     3 bits                        Member (offset = 5 bits), unsigned field
<generated_name_0004>            676     1 byte                       Structure tag
 /* No Name */                   677     4 bits                        Member (offset = 0), unsigned field
 dsc$v_fl_redim                  678     1 bit                         Member (offset = 4 bits), unsigned field
 /* No Name */                   679     3 bits                        Member (offset = 5 bits), unsigned field
<generated_name_0005>            2454    8 bytes                      Structure tag
 /* No Name */                   2454    32 bits                       Member (offset = 0), unsigned field
 /* No Name */                   2454    32 bits                       Member (offset = 4 bytes), unsigned field
<generated_name_0006>            2456    8 bytes                      Structure tag
 /* No Name */                   2456    32 bits                       Member (offset = 0), unsigned field
 /* No Name */                   2456    32 bits                       Member (offset = 4 bytes), unsigned field
abort                            2351                    Extern       Void function
abs                              2367                    Extern       Function returning long int
acos                             1450                    Extern       Function returning double
alarm                            1829                    Extern       Function returning long int
asctime                          2584                    Extern       Function returning pointer to char
asin                             1452                    Extern       Function returning double
atan                             1454                    Extern       Function returning double
atan2                            1456                    Extern       Function returning double
atexit                           2357                    Extern       Function returning long int
atof                             2325                    Extern       Function returning double
atoi                             2327                    Extern       Function returning long int
atol                             2329                    Extern       Function returning long int
bsearch                          2361                    Extern       Function returning pointer to ** UNDEFINED **
c$v_ctypedefs                    151     1 longword      Globalvalue  Long int
cabs                             1494                    Extern       Function returning double
CABS_T                           1490    16 bytes                     Structure tag
 x                               1490    1 quadword                    Member (offset = 0), double
 y                               1490    1 quadword                    Member (offset = 8 bytes), double
cabs_t                           1491    16 bytes                     Typedef:  struct CABS_T
calloc                           2341                    Extern       Function returning pointer to ** UNDEFINED **
ceil                             1486                    Extern       Function returning double

LOCKING                                                         12-OCT-1988 17:59:06    VAX C      V2.3-024                 Page 4
V1.0                                                             1-OCT-1987 14:49:39    [VMSNET.DEVEL.GNUUCP.SRC]LOCKING.C;1 (1)

 Identifier Name                 Line    Size            Class        Type
 ---------------                 ----    ----            -----        ----

cfree                            2343                    Extern       Void function
clock                            2576                    Extern       Function returning long int
clock_t                          2522    1 longword                   Typedef:  long int
Control                          3017    1 longword      Extern       Pointer to char
cos                              1458                    Extern       Function returning double
cosh                             1464                    Extern       Function returning double
ctime                            2586                    Extern       Function returning pointer to char
debug                            2982    1 longword      Extern       Long int
dev_t                            2262    1 longword                   Typedef:  pointer to char
difftime                         2578                    Extern       Function returning double
div                              2369                    Extern       Function returning long int
dsc$descriptor                   436     8 bytes                      Structure tag
 dsc$w_length                    438     1 word                        Member (offset = 0), unsigned short int
 dsc$b_dtype                     439     1 byte                        Member (offset = 2 bytes), unsigned char
 dsc$b_class                     440     1 byte                        Member (offset = 3 bytes), unsigned char
 dsc$a_pointer                   441     1 longword                    Member (offset = 4 bytes), pointer to char
dsc$descriptor_a                 476     16 bytes                     Structure tag
 dsc$w_length                    478     1 word                        Member (offset = 0), unsigned short int
 dsc$b_dtype                     481     1 byte                        Member (offset = 2 bytes), unsigned char
 dsc$b_class                     482     1 byte                        Member (offset = 3 bytes), unsigned char
 dsc$a_pointer                   483     1 longword                    Member (offset = 4 bytes), pointer to char
 dsc$b_scale                     484     1 byte                        Member (offset = 8 bytes), char
 dsc$b_digits                    485     1 byte                        Member (offset = 9 bytes), unsigned char
 dsc$b_aflags                    492     1 byte                        Member (offset = 10 bytes), struct <generated_name_0001>
  /* No Name */                  487     4 bits                         Member (offset = 0), unsigned field
  dsc$v_fl_redim                 488     1 bit                          Member (offset = 4 bits), unsigned field
  dsc$v_fl_column                489     1 bit                          Member (offset = 5 bits), unsigned field
  dsc$v_fl_coeff                 490     1 bit                          Member (offset = 6 bits), unsigned field
  dsc$v_fl_bounds                491     1 bit                          Member (offset = 7 bits), unsigned field
 dsc$b_dimct                     493     1 byte                        Member (offset = 11 bytes), unsigned char
 dsc$l_arsize                    494     1 longword                    Member (offset = 12 bytes), unsigned long int
dsc$descriptor_d                 462     8 bytes                      Structure tag
 dsc$w_length                    464     1 word                        Member (offset = 0), unsigned short int
 dsc$b_dtype                     467     1 byte                        Member (offset = 2 bytes), unsigned char
 dsc$b_class                     468     1 byte                        Member (offset = 3 bytes), unsigned char
 dsc$a_pointer                   469     1 longword                    Member (offset = 4 bytes), pointer to char
dsc$descriptor_nca               550     16 bytes                     Structure tag
 dsc$w_length                    552     1 word                        Member (offset = 0), unsigned short int
 dsc$b_dtype                     555     1 byte                        Member (offset = 2 bytes), unsigned char
 dsc$b_class                     556     1 byte                        Member (offset = 3 bytes), unsigned char
 dsc$a_pointer                   557     1 longword                    Member (offset = 4 bytes), pointer to char
 dsc$b_scale                     558     1 byte                        Member (offset = 8 bytes), char
 dsc$b_digits                    559     1 byte                        Member (offset = 9 bytes), unsigned char
 dsc$b_aflags                    564     1 byte                        Member (offset = 10 bytes), struct <generated_name_0002>
  /* No Name */                  561     4 bits                         Member (offset = 0), unsigned field
  dsc$v_fl_redim                 562     1 bit                          Member (offset = 4 bits), unsigned field
  /* No Name */                  563     3 bits                         Member (offset = 5 bits), unsigned field
 dsc$b_dimct                     565     1 byte                        Member (offset = 11 bytes), unsigned char
 dsc$l_arsize                    566     1 longword                    Member (offset = 12 bytes), unsigned long int
dsc$descriptor_p                 521     8 bytes                      Structure tag
 dsc$w_length                    523     1 word                        Member (offset = 0), unsigned short int
 dsc$b_dtype                     524     1 byte                        Member (offset = 2 bytes), unsigned char
 dsc$b_class                     525     1 byte                        Member (offset = 3 bytes), unsigned char
 dsc$a_pointer                   526     1 longword                    Member (offset = 4 bytes), pointer to char

LOCKING                                                         12-OCT-1988 17:59:06    VAX C      V2.3-024                 Page 5
V1.0                                                             1-OCT-1987 14:49:39    [VMSNET.DEVEL.GNUUCP.SRC]LOCKING.C;1 (1)

 Identifier Name                 Line    Size            Class        Type
 ---------------                 ----    ----            -----        ----

dsc$descriptor_s                 448     8 bytes                      Structure tag
 dsc$w_length                    450     1 word                        Member (offset = 0), unsigned short int
 dsc$b_dtype                     453     1 byte                        Member (offset = 2 bytes), unsigned char
 dsc$b_class                     454     1 byte                        Member (offset = 3 bytes), unsigned char
 dsc$a_pointer                   455     1 longword                    Member (offset = 4 bytes), pointer to char
dsc$descriptor_sd                533     12 bytes                     Structure tag
 dsc$w_length                    535     1 word                        Member (offset = 0), unsigned short int
 dsc$b_dtype                     538     1 byte                        Member (offset = 2 bytes), unsigned char
 dsc$b_class                     539     1 byte                        Member (offset = 3 bytes), unsigned char
 dsc$a_pointer                   540     1 longword                    Member (offset = 4 bytes), pointer to char
 dsc$b_scale                     541     1 byte                        Member (offset = 8 bytes), char
 dsc$b_digits                    542     1 byte                        Member (offset = 9 bytes), unsigned char
 /* No Name */                   543     16 bits                       Member (offset = 10 bytes), unsigned field
dsc$descriptor_uba               668     16 bytes                     Structure tag
 dsc$w_length                    670     1 word                        Member (offset = 0), unsigned short int
 dsc$b_dtype                     671     1 byte                        Member (offset = 2 bytes), unsigned char
 dsc$b_class                     672     1 byte                        Member (offset = 3 bytes), unsigned char
 dsc$a_base                      673     1 longword                    Member (offset = 4 bytes), pointer to char
 dsc$b_scale                     674     1 byte                        Member (offset = 8 bytes), char
 dsc$b_digits                    675     1 byte                        Member (offset = 9 bytes), unsigned char
 dsc$b_aflags                    680     1 byte                        Member (offset = 10 bytes), struct <generated_name_0004>
  /* No Name */                  677     4 bits                         Member (offset = 0), unsigned field
  dsc$v_fl_redim                 678     1 bit                          Member (offset = 4 bits), unsigned field
  /* No Name */                  679     3 bits                         Member (offset = 5 bits), unsigned field
 dsc$b_dimct                     681     1 byte                        Member (offset = 11 bytes), unsigned char
 dsc$l_arsize                    682     1 longword                    Member (offset = 12 bytes), unsigned long int
dsc$descriptor_ubs               655     12 bytes                     Structure tag
 dsc$w_length                    657     1 word                        Member (offset = 0), unsigned short int
 dsc$b_dtype                     658     1 byte                        Member (offset = 2 bytes), unsigned char
 dsc$b_class                     659     1 byte                        Member (offset = 3 bytes), unsigned char
 dsc$a_base                      660     1 longword                    Member (offset = 4 bytes), pointer to char
 dsc$l_pos                       661     1 longword                    Member (offset = 8 bytes), long int
dsc$descriptor_vs                604     8 bytes                      Structure tag
 dsc$w_maxstrlen                 606     1 word                        Member (offset = 0), unsigned short int
 dsc$b_dtype                     607     1 byte                        Member (offset = 2 bytes), unsigned char
 dsc$b_class                     608     1 byte                        Member (offset = 3 bytes), unsigned char
 dsc$a_pointer                   609     1 longword                    Member (offset = 4 bytes), pointer to char
dsc$descriptor_vsa               616     16 bytes                     Structure tag
 dsc$w_maxstrlen                 618     1 word                        Member (offset = 0), unsigned short int
 dsc$b_dtype                     619     1 byte                        Member (offset = 2 bytes), unsigned char
 dsc$b_class                     620     1 byte                        Member (offset = 3 bytes), unsigned char
 dsc$a_pointer                   621     1 longword                    Member (offset = 4 bytes), pointer to char
 dsc$b_scale                     622     1 byte                        Member (offset = 8 bytes), char
 dsc$b_digits                    623     1 byte                        Member (offset = 9 bytes), unsigned char
 dsc$b_aflags                    628     1 byte                        Member (offset = 10 bytes), struct <generated_name_0003>
  /* No Name */                  625     4 bits                         Member (offset = 0), unsigned field
  dsc$v_fl_redim                 626     1 bit                          Member (offset = 4 bits), unsigned field
  /* No Name */                  627     3 bits                         Member (offset = 5 bits), unsigned field
 dsc$b_dimct                     629     1 byte                        Member (offset = 11 bytes), unsigned char
 dsc$l_arsize                    630     1 longword                    Member (offset = 12 bytes), unsigned long int
dvidef                           979     2 bytes                      Structure tag
 dvi$v_secondary                 980     1 bit                         Member (offset = 0), unsigned field
 dvi$v_item_code                 981     10 bits                       Member (offset = 1 bit), unsigned field
 dvi$v_fill_0                    982     4 bits                        Member (offset = 11 bits), unsigned field

LOCKING                                                         12-OCT-1988 17:59:06    VAX C      V2.3-024                 Page 6
V1.0                                                             1-OCT-1987 14:49:39    [VMSNET.DEVEL.GNUUCP.SRC]LOCKING.C;1 (1)

 Identifier Name                 Line    Size            Class        Type
 ---------------                 ----    ----            -----        ----

 dvi$v_noredirect                983     1 bit                         Member (offset = 15 bits), unsigned field
errno                            1043    1 longword      Extern       Noshare volatile long int
errno                            2306    1 longword      Extern       Noshare volatile long int
errno                            3127    1 longword      Extern       Long int
exit                             2353                    Extern       Void function
exp                              1470                    Extern       Function returning double
fabs                             1488                    Extern       Function returning double
fclose                           2466                    Extern       Function returning long int
fdopen                           2462                    Extern       Function returning pointer to pointer to struct _iobuf
fflush                           2496                    Extern       Function returning long int
fgetc                            2468                    Extern       Function returning long int
fgetname                         2458                    Extern       Function returning pointer to char
fgetpos                          2456                    Extern       Function returning long int
fgets                            2471                    Extern       Function returning pointer to char
FILE                             2419    1 longword                   Typedef:  pointer to struct _iobuf
fix_x_filename                   3107                    Extern       Void function
floor                            1498                    Extern       Function returning double
fmod                             1500                    Extern       Function returning double
fopen                            2460                    Extern       Function returning pointer to pointer to struct _iobuf
fprintf                          2489                    Extern       Function returning long int
fputc                            2493                    Extern       Function returning long int
fputs                            2474                    Extern       Function returning long int
fread                            2477                    Extern       Function returning long int
free                             2345                    Extern       Void function
freopen                          2464                    Extern       Function returning pointer to pointer to struct _iobuf
frexp                            1472                    Extern       Function returning double
fscanf                           2483                    Extern       Function returning long int
fseek                            2498                    Extern       Function returning long int
fsetpos                          2454                    Extern       Function returning long int
ftell                            2500                    Extern       Function returning long int
ftime                            2594                    Extern       Void function
fwrite                           2480                    Extern       Function returning long int
getenv                           2355                    Extern       Function returning pointer to char
gets                             2472                    Extern       Function returning pointer to char
getw                             2469                    Extern       Function returning long int
gmtime                           2588                    Extern       Function returning pointer to struct tm
gsignal                          1825                    Extern       Function returning long int
host_name                        3019    20 bytes        Extern       Array [20] of char
hypot                            1496                    Extern       Function returning double
ino_t                            2261    1 word                       Typedef:  unsigned short int
jmp_buf                          1740    15 longwords                 Typedef:  array [15] of long int
kill                             1827                    Extern       Function returning long int
labs                             2371                    Extern       Function returning long int
ldexp                            1474                    Extern       Function returning double
ldiv                             2373                    Extern       Function returning long int
localtime                        2590                    Extern       Function returning pointer to struct tm
lockfile                         3133    1 longword      Static       Long int
locking_version                  9       41 bytes        Extern def.  Initialized array [41] of char
lockname                         3132    255 bytes       Static       Array [255] of char
log                              1476                    Extern       Function returning double
log10                            1478                    Extern       Function returning double
logfd                            3026    1 longword      Extern       Long int
longjmp                          1745                    Extern       Void function
lookup                           3114                    Extern       Function returning long int

LOCKING                                                         12-OCT-1988 17:59:06    VAX C      V2.3-024                 Page 7
V1.0                                                             1-OCT-1987 14:49:39    [VMSNET.DEVEL.GNUUCP.SRC]LOCKING.C;1 (1)

 Identifier Name                 Line    Size            Class        Type
 ---------------                 ----    ----            -----        ----

malloc                           2347                    Extern       Function returning pointer to ** UNDEFINED **
memchr                           2848                    Extern       Function returning long int
memcmp                           2850                    Extern       Function returning long int
memcpy                           2852                    Extern       Function returning pointer to ** UNDEFINED **
memmove                          2854                    Extern       Function returning pointer to ** UNDEFINED **
memset                           2856                    Extern       Function returning pointer to ** UNDEFINED **
mktime                           2592                    Extern       Function returning long int
modf                             1480                    Extern       Function returning double
msleep                           3116                    Extern       Void function
munge_filename                   3051                    Extern       Function returning pointer to char
Myname                           3018    20 bytes        Extern       Array [20] of char
off_t                            2260    1 longword                   Typedef:  unsigned long int
openline                         3065                    Extern       Function returning long int
openout                          3066                    Extern       Function returning long int
ourpid                           3020    1 longword      Extern       Long int
pause                            1831                    Extern       Function returning long int
port                             3006    68 bytes                     Structure tag
 portname                        3007    20 bytes                      Member (offset = 0), array [20] of char
 modemname                       3008    20 bytes                      Member (offset = 20 bytes), array [20] of char
 devname                         3009    20 bytes                      Member (offset = 40 bytes), array [20] of char
 baud                            3010    1 longword                    Member (offset = 60 bytes), long int
 chain                           3011    1 longword                    Member (offset = 64 bytes), pointer to struct port
ports                            3024    1 longword      Extern       Pointer to struct port
pow                              1482                    Extern       Function returning double
printf                           2490                    Extern       Function returning long int
Progname                         3015    20 bytes        Extern def.  Array [20] of char
Pubdir                           3023    1 longword      Extern       Pointer to char
puts                             2475                    Extern       Function returning long int
putw                             2494                    Extern       Function returning long int
qsort                            2364                    Extern       Void function
raise                            1823                    Extern       Function returning long int
rand                             2337                    Extern       Function returning long int
realloc                          2349                    Extern       Function returning pointer to ** UNDEFINED **
rewind                           2502                    Extern       Function returning long int
scanf                            2484                    Extern       Function returning long int
setbuf                           2508                    Extern       Void function
setjmp                           1743                    Extern       Function returning long int
setvbuf                          2509                    Extern       Function returning long int
sigblock                         1837                    Extern       Function returning long int
sigcontext                       1797    20 bytes                     Structure tag
 sc_onstack                      1799    1 longword                    Member (offset = 0), long int
 sc_mask                         1800    1 longword                    Member (offset = 4 bytes), long int
 sc_sp                           1801    1 longword                    Member (offset = 8 bytes), long int
 sc_pc                           1802    1 longword                    Member (offset = 12 bytes), long int
 sc_ps                           1803    1 longword                    Member (offset = 16 bytes), long int
sigint                           3064                    Extern       Void function
signal                           1819                    Extern       Function returning pointer to function returning long int
sigpause                         1843                    Extern       Function returning long int
sigsetmask                       1839                    Extern       Function returning long int
sigstack                         1806    8 bytes                      Structure tag
 ss_sp                           1808    1 longword                    Member (offset = 0), pointer to char
 ss_onstack                      1809    1 longword                    Member (offset = 4 bytes), long int
sigstack                         1841                    Extern       Function returning long int
sigvec                           1790    12 bytes                     Structure tag

LOCKING                                                         12-OCT-1988 17:59:06    VAX C      V2.3-024                 Page 8
V1.0                                                             1-OCT-1987 14:49:39    [VMSNET.DEVEL.GNUUCP.SRC]LOCKING.C;1 (1)

 Identifier Name                 Line    Size            Class        Type
 ---------------                 ----    ----            -----        ----

 sv_handler                      1792    1 longword                    Member (offset = 0), pointer to function returning long int
 sv_mask                         1793    1 longword                    Member (offset = 4 bytes), long int
 sv_onstack                      1794    1 longword                    Member (offset = 8 bytes), long int
sigvec                           1835                    Extern       Function returning long int
sig_atomic_t                     1812    1 longword                   Typedef:  long int
sin                              1460                    Extern       Function returning double
sinh                             1466                    Extern       Function returning double
sleep                            1833                    Extern       Function returning long int
Spool                            3016    1 longword      Extern       Pointer to char
sprintf                          2491                    Extern       Function returning long int
sqrt                             1484                    Extern       Function returning double
srand                            2339                    Extern       Function returning long int
sscanf                           2485                    Extern       Function returning long int
ssignal                          1821                    Extern       Function returning pointer to function returning long int
stat                             2263    49 bytes                     Structure tag
 st_dev                          2265    1 longword                    Member (offset = 0), pointer to char
 st_ino                          2266    3 words                       Member (offset = 4 bytes), array [3] of unsigned short int
 st_mode                         2267    1 word                        Member (offset = 10 bytes), unsigned short int
 st_nlink                        2268    1 longword                    Member (offset = 12 bytes), long int
 st_uid                          2269    1 longword                    Member (offset = 16 bytes), unsigned long int
 st_gid                          2270    1 word                        Member (offset = 20 bytes), unsigned short int
 st_rdev                         2271    1 longword                    Member (offset = 22 bytes), pointer to char
 st_size                         2272    1 longword                    Member (offset = 26 bytes), unsigned long int
 st_atime                        2273    1 longword                    Member (offset = 30 bytes), unsigned long int
 st_mtime                        2274    1 longword                    Member (offset = 34 bytes), unsigned long int
 st_ctime                        2275    1 longword                    Member (offset = 38 bytes), unsigned long int
 st_fab_rfm                      2276    1 byte                        Member (offset = 42 bytes), char
 st_fab_rat                      2277    1 byte                        Member (offset = 43 bytes), char
 st_fab_fsz                      2278    1 byte                        Member (offset = 44 bytes), char
 st_fab_mrs                      2279    1 longword                    Member (offset = 45 bytes), unsigned long int
stderr                           2420    1 longword      Extern       Noshare pointer to pointer to struct _iobuf
stdin                            2420    1 longword      Extern       Noshare pointer to pointer to struct _iobuf
stdout                           2420    1 longword      Extern       Noshare pointer to pointer to struct _iobuf
strcat                           2822                    Extern       Function returning pointer to char
strchr                           2830                    Extern       Function returning pointer to char
strcmp                           2826                    Extern       Function returning long int
strcpy                           2818                    Extern       Function returning pointer to char
strcspn                          2832                    Extern       Function returning pointer to char
strerror                         2844                    Extern       Function returning pointer to char
strlen                           2846                    Extern       Function returning long int
strncat                          2824                    Extern       Function returning pointer to char
strncmp                          2828                    Extern       Function returning long int
strncpy                          2820                    Extern       Function returning pointer to char
strpbrk                          2834                    Extern       Function returning pointer to char
strrchr                          2836                    Extern       Function returning pointer to char
strspn                           2838                    Extern       Function returning pointer to char
strstr                           2840                    Extern       Function returning pointer to char
strtod                           2331                    Extern       Function returning double
strtok                           2842                    Extern       Function returning pointer to char
strtol                           2333                    Extern       Function returning long int
strtoul                          2335                    Extern       Function returning unsigned long int
substrloc                        3108                    Extern       Function returning pointer to char
sysdep_control                   3102    byte            Extern       Array of char
Sysfile                          3021    1 longword      Extern       Pointer to char

LOCKING                                                         12-OCT-1988 17:59:06    VAX C      V2.3-024                 Page 9
V1.0                                                             1-OCT-1987 14:49:39    [VMSNET.DEVEL.GNUUCP.SRC]LOCKING.C;1 (1)

 Identifier Name                 Line    Size            Class        Type
 ---------------                 ----    ----            -----        ----

system                           2359                    Extern       Function returning long int
tan                              1462                    Extern       Function returning double
tanh                             1468                    Extern       Function returning double
tbuffer                          2533    16 bytes                     Structure tag
 proc_user_time                  2535    1 longword                    Member (offset = 0), long int
 proc_system_time                2535    1 longword                    Member (offset = 4 bytes), long int
 child_user_time                 2536    1 longword                    Member (offset = 8 bytes), long int
 child_system_time               2536    1 longword                    Member (offset = 12 bytes), long int
tbuffer_t                        2539    16 bytes                     Typedef:  struct tbuffer
tdial                            3113                    Extern       Function returning long int
temp_filename                    3043                    Extern       Function returning pointer to char
time                             2580                    Extern       Function returning long int
timeb                            2555    10 bytes                     Structure tag
 time                            2557    1 longword                    Member (offset = 0), long int
 millitm                         2558    1 word                        Member (offset = 4 bytes), unsigned short int
 timezone                        2559    1 word                        Member (offset = 6 bytes), short int
 dstflag                         2560    1 word                        Member (offset = 8 bytes), short int
timeb_t                          2563    10 bytes                     Typedef:  struct timeb
times                            2582                    Extern       Void function
time_and_pid                     3125                    Extern       Function returning pointer to char
time_t                           2528    1 longword                   Typedef:  long int
tm                               2567    36 bytes                     Structure tag
 tm_sec                          2569    1 longword                    Member (offset = 0), long int
 tm_min                          2569    1 longword                    Member (offset = 4 bytes), long int
 tm_hour                         2569    1 longword                    Member (offset = 8 bytes), long int
 tm_mday                         2570    1 longword                    Member (offset = 12 bytes), long int
 tm_mon                          2570    1 longword                    Member (offset = 16 bytes), long int
 tm_year                         2570    1 longword                    Member (offset = 20 bytes), long int
 tm_wday                         2571    1 longword                    Member (offset = 24 bytes), long int
 tm_yday                         2571    1 longword                    Member (offset = 28 bytes), long int
 tm_isdst                        2571    1 longword                    Member (offset = 32 bytes), long int
tmpfile                          2504                    Extern       Function returning pointer to pointer to struct _iobuf
tmpnam                           2506                    Extern       Function returning pointer to char
tm_t                             2574    36 bytes                     Typedef:  struct tm
ttcd                             3115                    Extern       Function returning long int
ttflui                           3118                    Extern       Void function
tthang                           3119                    Extern       Void function
ttolSlow                         3117                    Extern       Void function
ttylock                          3136                    Extern def.  Function returning long int
ttyunlock                        3167                    Extern def.  Function returning long int
ungetc                           2487                    Extern       Function returning long int
Userfile                         3022    1 longword      Extern       Pointer to char
vaxc$errno                       1044    1 longword      Extern       Noshare volatile long int
VAXC$ESTABLISH                   1845                    Extern       Void function
vfprintf                         2511                    Extern       Function returning long int
vprintf                          2512                    Extern       Function returning long int
vsprintf                         2513                    Extern       Function returning long int
who                              3025    255 bytes       Extern       Array [255] of char
work_done                        3097                    Extern       Void function
work_next                        3096                    Extern       Function returning pointer to char
work_scan                        3095                    Extern       Function returning long int
xgetc                            3063                    Extern       Function returning long int
xwrite                           3062                    Extern       Function returning long int
_ctype_                          153     byte            Extern       Const array of char

LOCKING                                                         12-OCT-1988 17:59:06    VAX C      V2.3-024                 Page 10
V1.0                                                             1-OCT-1987 14:49:39    [VMSNET.DEVEL.GNUUCP.SRC]LOCKING.C;1 (1)

 Identifier Name                 Line    Size            Class        Type
 ---------------                 ----    ----            -----        ----

_iobuf                           2399    14 bytes                     Structure tag
 _cnt                            2401    1 longword                    Member (offset = 0), long int
 _ptr                            2402    1 longword                    Member (offset = 4 bytes), pointer to char
 _base                           2403    1 longword                    Member (offset = 8 bytes), pointer to char
 _flag                           2404    1 byte                        Member (offset = 12 bytes), char
 _file                           2415    1 byte                        Member (offset = 13 bytes), char
 
 

Function "ttylock" defined at line 3136
---------------------------------------

 Identifier Name                 Line    Size            Class        Type
 ---------------                 ----    ----            -----        ----

ttynam                           3137    1 longword                   Parameter # 1, pointer to char
 
 

Function "ttyunlock" defined at line 3167
-----------------------------------------

 Identifier Name                 Line    Size            Class        Type
 ---------------                 ----    ----            -----        ----

No names declared
 
 

Psect Synopsis
--------------

 Psect Name                     Allocation  Attributes
 ----------                     ----------  ----------

$CODE                           16 bytes    Position-independent, relocatable, shareable, executable, readable
$DATA                           260 bytes   Position-independent, relocatable, readable, writeable
LOCKING_VERSION                 41 bytes    Position-independent, overlay, relocatable, global, shareable, readable, writeable
_CTYPE_                         0           Position-independent, overlay, relocatable, global, shareable, readable
ERRNO                           4 bytes     Position-independent, overlay, relocatable, global, readable, writeable
VAXC$ERRNO                      4 bytes     Position-independent, overlay, relocatable, global, readable, writeable
STDIN                           4 bytes     Position-independent, overlay, relocatable, global, readable, writeable
STDOUT                          4 bytes     Position-independent, overlay, relocatable, global, readable, writeable
STDERR                          4 bytes     Position-independent, overlay, relocatable, global, readable, writeable
DEBUG                           4 bytes     Position-independent, overlay, relocatable, global, shareable, readable, writeable
PROGNAME                        20 bytes    Position-independent, overlay, relocatable, global, shareable, readable, writeable
SPOOL                           4 bytes     Position-independent, overlay, relocatable, global, shareable, readable, writeable
CONTROL                         4 bytes     Position-independent, overlay, relocatable, global, shareable, readable, writeable
MYNAME                          20 bytes    Position-independent, overlay, relocatable, global, shareable, readable, writeable
HOST_NAME                       20 bytes    Position-independent, overlay, relocatable, global, shareable, readable, writeable
OURPID                          4 bytes     Position-independent, overlay, relocatable, global, shareable, readable, writeable
SYSFILE                         4 bytes     Position-independent, overlay, relocatable, global, shareable, readable, writeable
USERFILE                        4 bytes     Position-independent, overlay, relocatable, global, shareable, readable, writeable
PUBDIR                          4 bytes     Position-independent, overlay, relocatable, global, shareable, readable, writeable

LOCKING                                                         12-OCT-1988 17:59:06    VAX C      V2.3-024                 Page 11
V1.0                                                             1-OCT-1987 14:49:39    [VMSNET.DEVEL.GNUUCP.SRC]LOCKING.C;1 (1)

 Psect Name                     Allocation  Attributes
 ----------                     ----------  ----------

PORTS                           4 bytes     Position-independent, overlay, relocatable, global, shareable, readable, writeable
WHO                             255 bytes   Position-independent, overlay, relocatable, global, shareable, readable, writeable
LOGFD                           4 bytes     Position-independent, overlay, relocatable, global, shareable, readable, writeable
SYSDEP_CONTROL                  0           Position-independent, overlay, relocatable, global, shareable, readable, writeable
 
 

Function Definition Map
-----------------------

 Line   Name
 ----   ----

3136    ttylock
3167    ttyunlock
 
 
Command Line
------------
 
CC/LIST/SHOW=(SOURCE,SYMBOLS)/DEFINE=LOG [-.SRC]LOCKING

