Print this page
1575 untangle libmlrpc ... (smbsrv)


  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  24  */
  25 
  26 /*
  27  * Printing and Spooling RPC service.
  28  */
  29 #include <sys/types.h>
  30 #include <sys/stat.h>
  31 #include <sys/utsname.h>
  32 #include <sys/atomic.h>
  33 #include <unistd.h>
  34 #include <stdlib.h>
  35 #include <strings.h>
  36 #include <fcntl.h>
  37 #include <errno.h>

  38 #include <smbsrv/libsmb.h>
  39 #include <smbsrv/libmlrpc.h>
  40 #include <smbsrv/libmlsvc.h>
  41 #include <smbsrv/smb.h>
  42 #include <smbsrv/ndl/spoolss.ndl>
  43 #include <smbsrv/ndl/winreg.ndl>
  44 #include <smb/nterror.h>
  45 #include <smbsrv/smbinfo.h>
  46 #include <smbsrv/nmpipes.h>
  47 #include <mlsvc.h>
  48 
  49 #ifdef  HAVE_CUPS
  50 
  51 #define SPOOLSS_PRINTER         "Postscript"
  52 
  53 typedef struct smb_spool {
  54         list_t          sp_list;
  55         int             sp_cnt;
  56         rwlock_t        sp_rwl;
  57         int             sp_initialized;
  58 } smb_spool_t;
  59 




  18  *
  19  * CDDL HEADER END
  20  */
  21 /*
  22  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  23  * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
  24  */
  25 
  26 /*
  27  * Printing and Spooling RPC service.
  28  */
  29 #include <sys/types.h>
  30 #include <sys/stat.h>
  31 #include <sys/utsname.h>
  32 #include <sys/atomic.h>
  33 #include <unistd.h>
  34 #include <stdlib.h>
  35 #include <strings.h>
  36 #include <fcntl.h>
  37 #include <errno.h>
  38 #include <libmlrpc/libmlrpc.h>
  39 #include <smbsrv/libsmb.h>

  40 #include <smbsrv/libmlsvc.h>
  41 #include <smbsrv/smb.h>
  42 #include <smbsrv/ndl/spoolss.ndl>
  43 #include <smbsrv/ndl/winreg.ndl>
  44 #include <smb/nterror.h>
  45 #include <smbsrv/smbinfo.h>
  46 #include <smbsrv/nmpipes.h>
  47 #include <mlsvc.h>
  48 
  49 #ifdef  HAVE_CUPS
  50 
  51 #define SPOOLSS_PRINTER         "Postscript"
  52 
  53 typedef struct smb_spool {
  54         list_t          sp_list;
  55         int             sp_cnt;
  56         rwlock_t        sp_rwl;
  57         int             sp_initialized;
  58 } smb_spool_t;
  59